from django_auth_ldap.backend import LDAPBackend CustomLDAPBackend(LDAPBackend): def populate_user(username):