diff options
author | Gerald Carter <jerry@samba.org> | 2007-04-05 19:56:08 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:19:11 -0500 |
commit | e5c9fc937d40046030c0d3bcfced505410a14caf (patch) | |
tree | 2e4c35e32deab75f1e3e1b65d630e67be09c134f /source/smbd/sesssetup.c | |
parent | 395fd99edba8a75eab5d13c9fac5616bcd6ecf2c (diff) | |
download | samba-e5c9fc937d40046030c0d3bcfced505410a14caf.tar.gz samba-e5c9fc937d40046030c0d3bcfced505410a14caf.tar.xz samba-e5c9fc937d40046030c0d3bcfced505410a14caf.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)
Diffstat (limited to 'source/smbd/sesssetup.c')
-rw-r--r-- | source/smbd/sesssetup.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/smbd/sesssetup.c b/source/smbd/sesssetup.c index 91f4a9e12f5..7b5528222ea 100644 --- a/source/smbd/sesssetup.c +++ b/source/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 */ |