[Fixed]-Django – Exclude superuser from LDAP auth

1👍

I have done this exact thing. In order to use both the LDAP and Django default authentication, I included this code in my settings file:

AUTHENTICATION_BACKENDS = (
    'django.contrib.auth.backends.ModelBackend',
    'django_auth_ldap.backend.LDAPBackend',
)

Is your app automatically adding existing users to LDAP? If not, this should work fine.

Leave a comment