Nagios and Centrify Active Directory - authorization
Posted: Wed Nov 02, 2016 10:19 am
Hi,
I am setting up a Nagios server on Red Hat Linux 6.7 using nagios-3.5.1-1.el6.x86_64 rpm.
I would like to use Centrify Active Directory for Nagios authentication and authorization.
I found two articles about this:
https://rravikumar.wordpress.com/2015/0 ... ntication/
https://exchange.nagios.org/components/ ... 9&cf_id=29
It is easy to configure authentication. I updated my nagios apache2.conf as:
AuthName "Nagios"
AuthType CENTRIFYDC
EnableBasicAuth true
Require user valid-user
Now I can log in to http://my-nagios-server/nagios with Centrify username and password.
However, I can't get authorization to work correctly.
I tried to add the admin user (userA) from Centrify AD in /etc/nagios/cgi.cfg file:
authorized_for_system_information=nagiosadmin,userA@DomainName
authorized_for_configuration_information=nagiosadmin,userA@DomainName
authorized_for_system_commands=nagiosadmin,userA@DomainName
authorized_for_all_services=nagiosadmin,userA@DomainName
authorized_for_all_hosts=nagiosadmin,userA@DomainName
authorized_for_all_service_commands=nagiosadmin,userA@DomainName
authorized_for_all_host_commands=nagiosadmin,userA@DomainName
But when I log in as userA, I can't browse any host/hostgroup/service/servicegroup, complaining no permissions....
I have to change the username specified in cgi.cfg to * to make it work:
authorized_for_system_information=*
authorized_for_configuration_information=*
authorized_for_system_commands=*
authorized_for_all_services=*
authorized_for_all_hosts=*
authorized_for_all_service_commands=*
authorized_for_all_host_commands=*
But now all the users get the same authorization! Everyone can see everything...
What do I miss? Any advise? Thanks a lot!
Thanks,
Stacey
I am setting up a Nagios server on Red Hat Linux 6.7 using nagios-3.5.1-1.el6.x86_64 rpm.
I would like to use Centrify Active Directory for Nagios authentication and authorization.
I found two articles about this:
https://rravikumar.wordpress.com/2015/0 ... ntication/
https://exchange.nagios.org/components/ ... 9&cf_id=29
It is easy to configure authentication. I updated my nagios apache2.conf as:
AuthName "Nagios"
AuthType CENTRIFYDC
EnableBasicAuth true
Require user valid-user
Now I can log in to http://my-nagios-server/nagios with Centrify username and password.
However, I can't get authorization to work correctly.
I tried to add the admin user (userA) from Centrify AD in /etc/nagios/cgi.cfg file:
authorized_for_system_information=nagiosadmin,userA@DomainName
authorized_for_configuration_information=nagiosadmin,userA@DomainName
authorized_for_system_commands=nagiosadmin,userA@DomainName
authorized_for_all_services=nagiosadmin,userA@DomainName
authorized_for_all_hosts=nagiosadmin,userA@DomainName
authorized_for_all_service_commands=nagiosadmin,userA@DomainName
authorized_for_all_host_commands=nagiosadmin,userA@DomainName
But when I log in as userA, I can't browse any host/hostgroup/service/servicegroup, complaining no permissions....
I have to change the username specified in cgi.cfg to * to make it work:
authorized_for_system_information=*
authorized_for_configuration_information=*
authorized_for_system_commands=*
authorized_for_all_services=*
authorized_for_all_hosts=*
authorized_for_all_service_commands=*
authorized_for_all_host_commands=*
But now all the users get the same authorization! Everyone can see everything...
What do I miss? Any advise? Thanks a lot!
Thanks,
Stacey