summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-03-12 15:40:43 +0000
committerGerald Carter <jerry@samba.org>2003-03-12 15:40:43 +0000
commitc992f66d733d230bc71f61ab4d13c08354ec0685 (patch)
tree8e8d8237267674628112d58d2e2b7e753c655102 /source3
parentf4a8417d6fa058ec33753a4df1222131a73add3e (diff)
downloadsamba-c992f66d733d230bc71f61ab4d13c08354ec0685.tar.gz
samba-c992f66d733d230bc71f61ab4d13c08354ec0685.tar.bz2
samba-c992f66d733d230bc71f61ab4d13c08354ec0685.zip
adding some initiaial code to sert %a to Win2K3 (using Native LanMan string from .NET RC2)
(This used to be commit 4c823e61d14a33344deb887043b60b2e3c83416f)
Diffstat (limited to 'source3')
-rw-r--r--source3/include/smb.h2
-rw-r--r--source3/lib/util.c3
-rw-r--r--source3/smbd/sesssetup.c2
3 files changed, 6 insertions, 1 deletions
diff --git a/source3/include/smb.h b/source3/include/smb.h
index bd4f113039..bf2d5631a7 100644
--- a/source3/include/smb.h
+++ b/source3/include/smb.h
@@ -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};
diff --git a/source3/lib/util.c b/source3/lib/util.c
index 15b75356a8..8d62db5ebb 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -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;
diff --git a/source3/smbd/sesssetup.c b/source3/smbd/sesssetup.c
index 2661fe3f93..70158a9015 100644
--- a/source3/smbd/sesssetup.c
+++ b/source3/smbd/sesssetup.c
@@ -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 );
}