summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2007-04-05 19:56:08 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:19:11 -0500
commit90dc2613153bb8c865a1cfda0318ae4db3cf212e (patch)
tree9df54da8e631d2841894f88c4ff0ec21ac7c1b1b /source3
parent74cfa0fdce0e07838c714a5ac6aab2c09c6eff13 (diff)
downloadsamba-90dc2613153bb8c865a1cfda0318ae4db3cf212e.tar.gz
samba-90dc2613153bb8c865a1cfda0318ae4db3cf212e.tar.bz2
samba-90dc2613153bb8c865a1cfda0318ae4db3cf212e.zip
r22095: BUG 4484: Add more checks to set %a for Vista clients (based on absence of native OS and Lanman strings in the session setup request)
(This used to be commit e5c9fc937d40046030c0d3bcfced505410a14caf)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/sesssetup.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/smbd/sesssetup.c b/source3/smbd/sesssetup.c
index 91f4a9e12f..7b5528222e 100644
--- a/source3/smbd/sesssetup.c
+++ b/source3/smbd/sesssetup.c
@@ -1060,6 +1060,11 @@ static int reply_sesssetup_and_X_spnego(connection_struct *conn, char *inbuf,
native_os, native_lanman, primary_domain));
if ( ra_type == RA_WIN2K ) {
+ /* Vista sets neither the OS or lanman strings */
+
+ if ( !strlen(native_os) && !strlen(native_lanman) )
+ set_remote_arch(RA_VISTA);
+
/* Windows 2003 doesn't set the native lanman string,
but does set primary domain which is a bug I think */