From 90dc2613153bb8c865a1cfda0318ae4db3cf212e Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Thu, 5 Apr 2007 19:56:08 +0000 Subject: [PATCH] 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) --- source3/smbd/sesssetup.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source3/smbd/sesssetup.c b/source3/smbd/sesssetup.c index 91f4a9e12f5..7b5528222ea 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 */ -- 2.11.4.GIT