Re: LDAP Authentication
Posted: Thu Sep 19, 2019 6:36 am
My uname -a answer is: SMP Debian 4.9.168-1+deb9u5 (2019-08-11) x86_64 GNU/Linux
The file that i have modified is in another directory, because i have not the httpd.conf file..
My file is in /etc/apache2/sites-enabled/nagios.conf
The file that i have modified is in another directory, because i have not the httpd.conf file..
My file is in /etc/apache2/sites-enabled/nagios.conf
Code: Select all
ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"
<Directory "/usr/local/nagios/sbin">
# SSLRequireSSL
Options ExecCGI
AllowOverride None
Allow from all
Order allow,deny
AuthLDAPBindDN "CN=<<groupNameInServer>>,DC=<<ldapserver>>,DC=com"
AuthLDAPBindPassword "Admin Password"
AuthLDAPURL "ldap://192.168.X.X/CN=<<groupNameInServer>,DC=<<ldapserver>>,DC=com?sAMAccountName?sub?(objectClass=*)"
AuthType Basic
AuthName "Nagios Authentication"
AuthBasicProvider ldap
AuthLDAPGroupAttributeIsDN on
AuthLDAPGroupAttribute member
Require ldap-group CN=<<groupNameInServer>>,DC=<<ldapserver>>,DC=com
Require valid-user
Require all denied
</Directory>
Alias /nagios "/usr/local/nagios/share"
<Directory "/usr/local/nagios/share">
# SSLRequireSSL
Options None
AllowOverride None
Order allow,deny
Allow from all
AuthLDAPBindDN "CN=<<groupNameInServer>>,DC=<<ldapserver>>,DC=com"
AuthLDAPBindPassword "Admin Password"
AuthLDAPURL "ldap://192.168.X.X/CN=<<groupNameInServer>,DC=<<ldapserver>>,DC=com?sAMAccountName?sub?(objectClass=*)"
AuthType Basic
AuthName "Nagios Authentication"
AuthBasicProvider ldap
AuthLDAPGroupAttributeIsDN on
AuthLDAPGroupAttribute member
Require ldap-group CN=<<groupNameInServer>>,DC=<<ldapserver>>,DC=com
Require valid-user
Require all denied
</Directory>