1 (edited by fatgeek 2016-04-21 06:48:34)

Topic: Unable to access awstats with changed password.

======== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.4
- Linux/BSD distribution name and version: Ubuntu 14.04.4 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB
- Web server (Apache or Nginx): Apache/2.4.7 (Ubuntu)
- Manage mail accounts with iRedAdmin-Pro? No.
- Related log if you're reporting an issue:
====

Hello,

I changed my postmaster account password through iRedAdmin (non pro) and I can't log into awstats with the new one or the old one. I don't know that it ever worked because I didn't try before the password change. The new password works for Roundcube and iRedAdmin.

Identifying info redacted:

My /etc/apache2/conf-available/awstats.conf (it is enabled)
DBDriver mysql
# Important note: use 'pass=' for MySQL, 'password=' for PostgreSQL.
DBDParams "host=127.0.0.1 port=3306 dbname=vmail user=vmail pass=xxxxxx"

<Directory /usr/lib/cgi-bin>
    DirectoryIndex awstats.pl
    Options ExecCGI

    AuthType Basic
    AuthName "Authentication required"
    AuthBasicProvider dbd
    AuthDBDUserPWQuery "SELECT password FROM mailbox WHERE username = %s AND isglobaladmin=1 LIMIT 1"

    Require valid-user
</Directory>

Relevant from /var/log/access.log
<my IP> - - [20/Apr/2016:16:27:47 -0600] "GET /awstats HTTP/1.1" 404 3766 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:45.0) Gecko/20100101 Firefox/45.0"

Relevant from /var/log/error.log
[Wed Apr 20 16:29:21.984716 2016] [auth_basic:error] [pid 2104] [client <my IP>:62478] AH01617: user postmaster@example.com: authentication failure for "/awstats": Password Mismatch

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Unable to access awstats with changed password.

Please reset your password to MD5 hash. Reference:
http://www.iredmail.org/docs/reset.user.password.html

3

Re: Unable to access awstats with changed password.

ZhangHuangbin wrote:

Please reset your password to MD5 hash. Reference:
http://www.iredmail.org/docs/reset.user.password.html

Hello, thanks for getting back to me.

I just tried your suggestion and I am still unable to access Awstats.

I also tried to make a new user as a global admin and that user is also unable to access Awstats.

4

Re: Unable to access awstats with changed password.

*) May i know how you reset password?
*) Could you please show us a sample MD5 password hash?