diff options
author | Kai Blin <kai@samba.org> | 2009-04-23 16:37:11 +0200 |
---|---|---|
committer | Kai Blin <kai@samba.org> | 2010-02-11 23:56:35 +0100 |
commit | ea055e8c7905ec5d229fd5b50ca9ec8f60073b53 (patch) | |
tree | 1fbb879a3bb2ff7b273c512dbec6e4b86b694521 /source4/rpc_server/unixinfo | |
parent | 86d70ae94425c34fcb7cc7791a6e54b1a47f21cc (diff) | |
download | samba-ea055e8c7905ec5d229fd5b50ca9ec8f60073b53.tar.gz samba-ea055e8c7905ec5d229fd5b50ca9ec8f60073b53.tar.bz2 samba-ea055e8c7905ec5d229fd5b50ca9ec8f60073b53.zip |
s4: Switch to S3-style id mapping data types.
Diffstat (limited to 'source4/rpc_server/unixinfo')
-rw-r--r-- | source4/rpc_server/unixinfo/dcesrv_unixinfo.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/source4/rpc_server/unixinfo/dcesrv_unixinfo.c b/source4/rpc_server/unixinfo/dcesrv_unixinfo.c index 20c1a39c1c..0a1e9f645d 100644 --- a/source4/rpc_server/unixinfo/dcesrv_unixinfo.c +++ b/source4/rpc_server/unixinfo/dcesrv_unixinfo.c @@ -49,16 +49,16 @@ static NTSTATUS dcesrv_unixinfo_SidToUid(struct dcesrv_call_state *dce_call, struct wbc_context *wbc_ctx = talloc_get_type_abort( dce_call->context->private_data, struct wbc_context); - struct id_mapping *ids; + struct id_map *ids; struct composite_context *ctx; DEBUG(5, ("dcesrv_unixinfo_SidToUid called\n")); - ids = talloc(mem_ctx, struct id_mapping); + ids = talloc(mem_ctx, struct id_map); NT_STATUS_HAVE_NO_MEMORY(ids); ids->sid = &r->in.sid; - ids->status = NT_STATUS_NONE_MAPPED; + ids->status = ID_UNKNOWN; ids->unixid = NULL; ctx = wbc_sids_to_xids_send(wbc_ctx, ids, 1, ids); NT_STATUS_HAVE_NO_MEMORY(ctx); @@ -82,7 +82,7 @@ static NTSTATUS dcesrv_unixinfo_UidToSid(struct dcesrv_call_state *dce_call, struct wbc_context *wbc_ctx = talloc_get_type_abort( dce_call->context->private_data, struct wbc_context); - struct id_mapping *ids; + struct id_map *ids; struct composite_context *ctx; uint32_t uid; NTSTATUS status; @@ -95,11 +95,11 @@ static NTSTATUS dcesrv_unixinfo_UidToSid(struct dcesrv_call_state *dce_call, return NT_STATUS_INVALID_PARAMETER; } - ids = talloc(mem_ctx, struct id_mapping); + ids = talloc(mem_ctx, struct id_map); NT_STATUS_HAVE_NO_MEMORY(ids); ids->sid = NULL; - ids->status = NT_STATUS_NONE_MAPPED; + ids->status = ID_UNKNOWN; ids->unixid = talloc(ids, struct unixid); NT_STATUS_HAVE_NO_MEMORY(ids->unixid); @@ -124,16 +124,16 @@ static NTSTATUS dcesrv_unixinfo_SidToGid(struct dcesrv_call_state *dce_call, struct wbc_context *wbc_ctx = talloc_get_type_abort( dce_call->context->private_data, struct wbc_context); - struct id_mapping *ids; + struct id_map *ids; struct composite_context *ctx; DEBUG(5, ("dcesrv_unixinfo_SidToGid called\n")); - ids = talloc(mem_ctx, struct id_mapping); + ids = talloc(mem_ctx, struct id_map); NT_STATUS_HAVE_NO_MEMORY(ids); ids->sid = &r->in.sid; - ids->status = NT_STATUS_NONE_MAPPED; + ids->status = ID_UNKNOWN; ids->unixid = NULL; ctx = wbc_sids_to_xids_send(wbc_ctx, ids, 1, ids); NT_STATUS_HAVE_NO_MEMORY(ctx); @@ -157,7 +157,7 @@ static NTSTATUS dcesrv_unixinfo_GidToSid(struct dcesrv_call_state *dce_call, struct wbc_context *wbc_ctx = talloc_get_type_abort( dce_call->context->private_data, struct wbc_context); - struct id_mapping *ids; + struct id_map *ids; struct composite_context *ctx; uint32_t gid; NTSTATUS status; @@ -170,11 +170,11 @@ static NTSTATUS dcesrv_unixinfo_GidToSid(struct dcesrv_call_state *dce_call, return NT_STATUS_INVALID_PARAMETER; } - ids = talloc(mem_ctx, struct id_mapping); + ids = talloc(mem_ctx, struct id_map); NT_STATUS_HAVE_NO_MEMORY(ids); ids->sid = NULL; - ids->status = NT_STATUS_NONE_MAPPED; + ids->status = ID_UNKNOWN; ids->unixid = talloc(ids, struct unixid); NT_STATUS_HAVE_NO_MEMORY(ids->unixid); |