diff options
author | Volker Lendecke <vl@samba.org> | 2014-01-30 20:12:07 +0000 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2014-02-10 10:57:04 +0100 |
commit | de7122ddc356697777cce95d22b3fab7697b30db (patch) | |
tree | 5dda9e2b4b0c4ef1b233dde565a43e12afa57bb4 /source4/auth | |
parent | fefc59619b58cb0c38bf7e6ac2ebcc25a5ebbd6c (diff) | |
download | samba-de7122ddc356697777cce95d22b3fab7697b30db.tar.gz samba-de7122ddc356697777cce95d22b3fab7697b30db.tar.xz samba-de7122ddc356697777cce95d22b3fab7697b30db.zip |
source4: Use wbc_sids_to_xids
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Kai Blin <kai@samba.org>
Diffstat (limited to 'source4/auth')
-rw-r--r-- | source4/auth/unix_token.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/source4/auth/unix_token.c b/source4/auth/unix_token.c index 38109452a4b..aee950d9166 100644 --- a/source4/auth/unix_token.c +++ b/source4/auth/unix_token.c @@ -36,7 +36,6 @@ 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) { @@ -56,10 +55,7 @@ NTSTATUS security_token_to_unix_token(TALLOC_CTX *mem_ctx, ids[s].status = ID_UNKNOWN; } - 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); + status = wbc_sids_to_xids(wbc_ctx->event_ctx, ids, token->num_sids); NT_STATUS_NOT_OK_RETURN(status); g = token->num_sids; |