mirror of
https://github.com/status-im/cabot.git
synced 2025-02-24 02:18:08 +00:00
Allow user filter for LDAP to be configure
This commit is contained in:
parent
6596bcf0ec
commit
283751ea24
@ -8,8 +8,9 @@ AUTH_LDAP_SERVER_URI = os.environ.get('AUTH_LDAP_SERVER_URI', 'ldap://ldap.examp
|
||||
|
||||
AUTH_LDAP_BIND_DN = os.environ.get('AUTH_LDAP_BIND_DN', 'cn=Manager,dc=example,dc=com')
|
||||
AUTH_LDAP_BIND_PASSWORD = os.environ.get('AUTH_LDAP_BIND_PASSWORD', '')
|
||||
AUTH_LDAP_USER_FILTER = os.environ.get('AUTH_LDAP_USER_FILTER', '(uid=%(user)s)')
|
||||
AUTH_LDAP_USER_SEARCH = LDAPSearch(os.environ.get('AUTH_LDAP_USER_SEARCH', 'ou=user,dc=example,dc=com'),
|
||||
ldap.SCOPE_SUBTREE, '(uid=%(user)s)')
|
||||
ldap.SCOPE_SUBTREE, AUTH_LDAP_USER_FILTER)
|
||||
|
||||
# Populate the Django user from the LDAP directory.
|
||||
AUTH_LDAP_USER_ATTR_MAP = {
|
||||
|
@ -70,4 +70,5 @@ AUTH_LDAP=true
|
||||
AUTH_LDAP_SERVER_URI=ldap://ldap.example.com
|
||||
AUTH_LDAP_BIND_DN="cn=Manager,dc=example,dc=com"
|
||||
AUTH_LDAP_BIND_PASSWORD=""
|
||||
AUTH_LDAP_USER_FILTER="(uid=%(user)s)"
|
||||
AUTH_LDAP_USER_SEARCH="ou=People,dc=example,dc=com"
|
||||
|
@ -64,4 +64,5 @@ AUTH_LDAP=true
|
||||
AUTH_LDAP_SERVER_URI=ldap://ldap.example.com
|
||||
AUTH_LDAP_BIND_DN="cn=Manager,dc=example,dc=com"
|
||||
AUTH_LDAP_BIND_PASSWORD=""
|
||||
AUTH_LDAP_USER_FILTER="(uid=%(user)s)"
|
||||
AUTH_LDAP_USER_SEARCH="ou=People,dc=example,dc=com"
|
||||
|
@ -68,4 +68,5 @@ AUTH_LDAP=true
|
||||
AUTH_LDAP_SERVER_URI=ldap://ldap.example.com
|
||||
AUTH_LDAP_BIND_DN="cn=Manager,dc=example,dc=com"
|
||||
AUTH_LDAP_BIND_PASSWORD=""
|
||||
AUTH_LDAP_USER_FILTER="(uid=%(user)s)"
|
||||
AUTH_LDAP_USER_SEARCH="ou=People,dc=example,dc=com"
|
||||
|
Loading…
x
Reference in New Issue
Block a user