Err: Password mismatch

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
devilsguest
Posts: 76
Joined: Wed Mar 20, 2013 7:15 pm
Location: New York

Err: Password mismatch

Post 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....
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Err: Password mismatch

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
devilsguest
Posts: 76
Joined: Wed Mar 20, 2013 7:15 pm
Location: New York

Re: Err: Password mismatch

Post 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>
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Err: Password mismatch

Post by abrist »

What errors did you receive when you set a *blank* password as per your previous thread?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
devilsguest
Posts: 76
Joined: Wed Mar 20, 2013 7:15 pm
Location: New York

Re: Err: Password mismatch

Post by devilsguest »

"Password mismatch"
devilsguest
Posts: 76
Joined: Wed Mar 20, 2013 7:15 pm
Location: New York

Re: Err: Password mismatch

Post by devilsguest »

Code: Select all

 AH01617: user nagiosadmin: authentication failure for "/nagios": Password Mismatch
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Err: Password mismatch

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
devilsguest
Posts: 76
Joined: Wed Mar 20, 2013 7:15 pm
Location: New York

Re: Err: Password mismatch

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Err: Password mismatch

Post by abrist »

How many entries are in /usr/local/nagios/etc/htpasswd.users ? (you should have just one for nagiosadmin)
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
devilsguest
Posts: 76
Joined: Wed Mar 20, 2013 7:15 pm
Location: New York

Re: Err: Password mismatch

Post by devilsguest »

nagiosadmin:$apr1$s1.[Commented out]

Message 2:
oohhh... Ok thanks I thought as it was encrypted we can use it....
Last edited by slansing on Tue Mar 26, 2013 2:24 pm, edited 2 times in total.
Reason: posting password hashes is not a good idea, also, do not double post, please edit the previous post.
Locked