Skip to content

Commit 1a70def

Browse files
committed
corrected init config for certificate path setting
Signed-off-by: Nemanja Milakovic <[email protected]>
1 parent c6f63c7 commit 1a70def

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
@@ -67,7 +67,7 @@ def init_app(app):
6767
ldap.set_option(ldap.OPT_X_TLS_REQUIRE_CERT,
6868
ldap.OPT_X_TLS_DEMAND)
6969
ldap.set_option(ldap.OPT_X_TLS_CACERTFILE,
70-
current_app.config['LDAP_CERT_PATH'])
70+
app.config['LDAP_CERT_PATH'])
7171

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

0 commit comments

Comments
 (0)