summaryrefslogtreecommitdiffstats
path: root/src/python/pyhbac.c
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2014-08-20 16:44:49 +0200
committerJakub Hrozek <jhrozek@redhat.com>2014-08-22 17:39:24 +0200
commit06ba69972e6728f97f5adbcc3cc4df811a831f53 (patch)
treeebbc56df9b8033be2c538951a8b52e49b1cbde2c /src/python/pyhbac.c
parent5a4df83d769ace54f92513f0be78e753e0985a25 (diff)
downloadsssd-06ba69972e6728f97f5adbcc3cc4df811a831f53.tar.gz
sssd-06ba69972e6728f97f5adbcc3cc4df811a831f53.tar.xz
sssd-06ba69972e6728f97f5adbcc3cc4df811a831f53.zip
LDAP: Do not shortcut on ret != EOK during password expiry check
https://fedorahosted.org/sssd/ticket/2323 The functions that check for password expiration can return non-zero return codes not only on internal failure, but also to indicate that the password was expired. The code would in this case shortcut in the error handler instead of making its way to the switch-case code below that translates the SSSD error codes into PAM error codes. We don't lose the error reporting, because any internal error would translate into PAM_SYSTEM_ERROR anyway. Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
Diffstat (limited to 'src/python/pyhbac.c')
0 files changed, 0 insertions, 0 deletions