2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 09:32:21 +00:00

Switch to using the defined service

For now, this makes no difference, but it is poor form,
probably.  Correct by referencing the variable
name.
This commit is contained in:
Jarrod Johnson 2020-02-03 09:57:02 -05:00
parent 006fdc8280
commit 44e6a72847

View File

@ -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()