r26296: Store loadparm context in DCE/RPC server context.
[jelmer/samba4-debian.git] / source / rpc_server / lsa / lsa_init.c
index c86fdf333d321b23775e5760609552985569a960..57599b96a22552d1e0f5d929acbf5ae04c1b56f6 100644 (file)
@@ -50,14 +50,14 @@ NTSTATUS dcesrv_lsa_get_policy_state(struct dcesrv_call_state *dce_call, TALLOC_
        }
 
        /* make sure the sam database is accessible */
        }
 
        /* make sure the sam database is accessible */
-       state->sam_ldb = samdb_connect(state, global_loadparm, dce_call->conn->auth_state.session_info); 
+       state->sam_ldb = samdb_connect(state, dce_call->conn->dce_ctx->lp_ctx, dce_call->conn->auth_state.session_info); 
        if (state->sam_ldb == NULL) {
                return NT_STATUS_INVALID_SYSTEM_SERVICE;
        }
 
        partitions_basedn = samdb_partitions_dn(state->sam_ldb, mem_ctx);
 
        if (state->sam_ldb == NULL) {
                return NT_STATUS_INVALID_SYSTEM_SERVICE;
        }
 
        partitions_basedn = samdb_partitions_dn(state->sam_ldb, mem_ctx);
 
-       state->sidmap = sidmap_open(state, global_loadparm);
+       state->sidmap = sidmap_open(state, dce_call->conn->dce_ctx->lp_ctx);
        if (state->sidmap == NULL) {
                return NT_STATUS_INVALID_SYSTEM_SERVICE;
        }
        if (state->sidmap == NULL) {
                return NT_STATUS_INVALID_SYSTEM_SERVICE;
        }