dependencies: bumped python-pam to 1.8.4 and fixed pam auth.

This commit is contained in:
Marcin Kuzminski 2018-07-31 16:56:20 +02:00
parent 5eda6803c5
commit 490e2c8a57
3 changed files with 9 additions and 9 deletions

View file

@ -111,8 +111,8 @@ class RhodeCodeAuthPlugin(RhodeCodeExternalAuthPlugin):
if not username or not password:
log.debug('Empty username or password skipping...')
return None
auth_result = pam.authenticate(username, password, settings["service"])
_pam = pam.pam()
auth_result = _pam.authenticate(username, password, settings["service"])
if not auth_result:
log.error("PAM was unable to authenticate user: %s" % (username, ))