From 301c84e7d8d98a5b20c0de53be88898607c5d854 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Mon, 28 May 2012 14:28:26 +0200 Subject: TODO note on `sub' indexes for aliases. --- fripost-docs.org | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/fripost-docs.org b/fripost-docs.org index 41655b4..e9134cb 100644 --- a/fripost-docs.org +++ b/fripost-docs.org @@ -745,6 +745,25 @@ Note: For the meaning of the sequences of digits above, grep the output of (For instance, 1.3.6.1.4.1.1466.115.121.1.26 is a IA5String, meaning the spaces don't matter) +TODO: Because of the use of `mailLocalAddress', we cannot use wildcard on aliases +with the current schema. It should be amended as follows: + + olcAttributeTypes: ( 1.3.6.1.4.1.7914.1.2.1.3 NAME 'mailAliasGoto' + DESC 'The target of e-mail virtual aliases.' + EQUALITY caseIgnoreIA5Match + SUBSTR caseIgnoreIA5SubstringsMatch + SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} SINGLE-VALUE ) + olcAttributeTypes: ( 1.3.6.1.4.1.7914.1.2.1.4 NAME 'mailAliasFrom' + DESC 'The login part of virtual aliases.' + EQUALITY caseIgnoreMatch + SUBSTR caseIgnoreSubstringsMatch + SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{256} ) + olcObjectclasses: ( 1.3.6.1.4.1.12461.1.2.2 NAME 'virtualAliases' + SUP top STRUCTURAL + DESC 'Virtual Aliases.' + MUST ( mailAliasGoto $ mailAliasFrom $ isActive ) + + We can now add it to the schema list: ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/ldap/fripost/fripost.ldif @@ -813,6 +832,13 @@ be looking for e.g., the `uid' attribute. add: olcDbIndex olcDbIndex: owner eq +TODO: After having amended the schema as specified above, we'll also need a +`sub' index on aliases: + + add: olcDbIndex + olcDbIndex: mailAliasGoto,mailAliasFrom eq,sub + + ldapmodify -Y EXTERNAL -H ldapi:/// -f /etc/ldap/fripost/indexes.ldif -- cgit v1.2.3