AUTH_LDAP_SERVER_URI = 'ldap://ldap.example.com'
import ldap
from django_auth_ldap.config import LDAPSearch
AUTH_LDAP_BIND_DN = ''
AUTH_LDAP_BIND_PASSWORD = ''
AUTH_LDAP_USER_SEARCH = LDAPSearch('ou=users,dc=example,dc=com', ldap.
    SCOPE_SUBTREE, '(uid=%(user)s)')
LDAP in Django default admin