summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichal Zidek <mzidek@redhat.com>2015-03-10 17:30:48 +0100
committerJakub Hrozek <jhrozek@redhat.com>2015-03-13 09:33:59 +0100
commit7c69221077c780e62f6c536e78675f2dc1c131bc (patch)
tree6170344df6691be0b89520e967ca6afb328c8a2a /src
parent33b8bf140b1d82d2626eeeaaea29af49dcdb3c99 (diff)
downloadsssd-7c69221077c780e62f6c536e78675f2dc1c131bc.tar.gz
sssd-7c69221077c780e62f6c536e78675f2dc1c131bc.tar.xz
sssd-7c69221077c780e62f6c536e78675f2dc1c131bc.zip
DEBUG: Add missing strings for error messages
We had more error codes than corresponding messages. Also order of two messages was wrong. Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/util/util_errors.c3
-rw-r--r--src/util/util_errors.h2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/util/util_errors.c b/src/util/util_errors.c
index 27d9ecc4d..5ce64a16c 100644
--- a/src/util/util_errors.c
+++ b/src/util/util_errors.c
@@ -42,6 +42,9 @@ struct err_string error_to_str[] = {
{ "Network I/O Error" }, /* ERR_NETWORK_IO */
{ "Account Expired" }, /* ERR_ACCOUNT_EXPIRED */
{ "Password Expired" }, /* ERR_PASSWORD_EXPIRED */
+ { "Password Expired (reject access)" }, /* ERR_PASSWORD_EXPIRED_REJECT */
+ { "Password Expired (warn user)" }, /* ERR_PASSWORD_EXPIRED_WARN */
+ { "Password Expired (ask for new password)" }, /* ERR_PASSWORD_EXPIRED_RENEW */
{ "Host Access Denied" }, /* ERR_ACCESS_DENIED */
{ "SRV record not found" }, /* ERR_SRV_NOT_FOUND */
{ "SRV lookup error" }, /* ERR_SRV_LOOKUP_ERROR */
diff --git a/src/util/util_errors.h b/src/util/util_errors.h
index de0ed3558..36d0098ff 100644
--- a/src/util/util_errors.h
+++ b/src/util/util_errors.h
@@ -53,10 +53,10 @@ enum sssd_errors {
ERR_INVALID_CRED_TYPE,
ERR_NO_CREDS,
ERR_CREDS_EXPIRED,
+ ERR_CREDS_EXPIRED_CCACHE,
ERR_CREDS_INVALID,
ERR_NO_CACHED_CREDS,
ERR_CACHED_CREDS_EXPIRED,
- ERR_CREDS_EXPIRED_CCACHE,
ERR_AUTH_DENIED,
ERR_AUTH_FAILED,
ERR_CHPASS_DENIED,