From 0b2cb22744882ed0164efed7222404bb92049297 Mon Sep 17 00:00:00 2001 From: "Alexander \"PapaTutuWawa" Date: Thu, 9 Dec 2021 17:13:55 +0100 Subject: [PATCH] Fix typo --- myauth/ldap.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/myauth/ldap.py b/myauth/ldap.py index 0075fab..91c0ada 100644 --- a/myauth/ldap.py +++ b/myauth/ldap.py @@ -45,9 +45,9 @@ class LDAPConnection: password = ldap_setting("BIND_PW", "") if not password: - pwfile = ldap_setting("BIND_PW_FILE", "") + pw_file = ldap_setting("BIND_PW_FILE", "") if pw_file: - with open(pwfile, "r") as f: + with open(pw_file, "r") as f: password = f.read().replace("\n", "") else: logging.error("No bind password specified")