[Pdns-dev] Re: powerdns ldap wildcard

Norbert Sendetzky norbert at linuxnetworks.de
Wed Dec 8 18:28:42 CET 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 08 December 2004 17:09, Leen Besselink wrote:
> ldap-method = tree
>
> I get the dc=\*,dc=besselink,ou=dns,dc=besselink in the logs (I do a
> restart in between, because of the query-cache)

Hmm, I see. It only occurs while using the "tree" method, because otherwise 
the query would be "associatedDomain=\*.besselink", which is a valid filter.

The error is that OpenLDAP doesn't accept escaped values ("\*") in dn's but 
only in filter strings. Therefore I must not escape strings in tree mode and 
have to remove the "m_pldap->escape" function from line 272 in 
LdapBackend::lookup_tree().

I will upload a new patch soon.

Thanks


Norbert

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAkG3OcoACgkQxMLs5v5/7eCobwCgkbx0MjK3G2khh9Vmy+jDCKJz
VhUAoLfT+02ObLOteAXMdNSlqXcH5CA1
=q5I1
-----END PGP SIGNATURE-----


More information about the Pdns-dev mailing list