User unable to login to Nagios Log Server

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
Sampath.Basireddy
Posts: 252
Joined: Wed Dec 14, 2016 12:30 pm

User unable to login to Nagios Log Server

Post 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.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: User unable to login to Nagios Log Server

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: User unable to login to Nagios Log Server

Post 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.
Former Nagios employee
https://www.mcapra.com/
Sampath.Basireddy
Posts: 252
Joined: Wed Dec 14, 2016 12:30 pm

Re: User unable to login to Nagios Log Server

Post 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.
Sampath.Basireddy
Posts: 252
Joined: Wed Dec 14, 2016 12:30 pm

Re: User unable to login to Nagios Log Server

Post 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".
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: User unable to login to Nagios Log Server

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Sampath.Basireddy
Posts: 252
Joined: Wed Dec 14, 2016 12:30 pm

Re: User unable to login to Nagios Log Server

Post 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.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: User unable to login to Nagios Log Server

Post by npolovenko »

@Sampath.Basireddy, You're welcome!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked