Hello,
I'm planing a schema to store data (mostly mail addresses) in OpenLDAP.
one (soft) requirement: the mail address should be a single value. secondary addresses goes in an other attribute which allow multiple values.
The only way I found for now is to copy the definition of 'mail' in core.schema [1] and write
attributetype ( <my oid> NAME ( 'mail-sv' ) DESC 'RFC1274: RFC822 Mailbox (copy from core.schema, but SINGLE-VALUE)' EQUALITY caseIgnoreIA5Match SUBSTR caseIgnoreIA5SubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} SINGLE-VALUE )
This would work but it's not convenient: Everybody expect a mail address in a attribute named "mail", not "mail-sv"
Are there other options to fulfill the requirement or makes the requirement at all no sense? I appreciate any comments.
Andreas
[1] https://github.com/openldap/openldap/blob/master/servers/slapd/schema/core.s...