r22095: BUG 4484: Add more checks to set %a for Vista clients (based on absence of...
authorGerald Carter <jerry@samba.org>
Thu, 5 Apr 2007 19:56:08 +0000 (19:56 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:19:11 +0000 (12:19 -0500)
(This used to be commit e5c9fc937d40046030c0d3bcfced505410a14caf)

source3/smbd/sesssetup.c

index 91f4a9e12f5f7df6223f8f4c40daf56a0e611aa0..7b5528222ea0ec6fe0b57e1ef3890f7a8aa2d2ef 100644 (file)
@@ -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 */