summaryrefslogtreecommitdiffstats
path: root/src/responder/nss/nsssrv.c
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2010-09-22 16:47:06 -0400
committerStephen Gallagher <sgallagh@redhat.com>2010-10-13 09:49:37 -0400
commitef39c0adcb61b16f9edc7beb4cdc8f3b0d5a8f15 (patch)
treefd913c63d5dfe688a6d0e408af31695b874f608b /src/responder/nss/nsssrv.c
parent88a9c6a44b474bff0f7e22f9eb28a9e55df2c0b5 (diff)
downloadsssd-ef39c0adcb61b16f9edc7beb4cdc8f3b0d5a8f15.tar.gz
sssd-ef39c0adcb61b16f9edc7beb4cdc8f3b0d5a8f15.tar.xz
sssd-ef39c0adcb61b16f9edc7beb4cdc8f3b0d5a8f15.zip
Add netgroup support to the NSS responder
Diffstat (limited to 'src/responder/nss/nsssrv.c')
-rw-r--r--src/responder/nss/nsssrv.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/responder/nss/nsssrv.c b/src/responder/nss/nsssrv.c
index f14d698f2..4f5aa6293 100644
--- a/src/responder/nss/nsssrv.c
+++ b/src/responder/nss/nsssrv.c
@@ -162,6 +162,7 @@ int nss_process_init(TALLOC_CTX *mem_ctx,
struct be_conn *iter;
struct nss_ctx *nctx;
int ret, max_retries;
+ int hret;
nctx = talloc_zero(mem_ctx, struct nss_ctx);
if (!nctx) {
@@ -212,6 +213,13 @@ int nss_process_init(TALLOC_CTX *mem_ctx,
nss_dp_reconnect_init, iter);
}
+ /* Create the lookup table for netgroup results */
+ hret = hash_create(10, &nctx->netgroups, NULL, NULL);
+ if (hret != HASH_SUCCESS) {
+ DEBUG(0,("Unable to initialize netgroup hash table\n"));
+ return EIO;
+ }
+
DEBUG(1, ("NSS Initialization complete\n"));
return EOK;