struct security_ace ace;
mode_t mode;
struct id_map *ids;
- struct composite_context *ctx;
*psd = security_descriptor_initialise(req);
if (*psd == NULL) {
ids[1].xid.type = ID_TYPE_GID;
ids[1].sid = NULL;
- ctx = wbc_xids_to_sids_send(pvfs->wbc_ctx, ids, 2, ids);
- NT_STATUS_HAVE_NO_MEMORY(ctx);
-
- status = wbc_xids_to_sids_recv(ctx, &ids);
+ status = wbc_xids_to_sids(pvfs->wbc_ctx->event_ctx, ids, 2);
NT_STATUS_NOT_OK_RETURN(status);
sd->owner_sid = talloc_steal(sd, ids[0].sid);
NTSTATUS status;
struct security_descriptor *parent_sd, *sd;
struct id_map *ids;
- struct composite_context *ctx;
TALLOC_CTX *tmp_ctx = talloc_new(mem_ctx);
*ret_sd = NULL;
ids[1].sid = NULL;
ids[1].status = ID_UNKNOWN;
- ctx = wbc_xids_to_sids_send(pvfs->wbc_ctx, ids, 2, ids);
- NT_STATUS_HAVE_NO_MEMORY_AND_FREE(ctx, tmp_ctx);
-
- status = wbc_xids_to_sids_recv(ctx, &ids);
+ status = wbc_xids_to_sids(pvfs->wbc_ctx->event_ctx, ids, 2);
NT_STATUS_NOT_OK_RETURN_AND_FREE(status, tmp_ctx);
sd->owner_sid = talloc_steal(sd, ids[0].sid);
struct security_descriptor *sd;
int i, num_ids;
struct id_map *ids;
- struct composite_context *ctx;
acl = talloc_zero(mem_ctx, struct nfs4acl);
NT_STATUS_HAVE_NO_MEMORY(acl);
/* Allocate memory for the sids from the security descriptor to be on
* the safe side. */
- ctx = wbc_xids_to_sids_send(pvfs->wbc_ctx, sd, num_ids, ids);
- NT_STATUS_HAVE_NO_MEMORY(ctx);
- status = wbc_xids_to_sids_recv(ctx, &ids);
+ status = wbc_xids_to_sids(pvfs->wbc_ctx->event_ctx, ids, num_ids);
NT_STATUS_NOT_OK_RETURN(status);
sd->owner_sid = talloc_steal(sd, ids[0].sid);
dce_call->context->private_data,
struct wbc_context);
struct id_map *ids;
- struct composite_context *ctx;
uint32_t uid;
NTSTATUS status;
ids->xid.id = uid;
ids->xid.type = ID_TYPE_UID;
- ctx = wbc_xids_to_sids_send(wbc_ctx, ids, 1, ids);
- NT_STATUS_HAVE_NO_MEMORY(ctx);
-
- status = wbc_xids_to_sids_recv(ctx, &ids);
+ status = wbc_xids_to_sids(wbc_ctx->event_ctx, ids, 1);
NT_STATUS_NOT_OK_RETURN(status);
r->out.sid = ids->sid;
dce_call->context->private_data,
struct wbc_context);
struct id_map *ids;
- struct composite_context *ctx;
uint32_t gid;
NTSTATUS status;
ids->xid.id = gid;
ids->xid.type = ID_TYPE_GID;
- ctx = wbc_xids_to_sids_send(wbc_ctx, ids, 1, ids);
- NT_STATUS_HAVE_NO_MEMORY(ctx);
-
- status = wbc_xids_to_sids_recv(ctx, &ids);
+ status = wbc_xids_to_sids(wbc_ctx->event_ctx, ids, 1);
NT_STATUS_NOT_OK_RETURN(status);
r->out.sid = ids->sid;