summaryrefslogtreecommitdiffstats
path: root/server/nss/nsssrv.c
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2009-01-06 18:30:04 -0500
committerSimo Sorce <idra@samba.org>2009-01-06 18:30:04 -0500
commit054321c995958ecc7f8e5a92f8d35c6a6bd6e809 (patch)
treeb02fec790d5f2af9b68a4a0cf72278f59b37b719 /server/nss/nsssrv.c
parent2ef9239a6a33890b4ea077ceee8d3e8d8a18cc3c (diff)
downloadsssd-054321c995958ecc7f8e5a92f8d35c6a6bd6e809.tar.gz
sssd-054321c995958ecc7f8e5a92f8d35c6a6bd6e809.tar.xz
sssd-054321c995958ecc7f8e5a92f8d35c6a6bd6e809.zip
Add initial support to connect nss to the data provider as a frontend
Diffstat (limited to 'server/nss/nsssrv.c')
-rw-r--r--server/nss/nsssrv.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/server/nss/nsssrv.c b/server/nss/nsssrv.c
index e42efacf9..bd9202bdc 100644
--- a/server/nss/nsssrv.c
+++ b/server/nss/nsssrv.c
@@ -40,6 +40,7 @@
#include "sbus_interfaces.h"
#include "util/btreemap.h"
#include "util/service_helpers.h"
+#include "providers/data_provider.h"
#define SSS_NSS_PIPE_NAME "nss"
@@ -403,6 +404,12 @@ int nss_process_init(TALLOC_CTX *mem_ctx,
return ret;
}
+ ret = nss_cmd_init(nctx);
+ if (ret != EOK) {
+ DEBUG(0, ("fatal error setting up backend connector\n"));
+ return ret;
+ }
+
ret = nss_ldb_init(nctx, ev, cdb, &nctx->lctx);
if (ret != EOK) {
DEBUG(0, ("fatal error initializing nss_ctx\n"));