Ldap(OID) users failed to access the nagios information.

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.
Locked
raghucvr
Posts: 3
Joined: Mon Jan 19, 2015 5:27 am

Ldap(OID) users failed to access the nagios information.

Post by raghucvr »

We have configured Single Sign On for nagios application using apache webgate. SSO configuration includes OAM and OID. Once the nagios application accessd by users it will be redirected to OAM login page and it will validates the entered username and password from OID(LDAP.). After that we are able to login successful, but users not able to view the information on nagios page. Can you please let me know is there any additional configuration changes required to get it work.

But before implementing SSO, users are stored in htpasswd.users file under /usr/local/nagios/etc/htpasswd.users and those users able to access the information on the nagios page with out any issue.

<Directory "/usr/local/nagios/sbin">
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
AuthName "Nagios 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: Ldap(OID) users failed to access the nagios information.

Post by abrist »

I think the main issue is that the nagios vhost file still assumes basic auth. If you have a different auth mechanism, you will need to add or change the auth in the vhost file.
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.
raghucvr
Posts: 3
Joined: Mon Jan 19, 2015 5:27 am

Re: Ldap(OID) users failed to access the nagios information.

Post by raghucvr »

Hi,

After enabling the webgate, we are getting the OAM login page, and entering user credentials(which are stored in OID) and those are Authenticate successfully(that we can see in live http headers) but immediately giving the below error instead of giving nagios application page. Please let me know your thoughts on this.

Please find the attachement for error.
401 Error
Authorization required
Attachments
Authorizationerror.jpg
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Ldap(OID) users failed to access the nagios information.

Post by tmcdonald »

Might be a bit of a longshot, but can you put the "user:password@" in front of the URL you have shown in the screenshot?
Former Nagios employee
raghucvr
Posts: 3
Joined: Mon Jan 19, 2015 5:27 am

Re: Ldap(OID) users failed to access the nagios information.

Post by raghucvr »

I have disabled the direct ldap connection details in nagios.conf because OAM itself connect to OID and it has LDAP ID store to fetch the user details from OID.
Now I am able to get the OAM login page, and user getting the login page. But when clicking on Tactical overview link user could not find any run time monitoring information and also it is not showing the username who logged in.
cmerchant
Posts: 546
Joined: Wed Sep 24, 2014 11:19 am

Re: Ldap(OID) users failed to access the nagios information.

Post by cmerchant »

can you show us a screen shot of the tactical view (looking for if there is a username in upper right corner),
and also /etc/httpd.conf.d/nagios.conf and the /etc/httpd.conf.d/nagiosxi.conf.
Locked