Search code examples
pythondjangoldapldapconnection

Django Ldap Connection Setup


I am trying to setup a LDAP connection in Django. Does anyone have any sample code? I need to know what information I need to place inside of the settings.py.

I keep getting the following error message:

AUTH_LDAP_USER_SEARCH must be an LDAPSearch instance.

Solution

  • Are you using a specific backend? Assuming you are using django-auth-ldap the docs are quite detailed.