From 5603dab6478fbb40206a8664a308b5db5b1863e8 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 12 Oct 2011 22:55:34 +1100 Subject: libcli/auth: Provide a struct loadparm_context to schannel calls This will allow us to pass this down to the tdb_wrap layer. Andrew Bartlett --- source3/smbd/server.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source3/smbd') diff --git a/source3/smbd/server.c b/source3/smbd/server.c index e47187a697..acbab9d88c 100644 --- a/source3/smbd/server.c +++ b/source3/smbd/server.c @@ -40,6 +40,7 @@ #include "messages.h" #include "smbprofile.h" #include "lib/id_cache.h" +#include "lib/param/param.h" extern void start_epmd(struct tevent_context *ev_ctx, struct messaging_context *msg_ctx); @@ -1150,10 +1151,12 @@ extern void build_options(bool screen); } if (lp_server_role() == ROLE_DOMAIN_BDC || lp_server_role() == ROLE_DOMAIN_PDC) { - if (!open_schannel_session_store(NULL, lp_private_dir())) { + struct loadparm_context *lp_ctx = loadparm_init_s3(NULL, loadparm_s3_context()); + if (!open_schannel_session_store(NULL, lp_ctx)) { DEBUG(0,("ERROR: Samba cannot open schannel store for secured NETLOGON operations.\n")); exit(1); } + TALLOC_FREE(lp_ctx); } if(!get_global_sam_sid()) { -- cgit