mirror of
https://github.com/samba-team/samba.git
synced 2025-10-25 19:33:18 +03:00
r26228: Store loadparm context in auth context, move more loadparm_contexts up the call stack.
This commit is contained in:
committed by
Stefan Metzmacher
parent
0721a07aad
commit
ba75f1613a
@@ -57,7 +57,7 @@ NTSTATUS dcesrv_lsa_get_policy_state(struct dcesrv_call_state *dce_call, TALLOC_
|
||||
|
||||
partitions_basedn = samdb_partitions_dn(state->sam_ldb, mem_ctx);
|
||||
|
||||
state->sidmap = sidmap_open(state);
|
||||
state->sidmap = sidmap_open(state, global_loadparm);
|
||||
if (state->sidmap == NULL) {
|
||||
return NT_STATUS_INVALID_SYSTEM_SERVICE;
|
||||
}
|
||||
|
||||
@@ -244,7 +244,7 @@ static NTSTATUS dcesrv_netr_creds_server_step_check(const char *computer_name,
|
||||
struct ldb_context *ldb;
|
||||
int ret;
|
||||
|
||||
ldb = schannel_db_connect(mem_ctx);
|
||||
ldb = schannel_db_connect(mem_ctx, global_loadparm);
|
||||
if (!ldb) {
|
||||
return NT_STATUS_ACCESS_DENIED;
|
||||
}
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
#include "lib/events/events.h"
|
||||
#include "dsdb/samdb/samdb.h"
|
||||
#include "system/passwd.h"
|
||||
#include "param/param.h"
|
||||
|
||||
static NTSTATUS dcesrv_unixinfo_SidToUid(struct dcesrv_call_state *dce_call,
|
||||
TALLOC_CTX *mem_ctx,
|
||||
@@ -35,7 +36,7 @@ static NTSTATUS dcesrv_unixinfo_SidToUid(struct dcesrv_call_state *dce_call,
|
||||
struct sidmap_context *sidmap;
|
||||
uid_t uid;
|
||||
|
||||
sidmap = sidmap_open(mem_ctx);
|
||||
sidmap = sidmap_open(mem_ctx, global_loadparm);
|
||||
if (sidmap == NULL) {
|
||||
DEBUG(10, ("sidmap_open failed\n"));
|
||||
return NT_STATUS_NO_MEMORY;
|
||||
@@ -55,7 +56,7 @@ static NTSTATUS dcesrv_unixinfo_UidToSid(struct dcesrv_call_state *dce_call,
|
||||
struct sidmap_context *sidmap;
|
||||
uid_t uid;
|
||||
|
||||
sidmap = sidmap_open(mem_ctx);
|
||||
sidmap = sidmap_open(mem_ctx, global_loadparm);
|
||||
if (sidmap == NULL) {
|
||||
DEBUG(10, ("sidmap_open failed\n"));
|
||||
return NT_STATUS_NO_MEMORY;
|
||||
@@ -79,7 +80,7 @@ static NTSTATUS dcesrv_unixinfo_SidToGid(struct dcesrv_call_state *dce_call,
|
||||
struct sidmap_context *sidmap;
|
||||
gid_t gid;
|
||||
|
||||
sidmap = sidmap_open(mem_ctx);
|
||||
sidmap = sidmap_open(mem_ctx, global_loadparm);
|
||||
if (sidmap == NULL) {
|
||||
DEBUG(10, ("sidmap_open failed\n"));
|
||||
return NT_STATUS_NO_MEMORY;
|
||||
@@ -99,7 +100,7 @@ static NTSTATUS dcesrv_unixinfo_GidToSid(struct dcesrv_call_state *dce_call,
|
||||
struct sidmap_context *sidmap;
|
||||
gid_t gid;
|
||||
|
||||
sidmap = sidmap_open(mem_ctx);
|
||||
sidmap = sidmap_open(mem_ctx, global_loadparm);
|
||||
if (sidmap == NULL) {
|
||||
DEBUG(10, ("sidmap_open failed\n"));
|
||||
return NT_STATUS_NO_MEMORY;
|
||||
|
||||
Reference in New Issue
Block a user