The Samba-Bugzilla – Attachment 4620 Details for
Bug 6680
Authentication failure from Windows 7 when domain joined.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
revised version of that patch
bug6680.patch (text/plain), 2.29 KB, created by
Guenther Deschner
on 2009-09-01 05:32:30 UTC
(
hide
)
Description:
revised version of that patch
Filename:
MIME Type:
Creator:
Guenther Deschner
Created:
2009-09-01 05:32:30 UTC
Size:
2.29 KB
patch
obsolete
>From 3a054b9b8555acf13c0a56b83de17eebd1ae58b0 Mon Sep 17 00:00:00 2001 >From: =?utf-8?q?G=C3=BCnther=20Deschner?= <gd@samba.org> >Date: Tue, 1 Sep 2009 11:58:05 +0200 >Subject: [PATCH] wbclient: Fix Bug #6680: always activate handling of large (> 256 byte) ntlmv2 > blobs in wbcAuthenticateUserEx(). > >Guenther >--- > nsswitch/libwbclient/wbc_pam.c | 28 ++++++++++++++++++++++------ > 1 files changed, 22 insertions(+), 6 deletions(-) > >diff --git a/nsswitch/libwbclient/wbc_pam.c b/nsswitch/libwbclient/wbc_pam.c >index d3bf616..e626e2c 100644 >--- a/nsswitch/libwbclient/wbc_pam.c >+++ b/nsswitch/libwbclient/wbc_pam.c >@@ -426,18 +426,32 @@ wbcErr wbcAuthenticateUserEx(const struct wbcAuthUserParams *params, > request.data.auth_crap.lm_resp_len = > MIN(params->password.response.lm_length, > sizeof(request.data.auth_crap.lm_resp)); >- request.data.auth_crap.nt_resp_len = >- MIN(params->password.response.nt_length, >- sizeof(request.data.auth_crap.nt_resp)); > if (params->password.response.lm_data) { > memcpy(request.data.auth_crap.lm_resp, > params->password.response.lm_data, > request.data.auth_crap.lm_resp_len); > } >- if (params->password.response.nt_data) { >- memcpy(request.data.auth_crap.nt_resp, >+ >+ if (params->password.response.nt_length > sizeof(request.data.auth_crap.nt_resp)) { >+ request.flags |= WBFLAG_BIG_NTLMV2_BLOB; >+ request.extra_len = params->password.response.nt_length; >+ request.extra_data.data = talloc_zero_array(NULL, char, request.extra_len); >+ if (request.extra_data.data == NULL) { >+ wbc_status = WBC_ERR_NO_MEMORY; >+ BAIL_ON_WBC_ERROR(wbc_status); >+ } >+ memcpy(request.extra_data.data, > params->password.response.nt_data, >- request.data.auth_crap.nt_resp_len); >+ request.extra_len); >+ } else { >+ request.data.auth_crap.nt_resp_len = >+ MIN(params->password.response.nt_length, >+ sizeof(request.data.auth_crap.nt_resp)); >+ if (params->password.response.nt_data) { >+ memcpy(request.data.auth_crap.nt_resp, >+ params->password.response.nt_data, >+ request.data.auth_crap.nt_resp_len); >+ } > } > break; > default: >@@ -480,6 +494,8 @@ done: > if (response.extra_data.data) > free(response.extra_data.data); > >+ talloc_free(request.extra_data.data); >+ > return wbc_status; > } > >-- >1.6.2.5 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
kai
:
review+
Actions:
View
Attachments on
bug 6680
:
4617
|
4619
|
4620
|
4621