Ldap – Authenticate users with LDAP and Apache 2.4

.htaccessapache-2.4ldap

i would like to setup a LDAP Authentication with Apache 2.4. LDAP Sever is a Windows 2008.

My .htaccess looks like:

AuthType Basic
AuthName "Login"
AuthBasicProvider      ldap
AuthLDAPBindDN         "CN=user,OU=Dienstkonten,DC=company,DC=lan"
AuthLDAPBindPassword   "pwd"
AuthLDAPURL            "ldap://dc.company.lan/DC=company,DC=lan?sAMAccountName?sub?(objectClass=*)" NONE

require ldap-group CN=Login-Group,OU=Dienstkonten,DC=company,DC=lan

But i get always the error:

(70023)This function has not been implemented on this platform: AH01277: LDAP: Unable to add rebind cross reference entry. Out of memory?

What do i wrong?
How can i authenticat users with ldap and apache 2.4?

Best Answer

This solved this problem for me:

LDAPReferrals Off

Other tips gathered from here and here:

AuthzLDAPAuthoritative off
# Use the password without quotes, e.g. password instead of "password"
AuthLDAPBindPassword password

However, these were not necessary for me.