diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2014-01-08 17:12:17 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-01-09 12:11:00 +0100 |
commit | cb85329bf73f55f6433d3a9194d2b87c631aea4a (patch) | |
tree | 0415e291ab5f20dc15a3b7a931c110884d339ff0 /src/util | |
parent | 98869bb5e22774dc02dacd93e411975fa839b616 (diff) | |
download | sssd-cb85329bf73f55f6433d3a9194d2b87c631aea4a.tar.gz sssd-cb85329bf73f55f6433d3a9194d2b87c631aea4a.tar.xz sssd-cb85329bf73f55f6433d3a9194d2b87c631aea4a.zip |
LDAP: Add a new error code for malformed access control filter
https://fedorahosted.org/sssd/ticket/2164
The patch adds a new error code and special cases the new code so that
access is denied and a nicer log message is shown.
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/util_errors.c | 1 | ||||
-rw-r--r-- | src/util/util_errors.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/util/util_errors.c b/src/util/util_errors.c index 114c8b04f..633257e8d 100644 --- a/src/util/util_errors.c +++ b/src/util/util_errors.c @@ -51,6 +51,7 @@ struct err_string error_to_str[] = { { "Entry not found" }, /* ERR_NOT_FOUND */ { "Domain not found" }, /* ERR_DOMAIN_NOT_FOUND */ { "Missing configuration file" }, /* ERR_MISSING_CONF */ + { "Malformed search filter" }, /* ERR_INVALID_FILTER, */ }; diff --git a/src/util/util_errors.h b/src/util/util_errors.h index bca45f392..133208503 100644 --- a/src/util/util_errors.h +++ b/src/util/util_errors.h @@ -73,6 +73,7 @@ enum sssd_errors { ERR_NOT_FOUND, ERR_DOMAIN_NOT_FOUND, ERR_MISSING_CONF, + ERR_INVALID_FILTER, ERR_LAST /* ALWAYS LAST */ }; |