summaryrefslogtreecommitdiff
path: root/server/responder/nss
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2009-03-20 11:10:56 -0400
committerSimo Sorce <ssorce@redhat.com>2009-03-20 11:14:57 -0400
commitde69927053fcc56a337af4ab0c93d24444eb6c24 (patch)
treedb4ee2b6d5aac4e217c2deb94d45cb0f09c08ade /server/responder/nss
parent7d5bf9a11d60e5330e12d5d94ebba8d6a4606eb0 (diff)
downloadsssd-de69927053fcc56a337af4ab0c93d24444eb6c24.tar.gz
sssd-de69927053fcc56a337af4ab0c93d24444eb6c24.tar.bz2
sssd-de69927053fcc56a337af4ab0c93d24444eb6c24.zip
Enhance server_setup
Now it can load from scratch default configuration that is valid for all daemons. First thing, make it possible for each daemon/provider to set its own debug level in its configuration entry.
Diffstat (limited to 'server/responder/nss')
-rw-r--r--server/responder/nss/nsssrv.c2
-rw-r--r--server/responder/nss/nsssrv.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/server/responder/nss/nsssrv.c b/server/responder/nss/nsssrv.c
index f12fb6c5..c1bfb969 100644
--- a/server/responder/nss/nsssrv.c
+++ b/server/responder/nss/nsssrv.c
@@ -519,7 +519,7 @@ int main(int argc, const char *argv[])
poptFreeContext(pc);
/* set up things like debug , signals, daemonization, etc... */
- ret = server_setup("sssd[nss]", 0, &main_ctx);
+ ret = server_setup("sssd[nss]", 0, NSS_CONF_ENTRY, &main_ctx);
if (ret != EOK) return 2;
ret = nss_process_init(main_ctx,
diff --git a/server/responder/nss/nsssrv.h b/server/responder/nss/nsssrv.h
index 4f5750de..954ae8f2 100644
--- a/server/responder/nss/nsssrv.h
+++ b/server/responder/nss/nsssrv.h
@@ -47,6 +47,8 @@
#define NSS_ENUM_GROUPS 0x02
#define NSS_ENUM_ALL 0x03
+#define NSS_SRV_CONFIG "config/services/nss"
+
struct sysdb_ctx;
struct getpwent_ctx;
struct getgrent_ctx;