diff options
Diffstat (limited to 'src/util/sss_ldap.c')
-rw-r--r-- | src/util/sss_ldap.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/util/sss_ldap.c b/src/util/sss_ldap.c index 060aacf9e..f7834d940 100644 --- a/src/util/sss_ldap.c +++ b/src/util/sss_ldap.c @@ -32,12 +32,9 @@ const char* sss_ldap_err2string(int err) { - static const char *password_expired = "Password expired"; - - switch (err) { - case LDAP_X_SSSD_PASSWORD_EXPIRED: - return password_expired; - default: + if (IS_SSSD_ERROR(err)) { + return sss_strerror(err); + } else { return ldap_err2string(err); } } |