From c4efff10137df69c3cece82405c13c86607dc029 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 18 Feb 2014 09:50:37 +0100 Subject: Revert "source4: Use wbc_sids_to_xids" This reverts commit de7122ddc356697777cce95d22b3fab7697b30db. Signed-off-by: Volker Lendecke Reviewed-by: Andreas Schneider --- source4/auth/unix_token.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source4/auth') diff --git a/source4/auth/unix_token.c b/source4/auth/unix_token.c index aee950d9166..38109452a4b 100644 --- a/source4/auth/unix_token.c +++ b/source4/auth/unix_token.c @@ -36,6 +36,7 @@ NTSTATUS security_token_to_unix_token(TALLOC_CTX *mem_ctx, uint32_t s, g; NTSTATUS status; struct id_map *ids; + struct composite_context *ctx; /* we can't do unix security without a user and group */ if (token->num_sids < 2) { @@ -55,7 +56,10 @@ NTSTATUS security_token_to_unix_token(TALLOC_CTX *mem_ctx, ids[s].status = ID_UNKNOWN; } - status = wbc_sids_to_xids(wbc_ctx->event_ctx, ids, token->num_sids); + ctx = wbc_sids_to_xids_send(wbc_ctx, ids, token->num_sids, ids); + NT_STATUS_HAVE_NO_MEMORY(ctx); + + status = wbc_sids_to_xids_recv(ctx, &ids); NT_STATUS_NOT_OK_RETURN(status); g = token->num_sids; -- cgit