adding some initiaial code to sert %a to Win2K3 (using Native LanMan string from...
authorGerald Carter <jerry@samba.org>
Wed, 12 Mar 2003 15:40:43 +0000 (15:40 +0000)
committerGerald Carter <jerry@samba.org>
Wed, 12 Mar 2003 15:40:43 +0000 (15:40 +0000)
source/include/smb.h
source/lib/util.c
source/smbd/sesssetup.c

index bd4f1130393d583e8f49fd8c5972467ea611da49..bf2d5631a739ec5bf575b43feee7270382cab947 100644 (file)
@@ -1408,7 +1408,7 @@ enum ldap_ssl_types {LDAP_SSL_ON, LDAP_SSL_OFF, LDAP_SSL_START_TLS};
 enum ldap_passwd_sync_types {LDAP_PASSWD_SYNC_ON, LDAP_PASSWD_SYNC_OFF, LDAP_PASSWD_SYNC_ONLY};
 
 /* Remote architectures we know about. */
-enum remote_arch_types {RA_UNKNOWN, RA_WFWG, RA_OS2, RA_WIN95, RA_WINNT, RA_WIN2K, RA_WINXP, RA_SAMBA};
+enum remote_arch_types {RA_UNKNOWN, RA_WFWG, RA_OS2, RA_WIN95, RA_WINNT, RA_WIN2K, RA_WINXP, RA_WIN2K3, RA_SAMBA};
 
 /* case handling */
 enum case_handling {CASE_LOWER,CASE_UPPER};
index 15b75356a8cb281ae29e1c751b0ce34b41e8cc10..8d62db5ebbf0aad3e05bd508b9a9142778f77823 100644 (file)
@@ -1767,6 +1767,9 @@ void set_remote_arch(enum remote_arch_types type)
        case RA_WINXP:
                fstrcpy(remote_arch, "WinXP");
                return;
+       case RA_WIN2K3:
+               fstrcpy(remote_arch, "Win2K3");
+               return;
        case RA_SAMBA:
                fstrcpy(remote_arch,"Samba");
                return;
index 2661fe3f93458adcf274cd9373818908e4e8c013..70158a9015fcf63d462fe7119b0502177985f4c7 100644 (file)
@@ -617,6 +617,8 @@ int reply_sesssetup_and_X(connection_struct *conn, char *inbuf,char *outbuf,
                if ( ra_type == RA_WIN2K ) {
                        if ( 0 == strcmp( native_lanman, "Windows 2002 5.1" ) )
                                set_remote_arch( RA_WINXP );
+                       else if ( 0 == strcmp( native_lanman, "Windows .NET 5.2" ) )
+                               set_remote_arch( RA_WIN2K3 );
                }