LDAP fails under some LDAP configurations
Quite simply the default LDAP setting under Django fails under certain LDAP configurations. I've run into this a with a Django before and FreeIPA using a limited service account. For some reason the search/bind method fails. The fix is to use the Bind with one user, then search and bind approach instead.
To enable direct bind the setting AUTH_LDAP_BIND_AS_AUTHENTICATING_USER needs to be set to True.
Right now in the configuration there's no way to do this without editing the source settings files directly.
I am was going to create a PR for this since it's a pretty minor change to allow this configuration to be specified via env variables like the others.