Re: dlz ldap setup
Gémes Géza <[email protected]> Fri, 16 Jan 2009 20:40:26 +0100
| Newsgroups | gmane.network.dns.bind9.dlz |
|---|---|
| Message-ID | <[email protected]> |
Mustafa A. Hashmi írta: > On Tue, Jan 13, 2009 at 11:06 PM, Gémes Géza <[email protected]> wrote: > >> Hi, >> >> I've tried to setup a dlz zone with BIND 9.5.0-P2 (debian package >> 1:9.5.0.dfsg.P2-4) following >> http://bind-dlz.sourceforge.net/ldap_driver.html word by word (changing >> just the ldap server address binddn and the rootdn used). Typing named - >> g -d 1 -u bind yields : >> 13-Jan-2009 19:02:16.767 Loading 'ldap zone' using driver ldap >> 13-Jan-2009 19:02:16.767 LDAP driver running multithreaded >> 13-Jan-2009 19:02:16.767 parsing allow zone transfer query failed >> 13-Jan-2009 19:02:16.767 SDLZ driver failed to load. >> 13-Jan-2009 19:02:16.767 DLZ driver failed to load. >> 13-Jan-2009 19:02:16.767 load_configuration: failure >> 13-Jan-2009 19:02:16.767 loading configuration: failure >> 13-Jan-2009 19:02:16.767 exiting (due to fatal error) >> In the meantime there is NO ldap querry logged at the ldap server >> (127.0.0.1). >> >> > > I am going by memory here so may be off base, however, I think parsing > fails because we use % as the separator. The following patch may help: > > --- contrib/dlz/drivers/sdlz_helper.c 2005-09-05 05:10:57.000000000 +0500 > +++ ../zvcompile/bind-9.5.0-P2/contrib/dlz/drivers/sdlz_helper.c > 2008-09-09 18:55:01.000000000 +0600 > @@ -171,7 +171,7 @@ > */ > tseg->sql = isc_mem_strdup(mctx, > isc_string_separate(&right_str, > - "%")); > + "$")); > if (tseg->sql == NULL) { > /* no memory, clean everything up. */ > result = ISC_R_NOMEMORY; > > -- > Mustafa A. Hashmi > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Bind-dlz-testers mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/bind-dlz-testers > Thank you, I' ll try it! Geza ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword