diff options
author | Stefan Metzmacher <metze@samba.org> | 2013-12-17 20:06:14 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2014-01-07 12:47:08 +0100 |
commit | 07126b6fb22cebce660d1d1a4f0f9fb905064aa0 (patch) | |
tree | 20ce2e7a2ed7d02def46c9d9fc9ecd00563f9294 /source3 | |
parent | b7dc3fb20468aa67ea7ddc1cea21fbe458e74565 (diff) | |
download | samba-07126b6fb22cebce660d1d1a4f0f9fb905064aa0.tar.gz samba-07126b6fb22cebce660d1d1a4f0f9fb905064aa0.tar.xz samba-07126b6fb22cebce660d1d1a4f0f9fb905064aa0.zip |
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 <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/winbindd/winbindd.c | 8 |
1 files changed, 8 insertions, 0 deletions
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. */ |