diff options
author | Pavel Reichl <preichl@redhat.com> | 2015-03-06 04:38:05 -0500 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2015-03-06 13:37:36 +0100 |
commit | 371c5f40199b6389bd3cbfd05654b2213caecfc1 (patch) | |
tree | 7577888df15f0480732395792daf3b396d5aad8b /src | |
parent | 8ebc05498460ce28eff012649c892b248c53632f (diff) | |
download | sssd-371c5f40199b6389bd3cbfd05654b2213caecfc1.tar.gz sssd-371c5f40199b6389bd3cbfd05654b2213caecfc1.tar.xz sssd-371c5f40199b6389bd3cbfd05654b2213caecfc1.zip |
SDAP: fix minor neglect in is_account_locked()
It would be better to return explicit error code, although access is
still denied and error message printed.
Relates:
https://fedorahosted.org/sssd/ticket/2534
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/providers/ldap/sdap_access.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/providers/ldap/sdap_access.c b/src/providers/ldap/sdap_access.c index 4a45ff419..0b2511213 100644 --- a/src/providers/ldap/sdap_access.c +++ b/src/providers/ldap/sdap_access.c @@ -1767,6 +1767,8 @@ is_account_locked(const char *pwdAccountLockedTime, default: DEBUG(SSSDBG_MINOR_FAILURE, "Unexpected value of password policy mode: %d.\n", pwpol_mode); + ret = EINVAL; + goto done; } ret = EOK; |