diff options
author | Theo Chatzimichos <tampakrap@gentoo.org> | 2013-06-06 21:14:56 +0200 |
---|---|---|
committer | Theo Chatzimichos <tampakrap@gentoo.org> | 2013-06-06 21:14:56 +0200 |
commit | d68b096df811627bb91b227895d545238e01c6e7 (patch) | |
tree | 2c8d815643b2020294d1dfa1d3bf77d166c71f11 /okupy/settings/__init__.py | |
parent | Minor fixes in okupytestcase (diff) | |
download | identity.gentoo.org-d68b096df811627bb91b227895d545238e01c6e7.tar.gz identity.gentoo.org-d68b096df811627bb91b227895d545238e01c6e7.tar.bz2 identity.gentoo.org-d68b096df811627bb91b227895d545238e01c6e7.zip |
Add ModelBackend for future use of mapping django and ldap groups
Enabling it does not affect the authentication, users that are in DB but
not in LDAP (or if connection to LDAP is impossible) can still not
authenticate.
Also, remove useless debug symbols
Diffstat (limited to 'okupy/settings/__init__.py')
-rw-r--r-- | okupy/settings/__init__.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/okupy/settings/__init__.py b/okupy/settings/__init__.py index 3aadd47..4ac21a4 100644 --- a/okupy/settings/__init__.py +++ b/okupy/settings/__init__.py @@ -107,6 +107,7 @@ SESSION_EXPIRE_AT_BROWSER_CLOSE = True # Custom authentication backend AUTHENTICATION_BACKENDS = ( 'django_auth_ldap.backend.LDAPBackend', + 'django.contrib.auth.backends.ModelBackend', ) # email sending variables regarding server authentication |