Fix typo
This commit is contained in:
parent
440927b2c1
commit
0b2cb22744
@ -45,9 +45,9 @@ class LDAPConnection:
|
|||||||
|
|
||||||
password = ldap_setting("BIND_PW", "")
|
password = ldap_setting("BIND_PW", "")
|
||||||
if not password:
|
if not password:
|
||||||
pwfile = ldap_setting("BIND_PW_FILE", "")
|
pw_file = ldap_setting("BIND_PW_FILE", "")
|
||||||
if pw_file:
|
if pw_file:
|
||||||
with open(pwfile, "r") as f:
|
with open(pw_file, "r") as f:
|
||||||
password = f.read().replace("\n", "")
|
password = f.read().replace("\n", "")
|
||||||
else:
|
else:
|
||||||
logging.error("No bind password specified")
|
logging.error("No bind password specified")
|
||||||
|
Loading…
Reference in New Issue
Block a user