The Samba-Bugzilla – Attachment 5 Details for
Bug 59
Plaintext passwords don't work properly with w2k and unicode
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Check if unicode was negotiated and use respective passlen
samba3patch.diff (text/plain), 533 bytes, created by
Nir Soffer
on 2003-05-01 04:41:23 UTC
(
hide
)
Description:
Check if unicode was negotiated and use respective passlen
Filename:
MIME Type:
Creator:
Nir Soffer
Created:
2003-05-01 04:41:23 UTC
Size:
533 bytes
patch
obsolete
>--- old-samba/source/smbd/sesssetup.c Tue Apr 29 16:28:48 2003 >+++ samba/source/smbd/sesssetup.c Wed Apr 30 21:18:05 2003 >@@ -615,8 +615,11 @@ > nt_resp = data_blob(p+passlen1, passlen2); > } else { > pstring pass; >+ BOOL unic; >+ unic=SVAL(inbuf, smb_flg2) & FLAGS2_UNICODE_STRINGS; > srvstr_pull(inbuf, pass, smb_buf(inbuf), >- sizeof(pass), passlen1, STR_TERMINATE); >+ sizeof(pass), unic ? passlen2 : passlen1, >+ STR_TERMINATE); > plaintext_password = data_blob(pass, strlen(pass)+1); > } >
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
Actions:
View
Attachments on
bug 59
: 5