[Pdns-users] PDNS LDAP backend uses incorrect search filter for root
Norbert Sendetzky
norbert at linuxnetworks.de
Sat Jun 3 13:02:14 UTC 2006
On Thursday 01 June 2006 13:56, Jan-Piet Mens wrote:
> On Thu Jun 01 2006 at 13:47:37 CEST, Jan-Piet Mens wrote:
> > When I do a `dig @localhost . ns' searching for a root name server
> > (although I haven't got an appropriate entry in LDAP), I get
>
> > with filter="(?=undefined)".
>
> *** ldapbackend.cc.orig 2006-04-12 17:46:34.000000000 +0200
> --- ldapbackend.cc 2006-05-31 18:00:07.000000000 +0200
> ***************
> *** 196,201 ****
> --- 196,203 ----
>
>
> qesc = toLower( m_pldap->escape( qname ) );
> + if (qesc.length() == 0)
> + qesc = ".";
> filter = "(associatedDomain=" + qesc + ")";
>
> if( qtype.getCode() != QType::ANY )
>
> Am I on the right track?
Maybe. If you do not apply your patch, do you get incorrect results or are
there only these filter="(?=undefined)" messages in your log?
Norbert
--
OpenPGP public key
http://www.linuxnetworks.de/norbert.pubkey.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20060603/79718f79/attachment-0001.sig>
More information about the Pdns-users
mailing list