apache ldap issue
Hi all,
I am trying to use ldap to have users authenticate when accessing nagios (webbased monitoring tool) in their webbrowser.
When accessing nagios the browser responds with a popup window, asking for credentials (username, password). Authentication then fails.
Error in /var/log/httpd/error.log:
[Thu Dec 18 16:43:42 2014] [debug] mod_authnz_ldap.c(432): [client 192.168.112.196] [12830] auth_ldap authenticate: using URL ldap://ad.blue.local/dc=blue,dc=local?sAMAccountName
[Thu Dec 18 16:43:42 2014] [info] [client 192.168.112.196] [12830] auth_ldap authenticate: user ronald authentication failed; URI /nagios/ [ldap_search_ext_s() for user failed][Operations error]
This on Centos 6.6, using apache 2.2.15
Webbrowser used is firefox and/or chrome.
Contents of /etc/httpd/conf.d/authz_ldap.conf:
LogLevel debug
LoadModule authz_ldap_module modules/mod_authz_ldap.so
<IfModule mod_authz_ldap.c>
<Location /nagios>
AuthBasicProvider ldap
AuthLDAPURL "ldap://ad.blue.local/dc=deepocean,dc=local?sAMAccountName" NONE
AuthzLDAPAuthoritative on
AuthLDAPBindDN "nagiosadmin@blue.local"
AuthLDAPBindPassword "7f7g67d6s"
AuthType Basic
AuthName "Nagios Access"
require valid-user
</Location>
</IfModule>
I am stuck now and don't know how to troubleshoot any further.
Using ldapsearch the user ronald is found in ldap!
Any help would be appreciated!
|