From 07126b6fb22cebce660d1d1a4f0f9fb905064aa0 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 17 Dec 2013 20:06:14 +0100 Subject: [PATCH] s3:winbindd: call rpccli_pre_open_netlogon_creds() in the parent This opens the CLEAR_IF_FIRST tdb in the long living parent. Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett --- source3/winbindd/winbindd.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source3/winbindd/winbindd.c b/source3/winbindd/winbindd.c index 361d02c03bd..8c480e523c9 100644 --- a/source3/winbindd/winbindd.c +++ b/source3/winbindd/winbindd.c @@ -31,6 +31,7 @@ #include "../librpc/gen_ndr/srv_lsa.h" #include "../librpc/gen_ndr/srv_samr.h" #include "secrets.h" +#include "rpc_client/cli_netlogon.h" #include "idmap.h" #include "lib/addrchange.h" #include "serverid.h" @@ -1507,6 +1508,13 @@ int main(int argc, char **argv, char **envp) return False; } + status = rpccli_pre_open_netlogon_creds(); + if (!NT_STATUS_IS_OK(status)) { + DEBUG(0, ("rpccli_pre_open_netlogon_creds() - %s\n", + nt_errstr(status))); + exit(1); + } + /* Unblock all signals we are interested in as they may have been blocked by the parent process. */ -- 2.34.1