debian/0000755000000000000000000000000012061460776007177 5ustar debian/cron.d0000644000000000000000000000015412001225275010270 0ustar PATH=/sbin:/bin:/usr/sbin:/usr/bin @reboot bind /usr/sbin/ldap2bind @hourly bind /usr/sbin/ldap2bind debian/dirs0000644000000000000000000000005512001225275010046 0ustar etc/default usr/sbin usr/share/doc/ldap2zone debian/README.debian0000644000000000000000000000061312001225275011263 0ustar ldap2zone for Debian -------------------- This program extract dns record from ldap and create zone files for bind9. If you want your zone definitions to be automatically created : - Create an empty named.conf.ldap2zone in /etc/bind - Add this line to /etc/bind/named.conf.local include "/etc/bind/named.conf.ldap2zone"; Cajus Pollmeier , Thu, 17 Mar 2005 09:05:17 +0100 debian/compat0000644000000000000000000000000212001225275010360 0ustar 5 debian/changelog0000644000000000000000000000460712061460775011057 0ustar ldap2zone (0.2-3.1) unstable; urgency=low [ Dominik George ] * Non-maintainer upload. * Fix unbound variable in ldap2bind script (Closes: #690377) [ Thorsten Glaser ] * Convert patch to DEP-3; fix CR-LF endings; sponsor (Closes: #695597) -- Thorsten Glaser Mon, 10 Dec 2012 23:27:15 +0100 ldap2zone (0.2-3) unstable; urgency=low * Fixed installation of default file -- Cajus Pollmeier Wed, 25 Jul 2012 08:11:03 +0200 ldap2zone (0.2-2) unstable; urgency=low * Made script log using logger by a patch contributed by Petter Reinholdtsen -- Cajus Pollmeier Fri, 23 Dec 2011 09:03:05 +0100 ldap2zone (0.2-1) unstable; urgency=low * Converted to format 3.0 quilt * Corrected semicolon missing in update and transfer parameter * Make notify an optional argument -- Benoit Mortier Fri, 27 May 2011 18:52:11 +0100 ldap2zone (0.1-8) unstable; urgency=low * Added manpage for ldap2bind provided by Andreas B. Mundt -- Cajus Pollmeier Tue, 17 May 2011 09:00:17 +0200 ldap2zone (0.1-7) unstable; urgency=low * Corrected error in notify dns statement breaking the program -- Benoit Mortier Wed, 09 Jun 2010 12:50:28 +0200 ldap2zone (0.1-6) unstable; urgency=low * Added parameters to allow notify dns protocol and zone transfer -- Benoit Mortier Mon, 26 Apr 2010 00:16:23 +0200 ldap2zone (0.1-5) unstable; urgency=low * Added missing printf patch -- Benoit Mortier Sun, 15 Nov 2009 13:34:49 +0100 ldap2zone (0.1-4) unstable; urgency=low * FTBFS with binutils-gold (Closes: #555077) -- Benoit Mortier Sun, 08 Nov 2009 15:27:55 +0100 ldap2zone (0.1-3) unstable; urgency=low * ldap2bind incorrectly looks for rndc and ldap2zone (Closes: #544855) * correct bashism in /bin/sh script (Closes: #547749) -- Benoit Mortier Tue, 20 Oct 2009 00:39:24 +0200 ldap2zone (0.1-2) unstable; urgency=low * Converted to new ldap api (Closes: #540293) * Corrected binary-arch target (Closes: #540673) -- Cajus Pollmeier Wed, 12 Aug 2009 02:34:00 +0200 ldap2zone (0.1-1) unstable; urgency=low * Initial upload (Closes: #532665) -- Cajus Pollmeier Wed, 24 Jun 2009 10:02:00 +0200 debian/docs0000644000000000000000000000002212001225275010027 0ustar dnszonehowto.html debian/ldap2zone.manpages0000644000000000000000000000003112001225275012567 0ustar ldap2zone.1 ldap2bind.1 debian/default0000644000000000000000000000201012001225275010522 0ustar # Configuration file for automatic deployment of ldap2zone generated zones to bind # Should we run the cronjob # DEFAULT: "false" RUN_DEPLOY="false" # How the LDAP server can be accessed # DEFAULT: "ldap://localhost" #LDAP_URI="ldap://localhost" # Where the bind config is stored # DEFAULT: "/etc/bind" BIND_DIR="/etc/bind" # Where the zonefiles are located # DEFAULT: "/var/cache/bind" #BIND_DATA="/var/cache/bind" # Time to live value for a and ptr records # DEFAULT: 500 Seconds TTL="500" # Prefix for zone definition files # DEFAULT: "db." # The zone definition file for 0.168.192.in-addr.arpa is stored as 'db.0.168.192.in-addr.arpa' PREFIX="db." # Allow Updates from these networks (semicolon separated and ended) # DEFAULT: Don't allow updates #ALLOW_UPDATE="192.168.0.0/24;" # Allow Transfer to zones (semicolon separated and ended) # DEFAULT: Dont allow zone transfer #ALLOW_TRANSFER="192.168.0.1;" # Allow notify to slaves (semicolon separated and ended) # DEFAULT: Dont allow notify #ALLOW_NOTIFY="notify yes;" debian/copyright0000644000000000000000000000070612001225275011120 0ustar This package was debianized by Cajus Pollmeier Thu, 17 Mar 2005 09:05:17 +0100. It was downloaded from http://www.venaas.no/dns/ldap2zone/ Copyright: This software is copyright (C) 2004, 2005 Stig Venaas Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. debian/control0000644000000000000000000000150612001225275010567 0ustar Source: ldap2zone Section: utils Priority: optional Maintainer: GOsa packages maintainers group Uploaders: Cajus Pollmeier , Benoit Mortier Standards-Version: 3.9.2 Build-Depends: debhelper (>= 7.0.50~), libldap2-dev, ldap-utils Homepage: https://oss.gonicus.de/labs/gosa Vcs-Browser: https://oss.gonicus.de/repositories/goto/trunk/ldap2zone Vcs-Svn: https://oss.gonicus.de/repositories/goto/trunk/ldap2zone DM-Upload-Allowed: yes Package: ldap2zone Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends}, bind9 Conflicts: ldapdns, ldap2dns Description: Extract DNS zones from LDAP trees This is a tool that reads info for a zone from LDAP and constructs a standard plain ascii zone file. The LDAP information has to be stored using the dnszone schema. debian/patches/0000755000000000000000000000000012061460665010623 5ustar debian/patches/fix-default-location0000644000000000000000000000231012003707224014547 0ustar Description: Fixed location of default file . ldap2zone (0.2-3) unstable; urgency=low . * Fixed installation of default file Author: Cajus Pollmeier --- The information above should follow the Patch Tagging Guidelines, please checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here are templates for supplementary fields that you might want to add: Origin: , Bug: Bug-Debian: http://bugs.debian.org/ Bug-Ubuntu: https://launchpad.net/bugs/ Forwarded: Reviewed-By: Last-Update: --- ldap2zone-0.2.orig/ldap2bind +++ ldap2zone-0.2/ldap2bind @@ -85,8 +85,8 @@ for domain in $ZONES; do result=$($rndc reload $domain 2>&1) if [ $? -ne 0 ]; then - printf "Reloading the zone '$domain' failed: $result\n" 1>&2 + logger -t ldap2bind "Reloading the zone '$domain' failed: $result\n" else - printf "Reloading the zone '$domain' was successful\n" 1>&2 + logger -t ldap2bind "Reloading the zone '$domain' was successful\n" fi done debian/patches/series0000644000000000000000000000004512061460566012037 0ustar fix-default-location ldap_host_param debian/patches/ldap_host_param0000644000000000000000000000116312061460665013704 0ustar Description: fix wrong variable name Author: Dominik George Bug-Debian: http://bugs.debian.org/690377 Forwarded: no Reviewed-By: Thorsten Glaser Last-Update: 2012-12-10 --- a/ldap2bind +++ b/ldap2bind @@ -31,7 +31,7 @@ if [ "$ALLOW_TRANSFER" ]; then else ALLOW_TRANSFER_PARAM=; fi -ZONES=`ldapsearch -LLL $LDAP_HOST_PARAM -x "(objectClass=dNSZone)" zoneName | grep zoneName: | sort | uniq | awk '{print $2}'` +ZONES=`ldapsearch -LLL $LDAP_URI_PARAM -x "(objectClass=dNSZone)" zoneName | grep zoneName: | sort | uniq | awk '{print $2}'` ldap2zone=`which ldap2zone` rndc=`which rndc` debian/install0000644000000000000000000000005212003706727010560 0ustar ldap2zone /usr/sbin ldap2bind /usr/sbin debian/rules0000755000000000000000000000003712001225275010242 0ustar #!/usr/bin/make -f %: dh $@ debian/doc-base0000644000000000000000000000026112001225275010561 0ustar Document: ldap2zone Title: ldap2zone howto Section: System/Administration Format: HTML Index: /usr/share/doc/ldap2zone/dnszonehowto.html Files: /usr/share/doc/ldap2zone/*.html debian/source/0000755000000000000000000000000012001225275010462 5ustar debian/source/format0000644000000000000000000000001412001225275011670 0ustar 3.0 (quilt)