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:28:42 +0100 |
commit | 79ee5fbacd6ee4153fa59edf5b1ae55b4f020211 (patch) | |
tree | 43fcfe4379467f67a7fd5add18e292f378cd0219 | |
parent | cc0f9a541c5ecdad750a86b2de9baa1f07403e9e (diff) | |
download | sssd-79ee5fbacd6ee4153fa59edf5b1ae55b4f020211.tar.gz sssd-79ee5fbacd6ee4153fa59edf5b1ae55b4f020211.tar.xz sssd-79ee5fbacd6ee4153fa59edf5b1ae55b4f020211.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>
-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 f5feece5d..be2dacf53 100644 --- a/src/providers/ldap/sdap_access.c +++ b/src/providers/ldap/sdap_access.c @@ -1779,6 +1779,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; |