summaryrefslogtreecommitdiffstats
path: root/source3/nsswitch
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-07-04 07:15:53 +0000
committerAndrew Tridgell <tridge@samba.org>2001-07-04 07:15:53 +0000
commit87fbb7092b8f8b2f0db0f361c3d625e19de57cd9 (patch)
tree3c302f710cbaa03e3c0d46549e8982771b12b8a5 /source3/nsswitch
parent9e9e73303ec10a64bd744b9b33f4e6cd7d394f03 (diff)
downloadsamba-87fbb7092b8f8b2f0db0f361c3d625e19de57cd9.tar.gz
samba-87fbb7092b8f8b2f0db0f361c3d625e19de57cd9.tar.xz
samba-87fbb7092b8f8b2f0db0f361c3d625e19de57cd9.zip
The big character set handling changeover!
This commit gets rid of all our old codepage handling and replaces it with iconv. All internal strings in Samba are now in "unix" charset, which may be multi-byte. See internals.doc and my posting to samba-technical for a more complete explanation. (This used to be commit debb471267960e56005a741817ebd227ecfc512a)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/wbinfo.c2
-rw-r--r--source3/nsswitch/winbindd.c3
-rw-r--r--source3/nsswitch/winbindd_misc.c8
-rw-r--r--source3/nsswitch/wins.c1
4 files changed, 2 insertions, 12 deletions
diff --git a/source3/nsswitch/wbinfo.c b/source3/nsswitch/wbinfo.c
index 237995af7f5..9d3568417f4 100644
--- a/source3/nsswitch/wbinfo.c
+++ b/source3/nsswitch/wbinfo.c
@@ -356,14 +356,12 @@ int main(int argc, char **argv)
}
TimeInit();
- charset_initialise();
if (!lp_load(CONFIGFILE, True, False, False)) {
DEBUG(0, ("error opening config file\n"));
exit(1);
}
- codepage_initialise(lp_client_code_page());
load_interfaces();
/* Parse command line options */
diff --git a/source3/nsswitch/winbindd.c b/source3/nsswitch/winbindd.c
index 305c18a8c04..4177d0219a5 100644
--- a/source3/nsswitch/winbindd.c
+++ b/source3/nsswitch/winbindd.c
@@ -700,7 +700,6 @@ int main(int argc, char **argv)
}
TimeInit();
- charset_initialise();
if (!reload_services_file(False)) {
DEBUG(0, ("error opening config file\n"));
@@ -711,8 +710,6 @@ int main(int argc, char **argv)
DEBUGLEVEL = new_debuglevel;
}
- codepage_initialise(lp_client_code_page());
-
if (!interactive) {
become_daemon();
}
diff --git a/source3/nsswitch/winbindd_misc.c b/source3/nsswitch/winbindd_misc.c
index 182f983efbd..163837d1c3a 100644
--- a/source3/nsswitch/winbindd_misc.c
+++ b/source3/nsswitch/winbindd_misc.c
@@ -45,16 +45,12 @@ static char *trust_keystr(char *domain)
Routine to get the trust account password for a domain
************************************************************************/
BOOL _get_trust_account_password(char *domain, unsigned char *ret_pwd,
- time_t *pass_last_set_time)
+ time_t *pass_last_set_time)
{
struct machine_acct_pass *pass;
- fstring dos_domain;
size_t size;
- fstrcpy(dos_domain, domain);
- unix_to_dos(dos_domain, True);
-
- if (!(pass = secrets_fetch(trust_keystr(dos_domain), &size)) ||
+ if (!(pass = secrets_fetch(trust_keystr(domain), &size)) ||
size != sizeof(*pass)) return False;
if (pass_last_set_time) *pass_last_set_time = pass->mod_time;
diff --git a/source3/nsswitch/wins.c b/source3/nsswitch/wins.c
index ac6d13a64f6..bfd1835b4e5 100644
--- a/source3/nsswitch/wins.c
+++ b/source3/nsswitch/wins.c
@@ -77,7 +77,6 @@ struct in_addr *lookup_backend(const char *name, int *count)
DEBUGLEVEL = 0;
TimeInit();
setup_logging("nss_wins",True);
- charset_initialise();
lp_load(CONFIGFILE,True,False,False);
load_interfaces();
}