Obtain some LDAP configs from env
This commit is contained in:
parent
fc139296fb
commit
0976d0dbcb
1 changed files with 9 additions and 0 deletions
|
@ -27,6 +27,15 @@ AUTH_LDAP_SERVER = AUTH_LDAP_SERVER_URI
|
||||||
|
|
||||||
LDAP_CUSTOMER_DN = config('LDAP_CUSTOMER_DN')
|
LDAP_CUSTOMER_DN = config('LDAP_CUSTOMER_DN')
|
||||||
LDAP_USERS_DN = config('LDAP_USERS_DN')
|
LDAP_USERS_DN = config('LDAP_USERS_DN')
|
||||||
|
LDAP_CUSTOMER_GROUP_ID = config('LDAP_CUSTOMER_GROUP_ID', cast=int)
|
||||||
|
|
||||||
|
LDAP_MAX_UID_FILE_PATH = config(
|
||||||
|
'LDAP_MAX_UID_FILE_PATH',
|
||||||
|
default=os.path.join(os.path.abspath(
|
||||||
|
os.path.dirname(__file__)), 'ldap_max_uid_file'
|
||||||
|
)
|
||||||
|
)
|
||||||
|
LDAP_DEFAULT_START_UID = config('LDAP_DEFAULT_START_UID', cast=int)
|
||||||
|
|
||||||
# Search union over OUs
|
# Search union over OUs
|
||||||
search_base = config('LDAPSEARCH').split()
|
search_base = config('LDAPSEARCH').split()
|
||||||
|
|
Loading…
Reference in a new issue