summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2008-10-31 15:48:47 +1100
committerAndrew Tridgell <tridge@samba.org>2008-10-31 15:48:47 +1100
commite311becaad4945c31bc7e3bec5e4be6073c94e82 (patch)
tree93344582bceb6a7e1e820bcd64f74de520ad88e3 /source4
parent55d55d9d9b881b2ec09fa76515cdd1cf6f0e2442 (diff)
downloadsamba-e311becaad4945c31bc7e3bec5e4be6073c94e82.tar.gz
samba-e311becaad4945c31bc7e3bec5e4be6073c94e82.tar.bz2
samba-e311becaad4945c31bc7e3bec5e4be6073c94e82.zip
use the new CH_UTF16_MUNGED charset for utf16 password buffers
now to work out how to test this ...
Diffstat (limited to 'source4')
-rw-r--r--source4/dsdb/samdb/ldb_modules/password_hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/password_hash.c b/source4/dsdb/samdb/ldb_modules/password_hash.c
index fc8fb775ee..cef1bf79f7 100644
--- a/source4/dsdb/samdb/ldb_modules/password_hash.c
+++ b/source4/dsdb/samdb/ldb_modules/password_hash.c
@@ -1338,7 +1338,7 @@ static int setup_password_fields(struct setup_password_fields_io *io)
return LDB_ERR_OPERATIONS_ERROR;
}
converted_pw_len = convert_string_talloc_convenience(io->ac, lp_iconv_convenience(ldb_get_opaque(io->ac->module->ldb, "loadparm")),
- CH_UTF16, CH_UTF8, io->n.cleartext_utf16->data, io->n.cleartext_utf16->length,
+ CH_UTF16MUNGED, CH_UTF8, io->n.cleartext_utf16->data, io->n.cleartext_utf16->length,
(void **)&cleartext_utf8_str);
if (converted_pw_len == -1) {
/* We can't bail out entirely, as these unconvertable passwords are frustratingly valid */