Skip to content
Snippets Groups Projects
Commit 16eaf34f authored by Nik | Klampfradler's avatar Nik | Klampfradler Committed by Tom Teichler
Browse files

Allow overriding password handling in config

parent 66d244f0
No related branches found
No related tags found
1 merge request!501Resolve "Allow using Django-local accounts in addition to LDAP accounts"
Pipeline #6850 passed
...@@ -291,7 +291,7 @@ if _settings.get("ldap.uri", None): ...@@ -291,7 +291,7 @@ if _settings.get("ldap.uri", None):
AUTH_LDAP_BIND_PASSWORD = _settings.get("ldap.bind.password") AUTH_LDAP_BIND_PASSWORD = _settings.get("ldap.bind.password")
# Keep local password for users to be required to proveide their old password on change # Keep local password for users to be required to proveide their old password on change
AUTH_LDAP_SET_USABLE_PASSWORD = True AUTH_LDAP_SET_USABLE_PASSWORD = _settings.get("ldap.handle_passwords", True)
# Keep bound as the authenticating user # Keep bound as the authenticating user
# Ensures proper read permissions, and ability to change password without admin # Ensures proper read permissions, and ability to change password without admin
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment