summaryrefslogtreecommitdiffstats
path: root/source4/auth
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2014-02-02 15:45:47 +0100
committerAndreas Schneider <asn@cryptomilk.org>2014-03-05 16:33:21 +0100
commit6edf7a3746de4367f62796c967891b425a09de52 (patch)
tree60fd3e9fed493e04d25ac9661ad59a7347420976 /source4/auth
parentdcf29a88bad40b4d22a71838d301e8a51a04d9e4 (diff)
downloadsamba-6edf7a3746de4367f62796c967891b425a09de52.tar.gz
samba-6edf7a3746de4367f62796c967891b425a09de52.tar.xz
samba-6edf7a3746de4367f62796c967891b425a09de52.zip
auth4: security_token_to_unix_token only needs a tevent_context
Signed-off-by: Volker Lendecke <vl@samba.org> Change-Id: I27e5b38fcd3ac899c55c0632ea5d92fad686d9b1 Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source4/auth')
-rw-r--r--source4/auth/unix_token.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/auth/unix_token.c b/source4/auth/unix_token.c
index aee950d9166..32f62a77a10 100644
--- a/source4/auth/unix_token.c
+++ b/source4/auth/unix_token.c
@@ -29,7 +29,7 @@
form a security_unix_token from the current security_token
*/
NTSTATUS security_token_to_unix_token(TALLOC_CTX *mem_ctx,
- struct wbc_context *wbc_ctx,
+ struct tevent_context *ev,
struct security_token *token,
struct security_unix_token **sec)
{
@@ -55,7 +55,7 @@ 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);
+ status = wbc_sids_to_xids(ev, ids, token->num_sids);
NT_STATUS_NOT_OK_RETURN(status);
g = token->num_sids;
@@ -128,7 +128,7 @@ NTSTATUS auth_session_info_fill_unix(struct wbc_context *wbc_ctx,
{
char *su;
size_t len;
- NTSTATUS status = security_token_to_unix_token(session_info, wbc_ctx,
+ NTSTATUS status = security_token_to_unix_token(session_info, wbc_ctx->event_ctx,
session_info->security_token,
&session_info->unix_token);
if (!NT_STATUS_IS_OK(status)) {