s3:winbindd: call rpccli_pre_open_netlogon_creds() in the parent
authorStefan Metzmacher <metze@samba.org>
Tue, 17 Dec 2013 19:06:14 +0000 (20:06 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 17 Dec 2013 20:20:04 +0000 (21:20 +0100)
This opens the CLEAR_IF_FIRST tdb in the long living parent.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/winbindd/winbindd.c

index 361d02c03bd0ff0373c7c74229790f2b8e9a684b..8c480e523c94679500e574aaf90d640dc9d625dc 100644 (file)
@@ -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. */