summaryrefslogtreecommitdiff
path: root/source4/rpc_server/unixinfo
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-12-04 20:05:00 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:48:13 +0100
commit57f20ccd242e45ff91850341594aa040d113c19e (patch)
tree031f9ebc3a2b102f0d4139a896e3d2bff519fa6f /source4/rpc_server/unixinfo
parenta693e6f1c71d9772b52cf40a85b0504cea837240 (diff)
downloadsamba-57f20ccd242e45ff91850341594aa040d113c19e.tar.gz
samba-57f20ccd242e45ff91850341594aa040d113c19e.tar.bz2
samba-57f20ccd242e45ff91850341594aa040d113c19e.zip
r26296: Store loadparm context in DCE/RPC server context.
(This used to be commit fc1f4d2d65d4c983cba5421e7ffb64dd75482860)
Diffstat (limited to 'source4/rpc_server/unixinfo')
-rw-r--r--source4/rpc_server/unixinfo/dcesrv_unixinfo.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/rpc_server/unixinfo/dcesrv_unixinfo.c b/source4/rpc_server/unixinfo/dcesrv_unixinfo.c
index 290cfda640..2c08d501d1 100644
--- a/source4/rpc_server/unixinfo/dcesrv_unixinfo.c
+++ b/source4/rpc_server/unixinfo/dcesrv_unixinfo.c
@@ -36,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, global_loadparm);
+ sidmap = sidmap_open(mem_ctx, dce_call->conn->dce_ctx->lp_ctx);
if (sidmap == NULL) {
DEBUG(10, ("sidmap_open failed\n"));
return NT_STATUS_NO_MEMORY;
@@ -56,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, global_loadparm);
+ sidmap = sidmap_open(mem_ctx, dce_call->conn->dce_ctx->lp_ctx);
if (sidmap == NULL) {
DEBUG(10, ("sidmap_open failed\n"));
return NT_STATUS_NO_MEMORY;
@@ -80,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, global_loadparm);
+ sidmap = sidmap_open(mem_ctx, dce_call->conn->dce_ctx->lp_ctx);
if (sidmap == NULL) {
DEBUG(10, ("sidmap_open failed\n"));
return NT_STATUS_NO_MEMORY;
@@ -100,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, global_loadparm);
+ sidmap = sidmap_open(mem_ctx, dce_call->conn->dce_ctx->lp_ctx);
if (sidmap == NULL) {
DEBUG(10, ("sidmap_open failed\n"));
return NT_STATUS_NO_MEMORY;