I have a problem with
Apache2 authentication using
authnz_ldap_module in order to authenticate users from
My Apache version is
Here is the configuration I am trying to use with no luck (one of many combinations, to be precise):
AuthzLDAPAuthoritative off AuthBasicProvider ldap AuthType Basic AuthName "Active Directory" AuthLDAPURL "ldap://server1.my.company.tld:3268 server2.my.company.tld:3268/dc=my,dc=company,dc=tld?sAMAccountName?sub" AuthLDAPBindDN "uid=my_user,dc=my,dc=company,dc=tld" AuthLDAPBindPassword "mypassword" Require valid-user
And I get following entries in Apache's
[debug] mod_authnz_ldap.c(379): [client some_ip_here]  auth_ldap authenticate: using URL ldap://server1.my.company.tld:3268 server2.my.company.tld:3268/dc=my,dc=company,dc=tld?sAMAccountName?sub [info] [client some_ip_here]  auth_ldap authenticate: user my_user authentication failed; URI / [LDAP: ldap_simple_bind_s() failed][Invalid credentials] [error] [client some_ip_here] user my_user: authentication failure for "/": Password Mismatch
Of course I enter correct password each time, I would get blocked in AD about hundred times already, didn't happen single time so far.
I cannot verify, that I can connect to my AD controller, because when I try:
ldapsearch -h server1.my.company.tld -p 3268 -D "dc=my,dc=company,dc=tld"
I get following error:
text: 000004DC: LdapErr: DSID-0C0906E8, comment: In order to perform this operation a successful bind must be completed on the connection., data 0, v1db1
I have absolutely no idea how to bind with
ldapsearch and manual didn't help me so far.
What am I doing wrong with
Apache2 configuration and how can I bind with
I will provide additional information, if these are needed.