From e5b05441215b9e08b3beaafd07c382a8c29c22e1 Mon Sep 17 00:00:00 2001 From: bert hubert Date: Thu, 5 Nov 2015 14:40:51 +0100 Subject: [PATCH] make LDAP backend compile again. Note: it may have been broken already. It uses the length of a domain name for AXFR in-zone-detection purposes, which should probably be DNSName native anyhow. --- modules/ldapbackend/ldapbackend.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ldapbackend/ldapbackend.cc b/modules/ldapbackend/ldapbackend.cc index 9032d5e6c..8e01a5ff1 100644 --- a/modules/ldapbackend/ldapbackend.cc +++ b/modules/ldapbackend/ldapbackend.cc @@ -93,7 +93,7 @@ bool LdapBackend::list( const DNSName& target, int domain_id, bool include_disab try { m_qname = target; - m_axfrqlen = target.length(); + m_axfrqlen = target.toStringNoDot().length(); m_adomain = m_adomains.end(); // skip loops in get() first time return (this->*m_list_fcnt)( target, domain_id ); -- 2.40.0