aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem.moulin@fripost.org>2012-05-28 14:28:26 +0200
committerGuilhem Moulin <guilhem.moulin@fripost.org>2012-05-28 14:28:26 +0200
commit301c84e7d8d98a5b20c0de53be88898607c5d854 (patch)
treebc9eafa6a362727f6412e4a5907b1a84034c2a25
parent9c6923c9ca67db6ba771b43df957a50d4ffc13d0 (diff)
TODO note on `sub' indexes for aliases.
-rw-r--r--fripost-docs.org26
1 files changed, 26 insertions, 0 deletions
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