Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 238681 - Bind ldap dlz support is broken
Summary: Bind ldap dlz support is broken
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: BIND Maintainers (DISABLED)
URL: http://article.gmane.org/gmane.networ...
Whiteboard:
Keywords:
Depends on: 302361
Blocks:
  Show dependency tree
 
Reported: 2008-09-25 19:10 UTC by Isakov Alexandr
Modified: 2010-05-13 01:22 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch (bind.patch,1.04 KB, patch)
2008-09-25 19:12 UTC, Isakov Alexandr
Details | Diff
fix ldap-delimiter (bind-9.6.1-dlz-patch-dollar2.patch,3.48 KB, patch)
2010-01-21 07:50 UTC, Philipp Wehrheim
Details | Diff
fix ldap-url string (bind-9.6.1-dlz-patch-ldap-url.patch,533 bytes, patch)
2010-01-21 07:51 UTC, Philipp Wehrheim
Details | Diff
patch to add the dlz-patch-(dollar2,ldap-url).patch to the bind-9.6.1 ebuild (bind-9.6.1_p2_dlz_ldap.patch,465 bytes, patch)
2010-01-21 07:53 UTC, Philipp Wehrheim
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Isakov Alexandr 2008-09-25 19:10:42 UTC
ldap_url_parse function didn`t work with "%" symbol(it loose "dn" of URL).
"%" symbol required in URL patterns like:

ldap:///dlzHostName=@,dlzZoneName=%zone%,ou=dns,o=bind-dlz?
               dlzTTL,dlzType,dlzData,dlzPrimaryNS,dlzAdminEmail,dlzSerial,
               dlzRefresh,dlzRetry,dlzExpire,dlzMinimum?sub?
               (&(objectclass=dlzAbstractRecord)(dlzType=soa))

Patch from http://article.gmane.org/gmane.network.dns.bind9.dlz/1516 fix this problem(I have tested it).
Comment 1 Isakov Alexandr 2008-09-25 19:12:17 UTC
Created attachment 166406 [details, diff]
Patch
Comment 2 Tobias Scherbaum (RETIRED) gentoo-dev 2009-07-10 13:44:00 UTC
(In reply to comment #0)
> ldap_url_parse function didn`t work with "%" symbol(it loose "dn" of URL).
> "%" symbol required in URL patterns like:
> 
> ldap:///dlzHostName=@,dlzZoneName=%zone%,ou=dns,o=bind-dlz?
>                dlzTTL,dlzType,dlzData,dlzPrimaryNS,dlzAdminEmail,dlzSerial,
>                dlzRefresh,dlzRetry,dlzExpire,dlzMinimum?sub?
>                (&(objectclass=dlzAbstractRecord)(dlzType=soa))
> 
> Patch from http://article.gmane.org/gmane.network.dns.bind9.dlz/1516 fix this
> problem(I have tested it).
> 

-v please: which version are you using? emerge --info please.
Comment 3 Philipp Wehrheim 2010-01-21 07:50:51 UTC
Created attachment 217050 [details, diff]
fix ldap-delimiter
Comment 4 Philipp Wehrheim 2010-01-21 07:51:31 UTC
Created attachment 217051 [details, diff]
fix ldap-url string
Comment 5 Philipp Wehrheim 2010-01-21 07:53:42 UTC
Created attachment 217053 [details, diff]
patch to add the dlz-patch-(dollar2,ldap-url).patch to  the bind-9.6.1 ebuild
Comment 6 Philipp Wehrheim 2010-01-21 07:55:17 UTC
Hey,

as noted before bind's dlz ldap support is still broken (bind-9.6.1_p2)

The following patches are needed in order to change the ldap-query delimter as well as the ldap-url.

USE-Flags: dlz ldap

please add the patches to the tree.

see: http://www.uit.co.uk/content/chapter-and-server-resources-alternative-dns-servers
for more details

Comment 7 Róbert Čerňanský 2010-02-15 21:10:43 UTC
Current (amd64) stable bind-9.4.3_p4 is also affected with this bug. First attached patch 'bind.patch' fixes it.


# emerge -pv bind

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] net-dns/bind-9.4.3_p4  USE="berkdb dlz idn ipv6 ldap ssl threads -doc -mysql -odbc -postgres -resolvconf (-selinux) -urandom" 0 kB


# emerge --info
Portage 2.1.7.16 (default/linux/amd64/10.0/server, gcc-4.3.4, glibc-2.10.1-r1, 2.6.31-gentoo-r6 x86_64)
=================================================================
System uname: Linux-2.6.31-gentoo-r6-x86_64-QEMU_Virtual_CPU_version_0.9.1-with-gentoo-1.12.13
Timestamp of tree: Sun, 14 Feb 2010 11:00:01 +0000
app-shells/bash:     4.0_p35
dev-lang/python:     2.6.4
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -msahf --param l1-cache-size=64 --param l1-cache-line-size=64 -fweb -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=k8 -msahf --param l1-cache-size=64 --param l1-cache-line-size=64 -fweb -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://gentoo.wheel.sk/ http://gentoo.ynet.sk/pub"
LDFLAGS="-Wl,--as-needed,--hash-style=gnu,--sort-common"
LINGUAS="en sk cs"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/mds"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl ads amd64 bash-completion berkdb bzip2 caps cli cracklib crypt cxx dlz dri fortran gnutls gtk gzip-el iconv idn imap ipv6 kerberos ldap logrotate memlimit mime mmx modules mudflap multilib ncurses network networking nls nptl nptlonly openmp pam pcre perl pppd python readline reflection samba sasl server session smime snmp sockets spl sse sse2 ssl sysfs syslog tcpd threads truetype unicode userlocales winbind xml xorg zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en sk cs" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev vesa" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 8 Christian Ruppert (idl0r) gentoo-dev 2010-05-13 01:22:59 UTC
Fixed in >=bind-9.6.1_p3-r1
Thanks!