auth4: auth_session_info_fill_unix only needs a tevent_context
authorVolker Lendecke <vl@samba.org>
Sun, 2 Feb 2014 14:48:03 +0000 (15:48 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 5 Mar 2014 15:33:21 +0000 (16:33 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Change-Id: Id453d68f57bd1dd15aa5778b317d258a6132d3d6
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source4/auth/ntlm/auth.c
source4/auth/unix_token.c

index 263dc8031d020889a7e6abac91994d1167c8851d..a8c257f94aef1786fb1a864d85d9ec7317120259 100644 (file)
@@ -469,7 +469,8 @@ static NTSTATUS auth_generate_session_info_wrapper(struct auth4_context *auth_co
                        DEBUG(1, ("Cannot contact winbind to provide unix token\n"));
                        return NT_STATUS_INVALID_SERVER_STATE;
                }
-               status = auth_session_info_fill_unix(wbc_ctx, auth_context->lp_ctx,
+               status = auth_session_info_fill_unix(wbc_ctx->event_ctx,
+                                                    auth_context->lp_ctx,
                                                     original_user_name, *session_info);
                if (!NT_STATUS_IS_OK(status)) {
                        TALLOC_FREE(*session_info);
index 32f62a77a10f9cff03fe6cf09438743600c61a04..efc9a9db4a67ff7ee10d40ae64b86678f542793e 100644 (file)
@@ -121,14 +121,14 @@ NTSTATUS security_token_to_unix_token(TALLOC_CTX *mem_ctx,
 /*
   Fill in the auth_user_info_unix and auth_unix_token elements in a struct session_info
 */
-NTSTATUS auth_session_info_fill_unix(struct wbc_context *wbc_ctx,
+NTSTATUS auth_session_info_fill_unix(struct tevent_context *ev,
                                     struct loadparm_context *lp_ctx,
                                     const char *original_user_name,
                                     struct auth_session_info *session_info)
 {
        char *su;
        size_t len;
-       NTSTATUS status = security_token_to_unix_token(session_info, wbc_ctx->event_ctx,
+       NTSTATUS status = security_token_to_unix_token(session_info, ev,
                                                       session_info->security_token,
                                                       &session_info->unix_token);
        if (!NT_STATUS_IS_OK(status)) {