Page 1 of 1

User unable to login to Nagios Log Server

Posted: Wed Oct 11, 2017 4:38 pm
by Sampath.Basireddy
Hello There,

I recently added a user to Nagios Log Server from LDAP/AD. But for some weird reason, NLS won't let him login.

Each time the user tries to login, it throws an error saying "The username specified does not exit.". I tried removing and re-adding the user, but no luck.

Please suggest.

Thanks,
Sampath.

Re: User unable to login to Nagios Log Server

Posted: Wed Oct 11, 2017 5:05 pm
by npolovenko
Hello, @Sampath.Basireddy . If you change the authentication to local would you be able to sign in using the new username and password?
Take a look at the article below describing how to properly configure LDAP authentication:
https://assets.nagios.com/downloads/nag ... d-LDAP.pdf
(this article is for the Network Analyzer but the process is very similar to the one on Log Server).
Do you have any other users already configured through the LDAP or this is the first one?

Re: User unable to login to Nagios Log Server

Posted: Thu Oct 12, 2017 9:04 am
by mcapra
There was a known issue with the nagioslogserver index applying long type to the created_by field, basically meaning that if the LDAP user was added by anyone other than the nagiosadmin account it wouldn't work correctly. Unsure if that fix is waiting for NLS 2.0 or if it was applied as a bugfix release.

Try adding all of your LDAP users when logged in as the nagiosadmin account as a temporary work-around.

Re: User unable to login to Nagios Log Server

Posted: Thu Oct 12, 2017 2:33 pm
by Sampath.Basireddy
npolovenko wrote:Hello, @Sampath.Basireddy . If you change the authentication to local would you be able to sign in using the new username and password?
Take a look at the article below describing how to properly configure LDAP authentication:
https://assets.nagios.com/downloads/nag ... d-LDAP.pdf
(this article is for the Network Analyzer but the process is very similar to the one on Log Server).
Do you have any other users already configured through the LDAP or this is the first one?
All the users we add to NLS are through LDAP. This is totally strange issue.

Just to test, I added the same user to NagiosXI through LDAP and he was able to login without any issues. Issue is only on Nagios Log Server.

Re: User unable to login to Nagios Log Server

Posted: Thu Oct 12, 2017 2:37 pm
by Sampath.Basireddy
mcapra wrote:There was a known issue with the nagioslogserver index applying long type to the created_by field, basically meaning that if the LDAP user was added by anyone other than the nagiosadmin account it wouldn't work correctly. Unsure if that fix is waiting for NLS 2.0 or if it was applied as a bugfix release.

Try adding all of your LDAP users when logged in as the nagiosadmin account as a temporary work-around.
Yes, I am admin and I added the LDAP user logged in as NagiosAdmin. The very moment when I added this user, I added few other users who do not have any problem logging in.

Audit report too says "The username specified does not exist".

Re: User unable to login to Nagios Log Server

Posted: Thu Oct 12, 2017 3:59 pm
by npolovenko
@Sampath.Basireddy, Log server is using an older version of LDAP authentication module than XI. Please note that the username/password in the Log Server are case sensitive, and they might not work well with special characters, especially with the & sign. I'd also take a second quick look into the user settings in a web UI to make sure that all settings for the new user are the same as other users.

Re: User unable to login to Nagios Log Server

Posted: Thu Oct 12, 2017 10:53 pm
by Sampath.Basireddy
That solved the issue. User had '%' in his password. Once he changed the password, he was able to login.

Thank you for the support. This topic can be closed.

Re: User unable to login to Nagios Log Server

Posted: Fri Oct 13, 2017 9:10 am
by npolovenko
@Sampath.Basireddy, You're welcome!