1👍
Use either #1 or #2 to authenticate but NOT both at the same time. This was my problem.
1
AUTH_LDAP_BIND_DN =
AUTH_LDAP_BIND_PASSWORD =
AUTH_LDAP_USER_SEARCH = LDAPSearch()
2
AUTH_LDAP_USER_DN_TEMPLATE =
AUTH_LDAP_BIND_AS_AUTHENTICATING_USER = True
Source:stackexchange.com