2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-25 19:10:10 +00:00

Fix incorrect pam service

pam was defaulting to use of 'login', but we want 'confluent' for the service.
This commit is contained in:
Jarrod Johnson 2020-02-02 18:18:39 -05:00
parent c99d01dffc
commit 895b5264f6

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)
usergood = pammy.authenticate(user, passphrase, service='confluent')
del pammy
if usergood:
_passcache[(user, tenant)] = hashlib.sha256(passphrase).digest()