diff options
author | Michael Adam <obnox@samba.org> | 2009-11-20 12:38:44 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2009-11-20 13:17:22 +0100 |
commit | 6a59db9a2e4c1552bbdd1531b602661d6e199829 (patch) | |
tree | e519941c3c36e4f4932edd9daa22a50e5179ccd9 /source3 | |
parent | 7c8b34657a19c96bbeb2181cd194f323a6827365 (diff) | |
download | samba-6a59db9a2e4c1552bbdd1531b602661d6e199829.tar.gz samba-6a59db9a2e4c1552bbdd1531b602661d6e199829.tar.bz2 samba-6a59db9a2e4c1552bbdd1531b602661d6e199829.zip |
s3:idmap_ldap: trim the " chars from the location string in idmap_ldap_alloc_init
When idmap alloc backend is specified as
idmap alloc 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
Diffstat (limited to 'source3')
-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 375c04a0bf..99265594b9 100644 --- a/source3/winbindd/idmap_ldap.c +++ b/source3/winbindd/idmap_ldap.c @@ -306,6 +306,8 @@ static NTSTATUS idmap_ldap_alloc_init(const char *params) } CHECK_ALLOC_DONE( idmap_alloc_ldap->url ); + trim_char(idmap_alloc_ldap->url, '\"', '\"'); + tmp = lp_parm_const_string(-1, "idmap alloc config", "ldap_base_dn", NULL); if ( ! tmp || ! *tmp) { |