Jan Beerden wrote:
Is there a way to have a unique constraint over multiple attributes? We have
different attributes for the primary email address of a person, and for
additional aliases, and we'd like to enforce global uniqueness in such a way
that the primary email address for one person can not be used as an email
alias for another person.
The slapo-unique manpage doesn't make this very clear.
You can simply specify multiple attrs.
Example for old syntax:
unique_attributes uid uidNumber
Based on LDAP URLs:
unique_uri "ldap:///o=myorg?uid,uidNumber?sub?(objectClass=*)"
IIRC there's a bug with filters in unique_uri.
Ciao, Michael.