From: Peter van Dijk Date: Thu, 18 Feb 2016 17:48:18 +0000 (+0100) Subject: format X-Git-Tag: dnsdist-1.0.0-beta1~27^2~1^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b16ac96f153ea8408ed4d70c5bbe27a3e2c6ed15;p=thirdparty%2Fpdns.git format --- diff --git a/docs/markdown/authoritative/backend-ldap.md b/docs/markdown/authoritative/backend-ldap.md index 289d28c16a..f653ea9261 100644 --- a/docs/markdown/authoritative/backend-ldap.md +++ b/docs/markdown/authoritative/backend-ldap.md @@ -337,11 +337,13 @@ creates a file in LDIF format with the necessary LDAP updates including the "associatedDomain" and "dc" attributes. The utility is executed on the command line by: -`./bind2pdns-ldap`\ -` --host=`\ -` --basedn=`\ -` --binddn=`\ -` > update.ldif` +``` +./bind2pdns-ldap + --host=` + --basedn=` + --binddn=` + > update.ldif +``` The parameter "host" and "basedn" are mandatory, "binddn" is optional. If "binddn" is given, you will be asked for a password, otherwise an @@ -374,13 +376,15 @@ into a file and call zone2ldap with the file name as option to the which you can import into your LDAP tree. The bash script except below automates this for you. -`DNSSERVER=127.0.0.1`\ -`DOMAINS="linuxnetworks.de 10.10.in-addr.arpa"` +``` +DNSSERVER=127.0.0.1 +DOMAINS="linuxnetworks.de 10.10.in-addr.arpa" -`for DOMAIN in $DOMAINS; do`\ -`   dig @$DNSSERVER $DOMAIN AXFR> $DOMAIN.zone;`\ -`   zone2ldap --zone-name=$DOMAIN --zone-file=$DOMAIN.zone> $DOMAIN.ldif;`\ -`done` +for DOMAIN in $DOMAINS; do +   dig @$DNSSERVER $DOMAIN AXFR> $DOMAIN.zone; +   zone2ldap --zone-name=$DOMAIN --zone-file=$DOMAIN.zone> $DOMAIN.ldif; +done +``` # Optimization