summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-02-27 21:21:02 +0000
committerGerald Carter <jerry@samba.org>2003-02-27 21:21:02 +0000
commit97e7d2ffae74c9c07b38143c8fb028ee91b153bd (patch)
treef2d04d7786542956284d21dc67bee5d78c1911b8 /source3/smbd
parent5c82d3f00a2973b7f0881606d94ed36f0d0aa6be (diff)
downloadsamba-97e7d2ffae74c9c07b38143c8fb028ee91b153bd.tar.gz
samba-97e7d2ffae74c9c07b38143c8fb028ee91b153bd.tar.bz2
samba-97e7d2ffae74c9c07b38143c8fb028ee91b153bd.zip
additional fix for CR 601
* distinguish WinXP from Win2k * add a 1/3 of a second delay in OpenPrinter in order to trigger a LAN/WAN optimization in 2k clients. (This used to be commit 96570699d1b715f47c35aa211da6ec18f6fc4109)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/sesssetup.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/source3/smbd/sesssetup.c b/source3/smbd/sesssetup.c
index 7e5ec56a27..dfe246e398 100644
--- a/source3/smbd/sesssetup.c
+++ b/source3/smbd/sesssetup.c
@@ -557,7 +557,7 @@ int reply_sesssetup_and_X(connection_struct *conn, char *inbuf,char *outbuf,
set_remote_arch( RA_WIN95);
}
}
-
+
if (!doencrypt) {
/* both Win95 and WinNT stuff up the password lengths for
non-encrypting systems. Uggh.
@@ -607,6 +607,21 @@ int reply_sesssetup_and_X(connection_struct *conn, char *inbuf,char *outbuf,
p += srvstr_pull_buf(inbuf, native_lanman, p, sizeof(native_lanman), STR_TERMINATE);
DEBUG(3,("Domain=[%s] NativeOS=[%s] NativeLanMan=[%s]\n",
domain,native_os,native_lanman));
+
+ /*
+ * we distinguish between 2K and XP by the "Native Lan Manager" string
+ * WinXP => "Windows 2002 5.1"
+ * Win2k => "Windows 2000 5.0"
+ * NT4 => "Windows NT 4.0"
+ * Win9x => "Windows 4.0"
+ */
+
+ if ( ra_type == RA_WIN2K ) {
+ if ( 0 == strcmp( native_lanman, "Windows 2002 5.1" ) )
+ set_remote_arch( RA_WINXP );
+ }
+
+
}
DEBUG(3,("sesssetupX:name=[%s]\\[%s]@[%s]\n", domain, user, get_remote_machine_name()));