summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-07-25 23:43:22 +0000
committerJeremy Allison <jra@samba.org>2003-07-25 23:43:22 +0000
commit559439e1f4d3ba3444213cbf64a1ede5f9d51906 (patch)
treea13358e81687c88fbf71541e76eb7bcd3116b070 /source3/smbd
parent4632786cfb193dd80ce04206912297186e871814 (diff)
downloadsamba-559439e1f4d3ba3444213cbf64a1ede5f9d51906.tar.gz
samba-559439e1f4d3ba3444213cbf64a1ede5f9d51906.tar.bz2
samba-559439e1f4d3ba3444213cbf64a1ede5f9d51906.zip
Start the packet signing engine in the kerberos case in the same place
as the ntlmssp case. Jeremy. (This used to be commit 79e0bf829875fc985f1940dc31ee418aad910ed6)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/sesssetup.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/source3/smbd/sesssetup.c b/source3/smbd/sesssetup.c
index bc3ac6ac64..ccd7214251 100644
--- a/source3/smbd/sesssetup.c
+++ b/source3/smbd/sesssetup.c
@@ -252,8 +252,14 @@ static int reply_spnego_kerberos(connection_struct *conn,
SSVAL(outbuf, smb_uid, sess_vuid);
- if (!server_info->guest && !srv_check_sign_mac(inbuf)) {
- exit_server("reply_spnego_kerberos: bad smb signature");
+ if (!server_info->guest) {
+ /* 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);
}
}
@@ -327,7 +333,6 @@ static BOOL reply_spnego_ntlmssp(connection_struct *conn, char *inbuf, char *out
*/
srv_check_sign_mac(inbuf);
}
-
}
}