Skip to content
Snippets Groups Projects
Commit 25d79614 authored by Jean-Philippe Laverdure's avatar Jean-Philippe Laverdure
Browse files

restores BIND_AS_AUTHENTICATING_USER functionality for local dev

parent 257bf4a7
3 merge requests!111Populate /secure/my-sharegroups/ with the same groups that are available to a...,!109Populate /secure/my-sharegroups/ with the same groups that are available to a...,!108Resolve "Datafile annotation return as json in graphql output instead of jsonstring"
......@@ -183,10 +183,10 @@ SESSION_COOKIE_AGE = config('SESSION_COOKIE_AGE', default=86400, cast=int)
# django-auth-ldap ##############################
AUTH_LDAP_SERVER_URI = config('AUTH_LDAP_SERVER_URI')
AUTH_LDAP_USER_QUERY_FIELD = 'email'
AUTH_LDAP_BIND_DN = config('AUTH_LDAP_BIND_DN')
AUTH_LDAP_BIND_PASSWORD = config('AUTH_LDAP_BIND_PASSWORD')
AUTH_LDAP_BIND_DN = config('AUTH_LDAP_BIND_DN', default=None)
AUTH_LDAP_BIND_PASSWORD = config('AUTH_LDAP_BIND_PASSWORD', default=None)
AUTH_LDAP_BIND_AS_AUTHENTICATING_USER = config('AUTH_LDAP_BIND_AS_AUTHENTICATING_USER', cast=bool)
# AUTH_LDAP_USER_DN_TEMPLATE = "mail=%(user)s,ou=people,dc=sim,dc=umontreal,dc=ca" # config('AUTH_LDAP_USER_DN_TEMPLATE')
AUTH_LDAP_USER_DN_TEMPLATE = config('AUTH_LDAP_USER_DN_TEMPLATE')
AUTH_LDAP_USER_SEARCH = LDAPSearch(config('AUTH_LDAP_SEARCH'), ldap.SCOPE_SUBTREE, "(|(samaccountname=%(user)s)(mail=%(user)s))")
AUTH_LDAP_USER_ATTR_MAP = {
"first_name": "givenName",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment