Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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=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?

share|improve this question

migrated from Sep 28 '12 at 8:00

This question came from our site for professional and enthusiast programmers.

Since this looks like an error coming from the Win AD you could either directly contact Microsoft and ask them for feedback.

Or you could prepare that step by first setting up a standard LDAP server (e.g. OpenLDAP), fill it with testdata corresponding to your AD contents) and test your setup against this LDAP server.

After successfully finishing that one try again with the AD. If that does not then you might setup OpenLDAP to provide the necessary "view" of the AD to have the application succeed.

share|improve this answer


This filter appears to search the entire directory including every possible object class. Surely you can cut it down to whatever object class you are using for people?

share|improve this 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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.