summaryrefslogtreecommitdiff
path: root/source3/lib/smbldap.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-03-11 22:48:24 +0000
committerJeremy Allison <jra@samba.org>2004-03-11 22:48:24 +0000
commite3f5b542707e2328030b9d5eff0836a904eccde5 (patch)
tree13124522e17aa9464fa9e4b965f6b34112af0307 /source3/lib/smbldap.c
parent3d18997afda94504e9db24115aaa56a58086a653 (diff)
downloadsamba-e3f5b542707e2328030b9d5eff0836a904eccde5.tar.gz
samba-e3f5b542707e2328030b9d5eff0836a904eccde5.tar.bz2
samba-e3f5b542707e2328030b9d5eff0836a904eccde5.zip
Restore the contract on all convert_stringXX() interfaces. Add a "allow_bad_conv"
boolean parameter that allows broken iconv conversions to work. Gets rid of the nasty errno checks in mangle_hash2 and check_path_syntax and allows correct return code checking. Jeremy. (This used to be commit 7b96765c23637613f079d37566d95d5edd511f05)
Diffstat (limited to 'source3/lib/smbldap.c')
-rw-r--r--source3/lib/smbldap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/smbldap.c b/source3/lib/smbldap.c
index 2ade9d5197..2c76e84254 100644
--- a/source3/lib/smbldap.c
+++ b/source3/lib/smbldap.c
@@ -306,7 +306,7 @@ static BOOL fetch_ldap_pw(char **dn, char** pw)
return False;
}
- if (convert_string(CH_UTF8, CH_UNIX,values[0], -1, value, max_len) == (size_t)-1) {
+ if (convert_string(CH_UTF8, CH_UNIX,values[0], -1, value, max_len, False) == (size_t)-1) {
DEBUG(1, ("smbldap_get_single_attribute: string conversion of [%s] = [%s] failed!\n",
attribute, values[0]));
ldap_value_free(values);