summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-06-23 10:33:15 +1000
committerJeremy Allison <jra@samba.org>2010-06-25 11:57:52 -0700
commit58d0b638c802241655b205b1974e48f477c2eaeb (patch)
treeb8f1385fe15cb0f21d1a051949f6f6cbb0498c22
parent825b2f456c136b33d139ee76e58426437bce65b8 (diff)
downloadsamba-58d0b638c802241655b205b1974e48f477c2eaeb.tar.gz
samba-58d0b638c802241655b205b1974e48f477c2eaeb.tar.bz2
samba-58d0b638c802241655b205b1974e48f477c2eaeb.zip
s4:schannel Open the schannel_store.tdb at startup
This will allow TDB_CLEAR_IF_FIRST behaviour in future Signed-off-by: Jeremy Allison <jra@samba.org>
-rw-r--r--source4/smbd/server.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/smbd/server.c b/source4/smbd/server.c
index 88917c4f38..11415a1424 100644
--- a/source4/smbd/server.c
+++ b/source4/smbd/server.c
@@ -31,6 +31,7 @@
#include "ntvfs/ntvfs.h"
#include "ntptr/ntptr.h"
#include "auth/gensec/gensec.h"
+#include "libcli/auth/schannel.h"
#include "smbd/process_model.h"
#include "param/secrets.h"
#include "smbd/pidfile.h"
@@ -400,6 +401,13 @@ static int binary_smbd_main(const char *binary_name, int argc, const char *argv[
return 1;
}
+ if (lp_server_role(cmdline_lp_ctx) == ROLE_DOMAIN_CONTROLLER) {
+ if (!open_schannel_session_store(talloc_autofree_context(), lp_private_dir(cmdline_lp_ctx))) {
+ DEBUG(0,("ERROR: Samba cannot open schannel store for secured NETLOGON operations.\n"));
+ exit(1);
+ }
+ }
+
gensec_init(cmdline_lp_ctx); /* FIXME: */
ntptr_init(cmdline_lp_ctx); /* FIXME: maybe run this in the initialization function