Commit 59c96141 authored by Daniel Stan's avatar Daniel Stan

lc_ldap test or not

parent bc2e2658
......@@ -45,7 +45,7 @@ class LDAPUserBackend(ModelBackend):
return None
try:
conn = lc_ldap(user = username, cred = password)
conn = lc_ldap(user = username, cred = password, test=settings.LDAP_TEST)
ldap_user = conn.search(dn = conn.dn, scope = ldap.SCOPE_BASE)[0]
except IndexError:
return None
......
......@@ -10,6 +10,8 @@ TEMPLATE_DEBUG = DEBUG
EMAIL_SUBJECT_PREFIX = "[Intranet2 Cr@ns] "
# Utiliser la base ldap de test ?
LDAP_TEST = True
ADMINS = (
'Intranet', 'root@crans.org',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment