Commit 8b61db8d authored by PCoder's avatar PCoder

Simplify getting LDAP_USE_TLS

parent 1673d6e0
Pipeline #174 canceled with stages
......@@ -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__)))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment