diff options
author | Michael Adam <obnox@samba.org> | 2009-11-20 12:44:43 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2009-11-20 13:17:23 +0100 |
commit | 7153200f21e1f30ba0ca7d629cc2c4e187ba605f (patch) | |
tree | cb8c3008eec64b0c32611ee48e327075a2ac7896 | |
parent | 6a59db9a2e4c1552bbdd1531b602661d6e199829 (diff) | |
download | samba-7153200f21e1f30ba0ca7d629cc2c4e187ba605f.tar.gz samba-7153200f21e1f30ba0ca7d629cc2c4e187ba605f.tar.bz2 samba-7153200f21e1f30ba0ca7d629cc2c4e187ba605f.zip |
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
-rw-r--r-- | source3/winbindd/idmap_ldap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/winbindd/idmap_ldap.c b/source3/winbindd/idmap_ldap.c index 99265594b9..cf32238614 100644 --- a/source3/winbindd/idmap_ldap.c +++ b/source3/winbindd/idmap_ldap.c @@ -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(); |