1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-22 07:33:16 +03:00

r26296: Store loadparm context in DCE/RPC server context.

This commit is contained in:
Jelmer Vernooij
2007-12-04 20:05:00 +01:00
committed by Stefan Metzmacher
parent 47696b4298
commit fc1f4d2d65
18 changed files with 86 additions and 79 deletions

View 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 */
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);
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;
}