diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2009-06-08 10:07:04 -0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2009-06-08 10:24:07 -0400 |
commit | 8c854801170a0994e783dcea6829430716c8a6bc (patch) | |
tree | 42576563573f8d698ee336617b300b6f33776910 /server | |
parent | eb9219600d93bd3b88b0d4c8c3052a77f0c2fdd5 (diff) | |
download | sssd-8c854801170a0994e783dcea6829430716c8a6bc.tar.gz sssd-8c854801170a0994e783dcea6829430716c8a6bc.tar.xz sssd-8c854801170a0994e783dcea6829430716c8a6bc.zip |
Treat a missing provider entry as a config error
Diffstat (limited to 'server')
-rw-r--r-- | server/confdb/confdb.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/server/confdb/confdb.c b/server/confdb/confdb.c index 7c88b25b6..8eefcfb6f 100644 --- a/server/confdb/confdb.c +++ b/server/confdb/confdb.c @@ -730,6 +730,11 @@ int confdb_get_domain(struct confdb_ctx *cdb, goto done; } } + else { + DEBUG(0, ("Domain [%s] does not specify a provider, disabling!\n", + domain->name)); + ret = EINVAL; + } domain->timeout = ldb_msg_find_attr_as_int(res->msgs[0], "timeout", 0); @@ -805,8 +810,8 @@ int confdb_get_domains(struct confdb_ctx *cdb, for (i = 0; domlist[i]; i++) { ret = confdb_get_domain(cdb, mem_ctx, domlist[i], &domain); if (ret) { - DEBUG(0, ("Error (%d [%s]) retrieving domain %s, skipping!\n", - ret, strerror(ret), domains[i])); + DEBUG(0, ("Error (%d [%s]) retrieving domain [%s], skipping!\n", + ret, strerror(ret), domlist[i])); continue; } |