You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by er...@apache.org on 2005/09/18 21:55:11 UTC
svn commit: r289963 -
/directory/apacheds/trunk/core/src/main/schema/apachedns.schema
Author: erodriguez
Date: Sun Sep 18 12:55:09 2005
New Revision: 289963
URL: http://svn.apache.org/viewcvs?rev=289963&view=rev
Log:
Completed basic directory-backed record serving (DIRDNS-1):
o Added schema support for SOA, A, NS, MX, PTR, and CNAME resource records.
Modified:
directory/apacheds/trunk/core/src/main/schema/apachedns.schema
Modified: directory/apacheds/trunk/core/src/main/schema/apachedns.schema
URL: http://svn.apache.org/viewcvs/directory/apacheds/trunk/core/src/main/schema/apachedns.schema?rev=289963&r1=289962&r2=289963&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/schema/apachedns.schema (original)
+++ directory/apacheds/trunk/core/src/main/schema/apachedns.schema Sun Sep 18 12:55:09 2005
@@ -2,68 +2,77 @@
# ApacheDS schema for storing DNS zones in LDAP
#
-attributetype ( 1.2.6.1.4.1.18060.1.1.1.3.10 NAME 'apacheDnsTtl'
- DESC 'An integer denoting time to live'
- EQUALITY integerMatch
- SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
-
-attributetype ( 1.2.6.1.4.1.18060.1.1.1.3.11 NAME 'apacheDnsClass'
- DESC 'The class of a resource record'
+attributetype ( 1.2.6.1.4.1.18060.1.1.1.3.10 NAME 'apacheDnsName'
+ DESC 'A sequence of labels representing a domain name or host name'
EQUALITY caseIgnoreIA5Match
+ SUBSTR caseIgnoreIA5SubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
-attributetype ( 1.2.6.1.4.1.18060.1.1.1.3.12 NAME 'apacheDnsZoneName'
- DESC 'The name of a zone, i.e. the name of the highest node in the zone'
+attributetype ( 1.2.6.1.4.1.18060.1.1.1.3.11 NAME 'apacheDnsType'
+ DESC 'The type of a resource record'
EQUALITY caseIgnoreIA5Match
- SUBSTR caseIgnoreIA5SubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
-attributetype ( 1.2.6.1.4.1.18060.1.1.1.3.13 NAME 'apacheDnsName'
- DESC 'Sequence of labels usually comprising a domain name or host name'
+attributetype ( 1.2.6.1.4.1.18060.1.1.1.3.12 NAME 'apacheDnsClass'
+ DESC 'The class of a resource record'
EQUALITY caseIgnoreIA5Match
- SUBSTR caseIgnoreIA5SubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
-attributetype ( 1.2.6.1.4.1.18060.1.1.1.3.14 NAME 'apacheDnsIpAddress'
+attributetype ( 1.2.6.1.4.1.18060.1.1.1.3.13 NAME 'apacheDnsTtl'
+ DESC 'An integer denoting time to live'
+ EQUALITY integerMatch
+ SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
+
+attributetype ( 1.2.6.1.4.1.18060.1.1.1.3.14 NAME 'apacheDnsDomainName'
+ DESC 'A domain name represented as a sequence of labels'
+ EQUALITY caseIgnoreIA5Match
+ SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} SINGLE-VALUE )
+
+attributetype ( 1.2.6.1.4.1.18060.1.1.1.3.15 NAME 'apacheDnsIpAddress'
DESC 'A 4 octet IP address'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{128} SINGLE-VALUE )
-attributetype ( 1.2.6.1.4.1.18060.1.1.1.3.15 NAME 'apacheDnsSoaMName'
- DESC 'A domain name of the name server that was the primary source of data for this zone'
+attributetype ( 1.2.6.1.4.1.18060.1.1.1.3.16 NAME 'apacheDnsSoaMName'
+ DESC 'The domain name of the name server that was the primary source of data for this zone'
SUP apacheDnsDomainName SINGLE-VALUE )
-attributetype ( 1.2.6.1.4.1.18060.1.1.1.3.16 NAME 'apacheDnsSoaRName'
+attributetype ( 1.2.6.1.4.1.18060.1.1.1.3.17 NAME 'apacheDnsSoaRName'
DESC 'The domain name which specifies the mailbox of the person responsible for this zone'
SUP apacheDnsDomainName SINGLE-VALUE )
-attributetype ( 1.2.6.1.4.1.18060.1.1.1.3.17 NAME 'apacheDnsSoaSerial'
- DESC 'The unsigned 32 bit ver num of the original copy of the zone'
+attributetype ( 1.2.6.1.4.1.18060.1.1.1.3.18 NAME 'apacheDnsSoaSerial'
+ DESC 'The unsigned 32 bit version number of the original copy of the zone'
EQUALITY integerMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
-attributetype ( 1.2.6.1.4.1.18060.1.1.1.3.18 NAME 'apacheDnsSoaRefresh'
+attributetype ( 1.2.6.1.4.1.18060.1.1.1.3.19 NAME 'apacheDnsSoaRefresh'
DESC 'A 32 bit time interval before the zone should be refreshed'
EQUALITY integerMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
-attributetype ( 1.2.6.1.4.1.18060.1.1.1.3.19 NAME 'apacheDnsSoaRetry'
+attributetype ( 1.2.6.1.4.1.18060.1.1.1.3.20 NAME 'apacheDnsSoaRetry'
DESC 'A 32 bit time interval that should elapse before a failed refresh should be retired'
EQUALITY integerMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
-attributetype ( 1.2.6.1.4.1.18060.1.1.1.3.20 NAME 'apacheDnsSoaExpire'
+attributetype ( 1.2.6.1.4.1.18060.1.1.1.3.21 NAME 'apacheDnsSoaExpire'
DESC 'A 32 bit time value that specifies the upper limit on the time interval that can elapse before the zone is no longer authoritative'
EQUALITY integerMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
-attributetype ( 1.2.6.1.4.1.18060.1.1.1.3.21 NAME 'apacheDnsSoaMinimum'
+attributetype ( 1.2.6.1.4.1.18060.1.1.1.3.22 NAME 'apacheDnsSoaMinimum'
DESC 'The unsigned 32 bit minimum TTL field that should be exported with any RR from this zone.'
EQUALITY integerMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
-attributetype ( 1.2.6.1.4.1.18060.1.1.1.3.22 NAME 'apacheDnsDomainName'
- DESC 'A domain name or sequence dotted labels'
+attributetype ( 1.2.6.1.4.1.18060.1.1.1.3.23 NAME 'apacheDnsMxPreference'
+ DESC 'An integer denoting the mail exchange preference'
+ EQUALITY integerMatch
+ SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
+
+attributetype ( 1.2.6.1.4.1.18060.1.1.1.3.24 NAME 'apacheDnsCharacterString'
+ DESC 'A string up to 256 characters in length'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} SINGLE-VALUE )
@@ -72,29 +81,46 @@
DESC 'An abstract DNS record objectClass used to build other specific structural objectclasses for different record types'
SUP top
ABSTRACT
- MUST ( apacheDnsTtl $ apacheDnsClass $ apacheDnsZoneName $ apacheDnsName ) )
+ MUST ( apacheDnsName $ apacheDnsType $ apacheDnsClass $ apacheDnsTtl ) )
objectclass ( 1.2.6.1.4.1.18060.1.1.1.4.2
NAME 'apacheDnsAddressRecord'
- DESC 'An address record a.k.a. A record'
+ DESC 'An address A record'
SUP apacheDnsAbstractRecord
MUST apacheDnsIpAddress )
objectclass ( 1.2.6.1.4.1.18060.1.1.1.4.3
NAME 'apacheDnsPointerRecord'
- DESC 'A DNS Pointer record'
+ DESC 'A pointer PTR record'
SUP apacheDnsAbstractRecord
MUST apacheDnsDomainName )
objectclass ( 1.2.6.1.4.1.18060.1.1.1.4.4
NAME 'apacheDnsNameServerRecord'
- DESC 'A DNS Name Server record'
+ DESC 'A name server NS record'
SUP apacheDnsAbstractRecord
- MUST apacheDnsName )
+ MUST apacheDnsDomainName )
objectclass ( 1.2.6.1.4.1.18060.1.1.1.4.5
NAME 'apacheDnsStartOfAuthorityRecord'
- DESC 'A DNS Start of Authority record'
+ DESC 'A start of authority SOA record'
SUP apacheDnsAbstractRecord
- MUST ( apacheDnsSoaMName $ apacheDnsSoaRName $ apacheDnsSoaSerial $ apacheDnsSoaRefresh $ apacheDnsSoaRetry $ apacheDnsSoaExpire $apacheDnsSoaMinimum ) )
+ MUST ( apacheDnsSoaMName $ apacheDnsSoaRName $ apacheDnsSoaSerial $ apacheDnsSoaRefresh $ apacheDnsSoaRetry $ apacheDnsSoaExpire $ apacheDnsSoaMinimum ) )
+objectclass ( 1.2.6.1.4.1.18060.1.1.1.4.7
+ NAME 'apacheDnsCanonicalNameRecord'
+ DESC 'A canonical name CNAME record'
+ SUP apacheDnsAbstractRecord
+ MUST apacheDnsDomainName )
+
+objectclass ( 1.2.6.1.4.1.18060.1.1.1.4.8
+ NAME 'apacheDnsMailExchangeRecord'
+ DESC 'A mail exchange MX record'
+ SUP apacheDnsAbstractRecord
+ MUST ( apacheDnsMxPreference $ apacheDnsDomainName ) )
+
+objectclass ( 1.2.6.1.4.1.18060.1.1.1.4.9
+ NAME 'apacheDnsTextRecord'
+ DESC 'A text TXT record'
+ SUP apacheDnsAbstractRecord
+ MUST apacheDnsCharacterString )