Skip to content

Commit eade368

Browse files
authored
Merge pull request #83 from milakdev/ldaps-config-fix
corrected init config for certificate path setting
2 parents 7e953c2 + 1a70def commit eade368

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flask_simpleldap/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def init_app(app):
6868
ldap.set_option(ldap.OPT_X_TLS_REQUIRE_CERT,
6969
ldap.OPT_X_TLS_DEMAND)
7070
ldap.set_option(ldap.OPT_X_TLS_CACERTFILE,
71-
current_app.config['LDAP_CERT_PATH'])
71+
app.config['LDAP_CERT_PATH'])
7272

7373
for option in ['USERNAME', 'PASSWORD', 'BASE_DN']:
7474
if app.config['LDAP_{0}'.format(option)] is None:

0 commit comments

Comments
 (0)