Simplify getting LDAP_USE_TLS
This commit is contained in:
parent
1673d6e03b
commit
8b61db8dee
1 changed files with 1 additions and 2 deletions
|
@ -28,8 +28,7 @@ search_base = os.environ['LDAPSEARCH'].split()
|
|||
search_base_ldap = [ LDAPSearch(x, ldap.SCOPE_SUBTREE, "(uid=%(user)s)") for x in search_base ]
|
||||
AUTH_LDAP_USER_SEARCH = LDAPSearchUnion(*search_base_ldap)
|
||||
|
||||
if os.environ['LDAP_USE_TLS']:
|
||||
AUTH_LDAP_START_TLS=True
|
||||
AUTH_LDAP_START_TLS = os.environ.get('LDAP_USE_TLS', False)
|
||||
|
||||
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
||||
|
|
Loading…
Reference in a new issue