summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-03-04 01:50:47 +0000
committerJeremy Allison <jra@samba.org>1998-03-04 01:50:47 +0000
commit3fb9f9db569e0fe02777e1e7805f20e668309cfe (patch)
tree41dc29135d5ce7040deb5efe62a4661342fdf6b4
parentb7fb6c6b38784d25c9c85e9b27b08e30111dbd0c (diff)
downloadsamba-3fb9f9db569e0fe02777e1e7805f20e668309cfe.tar.gz
samba-3fb9f9db569e0fe02777e1e7805f20e668309cfe.tar.bz2
samba-3fb9f9db569e0fe02777e1e7805f20e668309cfe.zip
Adding Korean and Traditional Chinese codepage support.
Jeremy. (This used to be commit 2df47cf1bb3428fbaa8dcf45ec114ec3aaafae57)
-rw-r--r--source3/codepages/codepage_def.94924
-rw-r--r--source3/codepages/codepage_def.95024
-rw-r--r--source3/smbd/password.c2
-rw-r--r--source3/smbd/server.c4
4 files changed, 53 insertions, 1 deletions
diff --git a/source3/codepages/codepage_def.949 b/source3/codepages/codepage_def.949
new file mode 100644
index 0000000000..e3507904b5
--- /dev/null
+++ b/source3/codepages/codepage_def.949
@@ -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/source3/codepages/codepage_def.950 b/source3/codepages/codepage_def.950
new file mode 100644
index 0000000000..8c6d56a536
--- /dev/null
+++ b/source3/codepages/codepage_def.950
@@ -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.
diff --git a/source3/smbd/password.c b/source3/smbd/password.c
index 1911515404..a51e5f639f 100644
--- a/source3/smbd/password.c
+++ b/source3/smbd/password.c
@@ -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
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index 9c25a21000..e6807bdf31 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -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];