Package: pdns-backend-ldap Version: 2.9.20-3 Severity: normal Tags: patch
DNS lookups of wildcard records fail when using the tree ldap-method. The asterisk is escaped in the base dn which is invalid. See http://marc2.theaimsgroup.com/?l=pdns-dev&m=114875782905522&w=2 for more information and the source of the patch by the author of the ldap backend. -- System Information: Debian Release: testing/unstable APT prefers testing APT policy: (500, 'testing'), (500, 'stable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.16-2-xen-686 Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Versions of packages pdns-backend-ldap depends on: ii libc6 2.3.6-15 GNU C Library: Shared libraries ii libgcc1 1:4.1.1-5 GCC support library ii libldap2 2.1.30-13+b1 OpenLDAP libraries ii libstdc++6 4.1.1-5 The GNU Standard C++ Library v3 ii pdns-server 2.9.20-3 extremely powerful and versatile n ii zlib1g 1:1.2.3-11 compression library - runtime pdns-backend-ldap recommends no packages. -- no debconf information
--- pdns-2.9.20/modules/ldapbackend/ldapbackend.cc 2006-03-15 19:29:39.000000000 +0100 +++ pdns-2.9.20.new/modules/ldapbackend/ldapbackend.cc 2006-05-27 21:14:51.853659928 +0200 @@ -281,7 +281,7 @@ filter = strbind( ":target:", filter, getArg( "filter-lookup" ) ); - stringtok( parts, qesc, "." ); + stringtok( parts, toLower( qname ), "." ); for( i = parts.rbegin(); i != parts.rend(); i++ ) { dn = "dc=" + *i + "," + dn;