From cb85329bf73f55f6433d3a9194d2b87c631aea4a Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Wed, 8 Jan 2014 17:12:17 +0100 Subject: 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. --- src/util/util_errors.c | 1 + src/util/util_errors.h | 1 + 2 files changed, 2 insertions(+) (limited to 'src/util') 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 */ }; -- cgit