1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s3:idmap_ldap: trim the " chars from the location string in idmap_ldap_db_init

When idmap backend is specified as
idmap backend = ldap:"ldap://server1 ldap://server2"
then currently "ldap://server1 ldap://server2" was passed to
ldap_initialize including the quotes, leading to an ldap error.

Michael
This commit is contained in:
Michael Adam 2009-11-20 12:44:43 +01:00
parent 6a59db9a2e
commit 7153200f21

View File

@ -856,6 +856,8 @@ static NTSTATUS idmap_ldap_db_init(struct idmap_domain *dom,
}
CHECK_ALLOC_DONE(ctx->url);
trim_char(ctx->url, '\"', '\"');
tmp = lp_parm_const_string(-1, config_option, "ldap_base_dn", NULL);
if ( ! tmp || ! *tmp) {
tmp = lp_ldap_idmap_suffix();