Adding Korean and Traditional Chinese codepage support.
authorJeremy Allison <jra@samba.org>
Wed, 4 Mar 1998 01:50:47 +0000 (01:50 +0000)
committerJeremy Allison <jra@samba.org>
Wed, 4 Mar 1998 01:50:47 +0000 (01:50 +0000)
Jeremy.

source/codepages/codepage_def.949 [new file with mode: 0644]
source/codepages/codepage_def.950 [new file with mode: 0644]
source/smbd/password.c
source/smbd/server.c

diff --git a/source/codepages/codepage_def.949 b/source/codepages/codepage_def.949
new file mode 100644 (file)
index 0000000..e350790
--- /dev/null
@@ -0,0 +1,24 @@
+#
+#   This program is free software; you can redistribute it and/or modify
+#   it under the terms of the GNU General Public License as published by
+#   the Free Software Foundation; either version 2 of the License, or
+#   (at your option) any later version.
+#   
+#   This program is distributed in the hope that it will be useful,
+#   but WITHOUT ANY WARRANTY; without even the implied warranty of
+#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#   GNU General Public License for more details.
+#   
+#   You should have received a copy of the GNU General Public License
+#   along with this program; if not, write to the Free Software
+#   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+#
+
+# Codepage definition file for IBM Code Page 949 - MS-DOS Korean Hangul
+# defines lower->upper mapping.
+# Written by Jeremy Allison <jallison@whistle.com>
+
+# The columns are :
+# lower    upper   map upper to lower    map lower to upper
+#
+# This file is intentionaly empty - no mappings are done.
diff --git a/source/codepages/codepage_def.950 b/source/codepages/codepage_def.950
new file mode 100644 (file)
index 0000000..8c6d56a
--- /dev/null
@@ -0,0 +1,24 @@
+#
+#   This program is free software; you can redistribute it and/or modify
+#   it under the terms of the GNU General Public License as published by
+#   the Free Software Foundation; either version 2 of the License, or
+#   (at your option) any later version.
+#   
+#   This program is distributed in the hope that it will be useful,
+#   but WITHOUT ANY WARRANTY; without even the implied warranty of
+#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#   GNU General Public License for more details.
+#   
+#   You should have received a copy of the GNU General Public License
+#   along with this program; if not, write to the Free Software
+#   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+#
+
+# Codepage definition file for IBM Code Page 950 - MS-DOS Traditional Chinese
+# defines lower->upper mapping.
+# Written by Jeremy Allison <jallison@whistle.com>
+
+# The columns are :
+# lower    upper   map upper to lower    map lower to upper
+#
+# This file is intentionaly empty - no mappings are done.
index 19115154045e96dcbd3513156ed6eb19e59ac741..a51e5f639fc6f49f7d071d03f8f6ea2165289f89 100644 (file)
@@ -515,7 +515,7 @@ static BOOL dfs_auth(char *this_user,char *password)
    */
 
   /* Fix for original (broken) code from Brett Wooldridge <brettw@austin.ibm.com> */
-  if (dce_login_atmost_once)
+  if (dcelogin_atmost_once)
     return (False);
   /* This can be ifdefed as the DCE check below is stricter... */
 #ifndef NO_CRYPT
index 9c25a21000f65e66239a9d68dd36e3f31ddd9935..e6807bdf31d71467589cbff775f0cdbbb0d8ff94 100644 (file)
@@ -54,6 +54,10 @@ extern int smb_read_error;
 
 extern pstring user_socket_options;
 
+#ifdef DFS_AUTH
+extern int dcelogin_atmost_once;
+#endif /* DFS_AUTH */
+
 connection_struct Connections[MAX_CONNECTIONS];
 files_struct Files[MAX_OPEN_FILES];