From 0976d0dbcb478f4ab079d63846dd608d3423bb17 Mon Sep 17 00:00:00 2001 From: PCoder Date: Sat, 23 Feb 2019 21:25:58 +0100 Subject: [PATCH] Obtain some LDAP configs from env --- dal/settings.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dal/settings.py b/dal/settings.py index 8ba5c15..95c1b56 100644 --- a/dal/settings.py +++ b/dal/settings.py @@ -27,6 +27,15 @@ AUTH_LDAP_SERVER = AUTH_LDAP_SERVER_URI LDAP_CUSTOMER_DN = config('LDAP_CUSTOMER_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_base = config('LDAPSEARCH').split()