Nagios and LDAP auhentication e authorization
Posted: Tue Dec 17, 2024 5:56 am
Hi
I'm using Nagios Core 4.4.14
Server version: Apache/2.4.6 (Red Hat Enterprise Linux)
Server built: Apr 28 2023 16:54:19
I enable LDAP authentication using LDAP GROUP to validate access
I put in /etc/httpd/conf.d/nagios.conf
...
AuthLDAPGroupAttributeIsDN on
AuthLDAPGroupAttribute member
Require ldap-group cn=ADGroup1,OU=XXXX,OU=XXXX,OU=XXXX,DC=sedi,DC=group
....
so I enable the user belong to ADGroup1 to get in nagios web interface
In the cgi.cfg I configured
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=*
In this way all users inside the AD group ADGroup1 are enable to get in Nagios see and operate on all host and services
Now I want to configure a ADGroup2 to see only 3 specific servers
If I work with local user I have to create User1 and I set as contact of these 3 server the User1
In this way when the user1 log in nagios , he is able to see srv1 , srv2 and srv3
NOW I work with LDAP Authentication
What I need to do in order to authorize LDAP group ADGroup2 to see only srv1 , srv2 and srv3
Someone could help me ?
regards
Emilio
I'm using Nagios Core 4.4.14
Server version: Apache/2.4.6 (Red Hat Enterprise Linux)
Server built: Apr 28 2023 16:54:19
I enable LDAP authentication using LDAP GROUP to validate access
I put in /etc/httpd/conf.d/nagios.conf
...
AuthLDAPGroupAttributeIsDN on
AuthLDAPGroupAttribute member
Require ldap-group cn=ADGroup1,OU=XXXX,OU=XXXX,OU=XXXX,DC=sedi,DC=group
....
so I enable the user belong to ADGroup1 to get in nagios web interface
In the cgi.cfg I configured
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=*
In this way all users inside the AD group ADGroup1 are enable to get in Nagios see and operate on all host and services
Now I want to configure a ADGroup2 to see only 3 specific servers
If I work with local user I have to create User1 and I set as contact of these 3 server the User1
In this way when the user1 log in nagios , he is able to see srv1 , srv2 and srv3
NOW I work with LDAP Authentication
What I need to do in order to authorize LDAP group ADGroup2 to see only srv1 , srv2 and srv3
Someone could help me ?
regards
Emilio