libcli/auth: Provide a struct loadparm_context to schannel calls
[kai/samba.git] / source4 / smbd / server.c
index 322e45569fd693ed045dd907ab0f1e4bb7282f66..c8549e2b568b95cc9649b173698831585258d09a 100644 (file)
@@ -393,7 +393,7 @@ static int binary_smbd_main(const char *binary_name, int argc, const char *argv[
        }
 
        if (lpcfg_server_role(cmdline_lp_ctx) == ROLE_DOMAIN_CONTROLLER) {
-               if (!open_schannel_session_store(talloc_autofree_context(), lpcfg_private_dir(cmdline_lp_ctx))) {
+               if (!open_schannel_session_store(talloc_autofree_context(), cmdline_lp_ctx)) {
                        DEBUG(0,("ERROR: Samba cannot open schannel store for secured NETLOGON operations.\n"));
                        exit(1);
                }