The Samba-Bugzilla – Attachment 1508 Details for
Bug 1828
Pocket PC 2003 (iPAQ) cannot connect if SPNEGO is enabled.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
look (text/plain), 1.42 KB, created by
Jeremy Allison
on 2005-10-13 12:45:04 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2005-10-13 12:45:04 UTC
Size:
1.42 KB
patch
obsolete
>Index: smbd/negprot.c >=================================================================== >--- smbd/negprot.c (revision 10968) >+++ smbd/negprot.c (working copy) >@@ -167,7 +167,7 @@ > Generate the spnego negprot reply blob. Return the number of bytes used. > ****************************************************************************/ > >-static int negprot_spnego(char *p) >+static int negprot_spnego(char *p, uint8 *pkeylen) > { > DATA_BLOB blob; > nstring dos_name; >@@ -212,6 +212,7 @@ > > if (lp_security() != SEC_ADS && !lp_use_kerberos_keytab()) { > memcpy(p, guid, 16); >+ *pkeylen = 0; > return 16; > } else { > fstring myname; >@@ -224,6 +225,11 @@ > } > memcpy(p, blob.data, blob.length); > len = blob.length; >+ if (len > 256) { >+ DEBUG(0,("negprot_spnego: blob length too long (%d)\n", len)); >+ len = 255; >+ } >+ *pkeylen = len; > data_blob_free(&blob); > return len; > } >@@ -324,16 +330,17 @@ > /* note that we do not send a challenge at all if > we are using plaintext */ > get_challenge(p); >- SSVALS(outbuf,smb_vwv16+1,8); >+ SCVAL(outbuf,smb_vwv16+1,8); > p += 8; > } > p += srvstr_push(outbuf, p, lp_workgroup(), -1, > STR_UNICODE|STR_TERMINATE|STR_NOALIGN); > DEBUG(3,("not using SPNEGO\n")); > } else { >- int len = negprot_spnego(p); >+ uint8 keylen; >+ int len = negprot_spnego(p, &keylen); > >- SSVALS(outbuf,smb_vwv16+1,len); >+ SCVAL(outbuf,smb_vwv16+1,keylen); > p += len; > DEBUG(3,("using SPNEGO\n")); > }
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 1828
:
1010
|
1011
|
1012
|
1385
|
1503
| 1508 |
1509
|
1511
|
1512
|
1513
|
1514