]> granicus.if.org Git - pdns/commitdiff
Add support for ALIAS record
authorGrégory Oestreicher <greg@kamago.net>
Sat, 14 Oct 2017 21:52:35 +0000 (23:52 +0200)
committerGrégory Oestreicher <greg@kamago.net>
Tue, 10 Apr 2018 20:42:39 +0000 (22:42 +0200)
modules/ldapbackend/ldapbackend.hh
modules/ldapbackend/pdns-domaininfo.schema
regression-tests/backends/ldap-master

index 6ae55d9f09c373edef252348c31561b2cc22781d..37828337f6b6a952e8275afaa359f678700421d1 100644 (file)
@@ -56,6 +56,7 @@ class LdapAuthenticator;
 static const char* ldap_attrany[] = {
   "associatedDomain",
   "dNSTTL",
+  "ALIASRecord",
   "aRecord",
   "nSRecord",
   "cNAMERecord",
index 4d300e9144433eed5eb2c3a24cef48424e7e526b..c4cf100a2b1434137e5d08c60d77afaaa90a19d1 100644 (file)
@@ -58,6 +58,12 @@ attributetype ( 1.3.6.1.4.1.27080.1.13 NAME 'PdnsRecordOrdername'
     EQUALITY caseIgnoreMatch
     SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )
 
+attributetype (  1.3.6.1.4.1.27080.1.15 NAME 'ALIASRecord'
+    DESC 'PowerDNS ALIAS RR type'
+    EQUALITY caseIgnoreIA5Match
+    SUBSTR caseIgnoreIA5SubstringsMatch
+    SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
+
 objectclass ( 1.3.6.1.4.1.27080.2.2.1 NAME 'PdnsDomain'
     DESC 'PDNS domain metadata information'
     SUP top AUXILIARY
@@ -68,4 +74,4 @@ objectclass ( 1.3.6.1.4.1.27080.2.2.1 NAME 'PdnsDomain'
 objectclass ( 1.3.6.1.4.1.27080.2.2.4 NAME 'PdnsRecordData'
     DESC 'Additional record data for PDNS'
     SUP top AUXILIARY
-    MAY ( PdnsRecordTTL $ PdnsRecordNoAuth $ PdnsRecordOrdername ) )
+    MAY ( PdnsRecordTTL $ PdnsRecordNoAuth $ PdnsRecordOrdername $ ALIASRecord ) )
index 25138b9b212d8e198222336ae2a8cc1cd0754246..d347d11cf6cd4b204465339a07468bd4d9873a52 100644 (file)
@@ -26,10 +26,12 @@ __EOF__
 
                $RUNWRAPPER $PDNS --daemon=no --local-address=$address --local-port=$port --config-dir=. \
                        --config-name=ldap --socket-dir=./ --no-shuffle \
-                       --query-logging \
+                       --query-logging --dnsupdate=yes \
+      --expand-alias=yes --outgoing-axfr-expand-alias=yes \
+      --resolver=8.8.8.8 \
                        --cache-ttl=$cachettl --dname-processing $lua_prequery &
 
-               skipreasons="nodnssec noent nodyndns nometa noaxfr noalias"
+               skipreasons="nodnssec noent nodyndns nometa noaxfr"
 
                ;;
        *)