]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
format
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Thu, 18 Feb 2016 17:48:18 +0000 (18:48 +0100)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Thu, 18 Feb 2016 17:48:18 +0000 (18:48 +0100)
docs/markdown/authoritative/backend-ldap.md

index 289d28c16a4d7b395c9d130fc17ab16c07666c3e..f653ea92615376cd924d106767311260b6e18d5c 100644 (file)
@@ -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=`<host name or IP>\
-` --basedn=`<subtree dn>\
-` --binddn=`<admin dn>\
-` > update.ldif`
+```
+./bind2pdns-ldap
+ --host=`<host name or IP>
+ --basedn=`<subtree dn>
+ --binddn=`<admin dn>
+ > 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