I\'m having a problem with a custom Authentication Backend I\'ve built for an Active Directory via LDAP authentication.
The problem is that from the admin login page, af
Figured out. Users cannot log in unless they are active (even though the documentation does not say that). Therefore, in the code given, the line that creates the new user should look like:
user = User(username=username, is_staff = True, is_Active = True, is_superuser = False)