summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2011-12-16 13:08:14 +0100
committerStephen Gallagher <sgallagh@redhat.com>2011-12-20 09:01:06 -0500
commitf1055c2a8036bb11b5788f969078edee8ba5326e (patch)
treea504fa3267e3f7812daefdb61ccc67794db18098 /src
parent0a6755045096487bffbe4cf00eb071bdae6f3d27 (diff)
downloadsssd-f1055c2a8036bb11b5788f969078edee8ba5326e.tar.gz
sssd-f1055c2a8036bb11b5788f969078edee8ba5326e.tar.bz2
sssd-f1055c2a8036bb11b5788f969078edee8ba5326e.zip
Error out if local domain is case insensitive
https://fedorahosted.org/sssd/ticket/1104
Diffstat (limited to 'src')
-rw-r--r--src/confdb/confdb.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/confdb/confdb.c b/src/confdb/confdb.c
index 9ebe0127..f0a8caa9 100644
--- a/src/confdb/confdb.c
+++ b/src/confdb/confdb.c
@@ -862,6 +862,13 @@ static int confdb_get_domain_internal(struct confdb_ctx *cdb,
DEBUG(0, ("Invalid value for %s\n", CONFDB_DOMAIN_CASE_SENSITIVE));
goto done;
}
+ if (domain->case_sensitive == false &&
+ strcasecmp(domain->provider, "local") == 0) {
+ DEBUG(SSSDBG_FATAL_FAILURE,
+ ("Local ID provider does not support the case insensitive flag\n"));
+ ret = EINVAL;
+ goto done;
+ }
*_domain = domain;
ret = EOK;