diff options
author | Volker Lendecke <vl@samba.org> | 2014-02-02 15:50:08 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2014-03-05 16:33:21 +0100 |
commit | aa048f6e16ef380622d453cb3286a1f6da73734a (patch) | |
tree | 0f76c9e87793efb9135e1bc3fcf94f32eb063c04 | |
parent | b2c1394e049852e0e879964dde9b011f66ed22b6 (diff) | |
download | samba-aa048f6e16ef380622d453cb3286a1f6da73734a.tar.gz samba-aa048f6e16ef380622d453cb3286a1f6da73734a.tar.xz samba-aa048f6e16ef380622d453cb3286a1f6da73734a.zip |
auth4: Do not generate just a temporary wbc_context
Signed-off-by: Volker Lendecke <vl@samba.org>
Change-Id: I16e116d7f1fdaf165e1239c10723c51f3828126d
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
-rw-r--r-- | source4/auth/ntlm/auth.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/source4/auth/ntlm/auth.c b/source4/auth/ntlm/auth.c index a8c257f94a..ccfd20ad05 100644 --- a/source4/auth/ntlm/auth.c +++ b/source4/auth/ntlm/auth.c @@ -461,21 +461,12 @@ static NTSTATUS auth_generate_session_info_wrapper(struct auth4_context *auth_co if ((session_info_flags & AUTH_SESSION_INFO_UNIX_TOKEN) && NT_STATUS_IS_OK(status)) { - struct wbc_context *wbc_ctx = wbc_init(auth_context, - auth_context->msg_ctx, - auth_context->event_ctx); - if (!wbc_ctx) { - TALLOC_FREE(*session_info); - DEBUG(1, ("Cannot contact winbind to provide unix token\n")); - return NT_STATUS_INVALID_SERVER_STATE; - } - status = auth_session_info_fill_unix(wbc_ctx->event_ctx, + status = auth_session_info_fill_unix(auth_context->event_ctx, auth_context->lp_ctx, original_user_name, *session_info); if (!NT_STATUS_IS_OK(status)) { TALLOC_FREE(*session_info); } - TALLOC_FREE(wbc_ctx); } return status; } |