Can login to Nagios XI but not in NagVis (AD)
Can login to Nagios XI but not in NagVis (AD)
We're working with a Nagios XI 2011R2.4 prebuilt vm and use Active Directory (AD) authentication. We've created a bunch of users and all of these users can login to Nagios. We then let users login to NagVis. After they did that we (admins) can give them a role so they get the permissions they need. However, there are 2 users who can't login to NagVis (they CAN login to Nagios). All others users don't have problems.
We can't reproduce the problem with testusers. We also deleted the nagios accounts and recreated them for these AD-accounts but they still can't login.
We can't reproduce the problem with testusers. We also deleted the nagios accounts and recreated them for these AD-accounts but they still can't login.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Can login to Nagios XI but not in NagVis (AD)
NagVis uses basic authentication using the file set in its apache conf, and not LDAP.
If the users were created in XI with the correct password they would work, but if their LDAP password is different it will fail.
If the users were created in XI with the correct password they would work, but if their LDAP password is different it will fail.
Re: Can login to Nagios XI but not in NagVis (AD)
We've activated "Active Directory integration".
Account suffix: @dmdelft01.root.lan
Base DN: DC=dmdelft01,DC=root,DC=lan
Domain Controllers": 3 servers with their FQDN seperated by a comma
Security = None
I've added 15 accounts in Nagios and never set a password for those accounts. All of users can login to Nagios AND Nagvis using their AD-accounts. But 2 users can only login to Nagios and NOT in Nagvis. Even when I delete the 2 accounts en recreate them, they cannot login to NagVis.
Account suffix: @dmdelft01.root.lan
Base DN: DC=dmdelft01,DC=root,DC=lan
Domain Controllers": 3 servers with their FQDN seperated by a comma
Security = None
I've added 15 accounts in Nagios and never set a password for those accounts. All of users can login to Nagios AND Nagvis using their AD-accounts. But 2 users can only login to Nagios and NOT in Nagvis. Even when I delete the 2 accounts en recreate them, they cannot login to NagVis.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Can login to Nagios XI but not in NagVis (AD)
One thing to note, have these users logged into XI Yet?
Their password will get set in NagVis the first time they login to XI through the web interface
Their password will get set in NagVis the first time they login to XI through the web interface
Re: Can login to Nagios XI but not in NagVis (AD)
Yes, all the users first login to Nagios XI and then to NagVis.
Just tried it in our test enviroment and the same problem occurs. Nagios XI works, NagVis don't.
Just tried it in our test enviroment and the same problem occurs. Nagios XI works, NagVis don't.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Can login to Nagios XI but not in NagVis (AD)
Can you verify that in your /etc/httpd/conf.d/nagvis.conf you have the following line exactly
Code: Select all
AuthUserFile /usr/local/nagiosxi/etc/htpasswd.usersRe: Can login to Nagios XI but not in NagVis (AD)
Yes, this line is present:
AuthUserFile /usr/local/nagiosxi/etc/htpasswd.users
AuthUserFile /usr/local/nagiosxi/etc/htpasswd.users
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Can login to Nagios XI but not in NagVis (AD)
Can you verify the permissions of the file
Also can you run the following to verify the username for these users are in there
Code: Select all
ls -l /usr/local/nagiosxi/etc/htpasswd.usersCode: Select all
cat /usr/local/nagiosxi/etc/htpasswd.usersRe: Can login to Nagios XI but not in NagVis (AD)
permissions
-rw-r--r--. 1 nagios apache 385 Jul 26 15:05 /usr/local/nagiosxi/etc/htpasswd.users
All users show in the htpasswd.users except the 2 users whom can login to Nagios but can't login to NagVis.
A testaccount works perfectly.
-rw-r--r--. 1 nagios apache 385 Jul 26 15:05 /usr/local/nagiosxi/etc/htpasswd.users
All users show in the htpasswd.users except the 2 users whom can login to Nagios but can't login to NagVis.
A testaccount works perfectly.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Can login to Nagios XI but not in NagVis (AD)
Are we sure these users have logged into XI and went through the license page?
To get you going, you can manually add them to the file with the following command
To get you going, you can manually add them to the file with the following command
Code: Select all
htpasswd -b /usr/local/nagiosxi/etc/htpasswd.users <USERNAME> <PASSWORD>