The Samba-Bugzilla – Attachment 1749 Details for
Bug 3512
"use spnego=no" and "server signing=auto" cause client to disconnect after negprot
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for 3.0.21c.
look (text/plain), 2.30 KB, created by
Jeremy Allison
on 2006-02-21 17:19:41 UTC
(
hide
)
Description:
Patch for 3.0.21c.
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2006-02-21 17:19:41 UTC
Size:
2.30 KB
patch
obsolete
>Index: smbd/sesssetup.c >=================================================================== >--- smbd/sesssetup.c (revision 13602) >+++ smbd/sesssetup.c (working copy) >@@ -70,6 +70,23 @@ > } > > /**************************************************************************** >+ Start the signing engine if needed. Don't fail signing here. >+****************************************************************************/ >+ >+static void sessionsetup_start_signing_engine(const auth_serversupplied_info *server_info, char *inbuf) >+{ >+ if (!server_info->guest && !srv_signing_started()) { >+ /* We need to start the signing engine >+ * here but a W2K client sends the old >+ * "BSRSPYL " signature instead of the >+ * correct one. Subsequent packets will >+ * be correct. >+ */ >+ srv_check_sign_mac(inbuf, False); >+ } >+} >+ >+/**************************************************************************** > Send a security blob via a session setup reply. > ****************************************************************************/ > >@@ -355,15 +372,7 @@ > > SSVAL(outbuf, smb_uid, sess_vuid); > >- if (!server_info->guest && !srv_signing_started()) { >- /* We need to start the signing engine >- * here but a W2K client sends the old >- * "BSRSPYL " signature instead of the >- * correct one. Subsequent packets will >- * be correct. >- */ >- srv_check_sign_mac(inbuf, False); >- } >+ sessionsetup_start_signing_engine(server_info, inbuf); > } > > /* wrap that up in a nice GSS-API wrapping */ >@@ -436,16 +445,7 @@ > > SSVAL(outbuf,smb_uid,sess_vuid); > >- if (!server_info->guest && !srv_signing_started()) { >- /* We need to start the signing engine >- * here but a W2K client sends the old >- * "BSRSPYL " signature instead of the >- * correct one. Subsequent packets will >- * be correct. >- */ >- >- srv_check_sign_mac(inbuf, False); >- } >+ sessionsetup_start_signing_engine(server_info, inbuf); > } > } > >@@ -1107,9 +1107,7 @@ > /* current_user_info is changed on new vuid */ > reload_services( True ); > >- if (!server_info->guest && !srv_signing_started() && !srv_check_sign_mac(inbuf, True)) { >- exit_server("reply_sesssetup_and_X: bad smb signature"); >- } >+ sessionsetup_start_signing_engine(server_info, inbuf); > > SSVAL(outbuf,smb_uid,sess_vuid); > SSVAL(inbuf,smb_uid,sess_vuid);
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 3512
:
1726
| 1749