Skip to content
Snippets Groups Projects
Unverified Commit eade368f authored by Alexandre Ferland's avatar Alexandre Ferland Committed by GitHub
Browse files

Merge pull request #83 from milakdev/ldaps-config-fix

corrected init config for certificate path setting
parents 7e953c2b 1a70defc
Branches
No related tags found
No related merge requests found
...@@ -68,7 +68,7 @@ class LDAP(object): ...@@ -68,7 +68,7 @@ class LDAP(object):
ldap.set_option(ldap.OPT_X_TLS_REQUIRE_CERT, ldap.set_option(ldap.OPT_X_TLS_REQUIRE_CERT,
ldap.OPT_X_TLS_DEMAND) ldap.OPT_X_TLS_DEMAND)
ldap.set_option(ldap.OPT_X_TLS_CACERTFILE, ldap.set_option(ldap.OPT_X_TLS_CACERTFILE,
current_app.config['LDAP_CERT_PATH']) app.config['LDAP_CERT_PATH'])
for option in ['USERNAME', 'PASSWORD', 'BASE_DN']: for option in ['USERNAME', 'PASSWORD', 'BASE_DN']:
if app.config['LDAP_{0}'.format(option)] is None: if app.config['LDAP_{0}'.format(option)] is None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment