[SSSD] [PATCH] Add sss_ldap_err2string() to handle private error codes
Jakub Hrozek
jhrozek at redhat.com
Mon Sep 5 10:36:03 UTC 2011
On Mon, Sep 05, 2011 at 11:03:06AM +0200, Pavel Březina wrote:
> https://fedorahosted.org/sssd/ticket/986
>
> [PATCH 1/2] sss_ldap_err2string() created
> [PATCH 2/2] ldap_err2string() changed to sss_ldap_err2string()
> +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;
Actually, do we want to treat these error strings as translatable? I
would think so, to treat them the same as ldap_err2string()
> + default:
> + return ldap_err2string(err);
> + }
> +}
> +
More information about the sssd-devel
mailing list