summaryrefslogtreecommitdiff
path: root/source3/smbd/server.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-06-23 10:36:32 +1000
committerJeremy Allison <jra@samba.org>2010-06-25 11:58:28 -0700
commitcfece164981142168aa6c846c7433f0459fb6de7 (patch)
tree1581c27354be20305aeec623ffef9a8485090cdd /source3/smbd/server.c
parent58d0b638c802241655b205b1974e48f477c2eaeb (diff)
downloadsamba-cfece164981142168aa6c846c7433f0459fb6de7.tar.gz
samba-cfece164981142168aa6c846c7433f0459fb6de7.tar.bz2
samba-cfece164981142168aa6c846c7433f0459fb6de7.zip
s3:schannel Open the schannel_state.tdb at startup
This will allow future TDB_CLEAR_IF_FIRST behaviour Signed-off-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/smbd/server.c')
-rw-r--r--source3/smbd/server.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index 2bb0bb87fe..03fd9aa79d 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -25,6 +25,7 @@
#include "smbd/globals.h"
#include "librpc/gen_ndr/messaging.h"
#include "registry.h"
+#include "libcli/auth/schannel.h"
static_decl_rpc;
@@ -1023,6 +1024,13 @@ extern void build_options(bool screen);
exit(1);
}
+ if (lp_server_role() == ROLE_DOMAIN_BDC || lp_server_role() == ROLE_DOMAIN_PDC) {
+ if (!open_schannel_session_store(talloc_autofree_context(), lp_private_dir())) {
+ DEBUG(0,("ERROR: Samba cannot open schannel store for secured NETLOGON operations.\n"));
+ exit(1);
+ }
+ }
+
if(!get_global_sam_sid()) {
DEBUG(0,("ERROR: Samba cannot create a SAM SID.\n"));
exit(1);