s3:idmap_ldap: trim the " chars from the location string in idmap_ldap_db_init
authorMichael Adam <obnox@samba.org>
Fri, 20 Nov 2009 11:44:43 +0000 (12:44 +0100)
committerKarolin Seeger <kseeger@samba.org>
Wed, 13 Jan 2010 13:00:55 +0000 (14:00 +0100)
commita52476b2beb464ccb33f4ce263ab061885bcc5f4
treee408054632d838b571610055151e393ee91b0923
parent3e5e42dd3fcefb481fc2d3fd71f9ca5fd0b1aa03
s3:idmap_ldap: trim the " chars from the location string in idmap_ldap_db_init

Fix bug #6910 (idmap_ldap stumbles over idmap backend = ldap:"ldap://ldap1
ldap://ldap2"=.

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
(cherry picked from commit 67f1d0ac6edecec4efb100ae61bc23bd321f518f)
source/winbindd/idmap_ldap.c