Skip to content

Database Table auth_user, how secure is the password field? #1130

Answered by smk4664
UnicodeTreason asked this question in Q&A
Discussion options

You must be logged in to vote

Django-ldap-auth is used when authenticating through ldap. If the user is created through ldap, then per the django-ldap-auth docs an unusable password is set.

https://django-auth-ldap.readthedocs.io/en/latest/users.html

Users created by LDAPBackend will have an unusable password set. This will only happen when the user is created, so if you set a valid password in Django, the user will be able to log in through ModelBackend (if configured) even if they are rejected by LDAP. This is not generally recommended, but could be useful as a fail-safe for selected users in case the LDAP server is unavailable.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@UnicodeTreason
Comment options

Answer selected by UnicodeTreason
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants