diff options
author | Volker Lendecke <vl@samba.org> | 2014-02-18 09:50:37 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2014-02-18 10:29:24 +0100 |
commit | c4efff10137df69c3cece82405c13c86607dc029 (patch) | |
tree | 1630f35141a6cfd8b14bb327349b140d60b1db83 /source4/auth | |
parent | 9017764a71c156c71a9593a43eaf7ebffdbd7fe4 (diff) | |
download | samba-c4efff10137df69c3cece82405c13c86607dc029.tar.gz samba-c4efff10137df69c3cece82405c13c86607dc029.tar.xz samba-c4efff10137df69c3cece82405c13c86607dc029.zip |
Revert "source4: Use wbc_sids_to_xids"
This reverts commit de7122ddc356697777cce95d22b3fab7697b30db.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source4/auth')
-rw-r--r-- | source4/auth/unix_token.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/auth/unix_token.c b/source4/auth/unix_token.c index aee950d916..38109452a4 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; |