浏览代码

Ticket #22 - RFE: Support sendmail LDAP routing schema

https://fedorahosted.org/389/ticket/22
Resolves: Ticket #22
Bug Description: RFE: Support sendmail LDAP routing schema
Reviewed by: nhosoi (Thanks!)
Branch: master
Fix Description: First I had to fix the OID for ntGroupType.  I assigned
a new OID to it from our OID range.
Next, I added a new file 60sendmail.ldif containing the new sendmail schema.
This must be in a separate file.  The problem is that the new schema is
incompatible with the existing schema of the same name - different syntaxes
and matching rules.  So if you use 60sendmail.ldif, you must not use
50ns-mail.ldif, 60inetmail.ldif, or 60qmail.ldif.
Platforms tested: RHEL6 x86_64
Flag Day: no
Doc impact: no
Rich Megginson 14 年之前
父节点
当前提交
64d2bc6af8
共有 4 个文件被更改,包括 57 次插入1 次删除
  1. 1 0
      Makefile.am
  2. 1 0
      Makefile.in
  3. 1 1
      ldap/schema/50ns-directory.ldif
  4. 54 0
      ldap/schema/60sendmail.ldif

+ 1 - 0
Makefile.am

@@ -266,6 +266,7 @@ sampledata_DATA = ldap/admin/src/scripts/failedbinds.py \
 	$(srcdir)/ldap/schema/60rfc4876.ldif \
 	$(srcdir)/ldap/schema/60samba.ldif \
 	$(srcdir)/ldap/schema/60samba3.ldif \
+	$(srcdir)/ldap/schema/60sendmail.ldif \
 	$(LIBPRESENCE_SCHEMA)
 
 schema_DATA = $(srcdir)/ldap/schema/00core.ldif \

+ 1 - 0
Makefile.in

@@ -1469,6 +1469,7 @@ sampledata_DATA = ldap/admin/src/scripts/failedbinds.py \
 	$(srcdir)/ldap/schema/60rfc4876.ldif \
 	$(srcdir)/ldap/schema/60samba.ldif \
 	$(srcdir)/ldap/schema/60samba3.ldif \
+	$(srcdir)/ldap/schema/60sendmail.ldif \
 	$(LIBPRESENCE_SCHEMA)
 
 schema_DATA = $(srcdir)/ldap/schema/00core.ldif \

+ 1 - 1
ldap/schema/50ns-directory.ldif

@@ -78,7 +78,7 @@ attributeTypes: ( 2.16.840.1.113730.3.1.43 NAME 'ntUserDeleteAccount' DESC 'Nets
 attributeTypes: ( 2.16.840.1.113730.3.1.44 NAME 'ntGroupDomainId' DESC 'Netscape defined attribute type' SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE X-ORIGIN 'Netscape NT Synchronization' )
 attributeTypes: ( 2.16.840.1.113730.3.1.45 NAME 'ntGroupCreateNewGroup' DESC 'Netscape defined attribute type' SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE X-ORIGIN 'Netscape NT Synchronization' )
 attributeTypes: ( 2.16.840.1.113730.3.1.46 NAME 'ntGroupDeleteGroup' DESC 'Netscape defined attribute type' SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE X-ORIGIN 'Netscape NT Synchronization' )
-attributeTypes: ( 2.16.840.1.113730.3.1.47 NAME 'ntGroupType' DESC 'Netscape defined attribute type' SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE X-ORIGIN 'Netscape NT Synchronization' )
+attributeTypes: ( 2.16.840.1.113730.3.1.2112 NAME 'ntGroupType' DESC 'Netscape defined attribute type' SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE X-ORIGIN 'Netscape NT Synchronization' )
 attributeTypes: ( 2.16.840.1.113730.3.1.59 NAME 'ntUserPriv' DESC 'Netscape defined attribute type' SYNTAX 1.3.6.1.4.1.1466.115.121.1.5 SINGLE-VALUE X-ORIGIN 'Netscape NT Synchronization' )
 attributeTypes: ( 2.16.840.1.113730.3.1.60 NAME 'ntUserAuthFlags' DESC 'Netscape defined attribute type' SYNTAX 1.3.6.1.4.1.1466.115.121.1.5 SINGLE-VALUE X-ORIGIN 'Netscape NT Synchronization' )
 attributeTypes: ( 2.16.840.1.113730.3.1.61 NAME 'ntUserUsrComment' DESC 'Netscape defined attribute type' SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE X-ORIGIN 'Netscape NT Synchronization' )

+ 54 - 0
ldap/schema/60sendmail.ldif

@@ -0,0 +1,54 @@
+#
+################################################################################
+#
+dn: cn=schema
+#
+################################################################################
+#
+attributeTypes: (
+  2.16.840.1.113730.3.1.13
+  NAME 'mailLocalAddress'
+  DESC 'RFC822 email address of this recipient'
+  EQUALITY caseIgnoreIA5Match
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256}
+  X-ORIGIN 'draft-lachman-laser-ldap-mail-routing-02.txt'
+  )
+#
+################################################################################
+#
+attributeTypes: (
+  2.16.840.1.113730.3.1.18
+  NAME 'mailHost'
+  DESC 'FQDN of the SMTP/MTA of this recipient'
+  EQUALITY caseIgnoreIA5Match
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256}
+  SINGLE-VALUE
+  X-ORIGIN 'draft-lachman-laser-ldap-mail-routing-02.txt'
+  )
+#
+################################################################################
+#
+attributeTypes: (
+  2.16.840.1.113730.3.1.47
+  NAME 'mailRoutingAddress'
+  DESC 'RFC822 routing address of this recipient'
+  EQUALITY caseIgnoreIA5Match
+  SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256}
+  SINGLE-VALUE
+  X-ORIGIN 'draft-lachman-laser-ldap-mail-routing-02.txt'
+  )
+#
+################################################################################
+#
+objectClasses: (
+  2.16.840.1.113730.3.2.147
+  NAME 'inetLocalMailRecipient'
+  DESC 'Internet local mail recipient'
+  SUP top
+  AUXILIARY
+  MAY ( mailLocalAddress $ mailHost $ mailRoutingAddress )
+  X-ORIGIN 'draft-lachman-laser-ldap-mail-routing-02.txt'
+  )
+#
+################################################################################
+#