Page 1 of 2

Err: Password mismatch

Posted: Tue Mar 26, 2013 8:34 am
by devilsguest
[auth_basic:error] AH01617: user nagiosadmin: authentication failure for "/nagios": Password Mismatch can someone look into it please struggling since 3days on same issue....

Re: Err: Password mismatch

Posted: Tue Mar 26, 2013 8:59 am
by scottwilkerson
You might want to reset your password.

You will have to look at your nagios.conf apache file to verify the location of the file, then run the following replacing
/usr/local/nagios/etc/htpasswd.users if it is different

Code: Select all

htpasswd /usr/local/nagios/etc/htpasswd.users nagiosadmin

Re: Err: Password mismatch

Posted: Tue Mar 26, 2013 9:06 am
by devilsguest
Here is my nagios.conf for apache it looks fine

Code: Select all

ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin/"
<Directory "/usr/local/nagios/sbin/">
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
AuthName "Nagios Web Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>

Alias /nagios "/usr/local/nagios/share/"

<Directory "/usr/local/nagios/share/">
Options None
AllowOverride None
Order allow,deny
Allow from all
AuthName "Nagios Web Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>

Re: Err: Password mismatch

Posted: Tue Mar 26, 2013 9:24 am
by abrist
What errors did you receive when you set a *blank* password as per your previous thread?

Re: Err: Password mismatch

Posted: Tue Mar 26, 2013 9:47 am
by devilsguest
"Password mismatch"

Re: Err: Password mismatch

Posted: Tue Mar 26, 2013 9:49 am
by devilsguest

Code: Select all

 AH01617: user nagiosadmin: authentication failure for "/nagios": Password Mismatch

Re: Err: Password mismatch

Posted: Tue Mar 26, 2013 10:02 am
by abrist
Hmmm. If you created a *blank* password, that error should not happen. Do you have *any* other .htaccess files, apache vhost configs, or htpasswd.users files?

Code: Select all

find / -name .htaccess
find / -name *.users
find /etc -name nagios.conf

Re: Err: Password mismatch

Posted: Tue Mar 26, 2013 10:28 am
by devilsguest
.htaccess for sbin and share

Code: Select all

 AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
require valid-user

Code: Select all

/usr/local/nagios/etc/htpasswd.users
/usr/local/sbin/htaccess.users

Code: Select all

# find /etc -name nagios.conf
/etc/httpd/conf.d/nagios.conf

Re: Err: Password mismatch

Posted: Tue Mar 26, 2013 10:46 am
by abrist
How many entries are in /usr/local/nagios/etc/htpasswd.users ? (you should have just one for nagiosadmin)

Re: Err: Password mismatch

Posted: Tue Mar 26, 2013 10:48 am
by devilsguest
nagiosadmin:$apr1$s1.[Commented out]

Message 2:
oohhh... Ok thanks I thought as it was encrypted we can use it....