Page 1 of 1

Nagios Core basic authentication

Posted: Tue Oct 22, 2019 9:16 am
by harishjadhav26
I have created nagiosadmin user and password should be nagiosadmin.
when i logged in through nagiosadmin and password is nagiosadmin@123 then login is happening instead of show incorrect password.
Why login happen through incorrect password?

Re: Nagios Core basic authentication

Posted: Tue Oct 22, 2019 11:46 am
by scottwilkerson
What command did you run to set the password for the user in the htpasswd file?

If you used the -d flag you would get this:

Code: Select all

-d
Use crypt() encryption for passwords. This is not supported by the httpd server on Windows and Netware. This algorithm limits the password length to 8 characters. This algorithm is insecure by today's standards. It used to be the default algorithm until version 2.2.17.

When using the crypt() algorithm, note that only the first 8 characters of the password are used to form the password. If the supplied password is longer, the extra characters will be silently discarded.
https://httpd.apache.org/docs/current/p ... asswd.html