summaryrefslogtreecommitdiffstats
path: root/server/confdb/confdb.c
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2009-12-09 09:13:24 -0500
committerStephen Gallagher <sgallagh@redhat.com>2009-12-09 10:05:18 -0500
commit531316ddc26fcabedeb14f5bfe1d81a5ac2e0f79 (patch)
tree081e87234ab38fb035ed6f44538131ceca1c54e5 /server/confdb/confdb.c
parent9fbf84a98519a349198ee1a4c4d0786432de378e (diff)
downloadsssd-531316ddc26fcabedeb14f5bfe1d81a5ac2e0f79.tar.gz
sssd-531316ddc26fcabedeb14f5bfe1d81a5ac2e0f79.tar.xz
sssd-531316ddc26fcabedeb14f5bfe1d81a5ac2e0f79.zip
Properly deny id_provider=files
Diffstat (limited to 'server/confdb/confdb.c')
-rw-r--r--server/confdb/confdb.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/server/confdb/confdb.c b/server/confdb/confdb.c
index 07d776c88..ad354e5bb 100644
--- a/server/confdb/confdb.c
+++ b/server/confdb/confdb.c
@@ -810,6 +810,13 @@ static int confdb_get_domain_internal(struct confdb_ctx *cdb,
goto done;
}
+ if (strcasecmp(domain->provider, "files") == 0) {
+ /* The files provider is not valid anymore */
+ DEBUG(0, ("The \"files\" provider is invalid\n"));
+ ret = EINVAL;
+ goto done;
+ }
+
if (strcasecmp(domain->provider, "local") == 0) {
/* If this is the local provider, we need to ensure that
* no other provider was specified for other types, since