From 44e6a7284793a7436e263f377dbfebdf2bb9bbcd Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 3 Feb 2020 09:57:02 -0500 Subject: [PATCH] Switch to using the defined service For now, this makes no difference, but it is poor form, probably. Correct by referencing the variable name. --- confluent_server/confluent/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_server/confluent/auth.py b/confluent_server/confluent/auth.py index 5a1479c9..383086dd 100644 --- a/confluent_server/confluent/auth.py +++ b/confluent_server/confluent/auth.py @@ -269,7 +269,7 @@ def check_user_passphrase(name, passphrase, operation=None, element=None, tenant return authorize(user, element, tenant, operation) if pam: pammy = pam.pam() - usergood = pammy.authenticate(user, passphrase, service='confluent') + usergood = pammy.authenticate(user, passphrase, service=_pamservice) del pammy if usergood: _passcache[(user, tenant)] = hashlib.sha256(passphrase).digest()