dependencies: bumped python-pam to 1.8.4 and fixed pam auth.
This commit is contained in:
parent
5eda6803c5
commit
490e2c8a57
3 changed files with 9 additions and 9 deletions
|
|
@ -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, ))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue