Am 12.06.19 um 13:51 schrieb Stefan Schmidt:
Hello,
is it possible define a unique constraint across attributes? We have a mail field and a mailAlias field and would like to assure that if a mail address exists either in mail or mailAlias it cannot be added again to either field, meaning mail addresses are unique in the complete tree.
We are using OpenLDAP 2.4 and currently we use the following LDIF to load the unique module and assure that the mail attribute is unique:
dn: cn=module,cn=config cn: module objectclass: olcModuleList objectclass: top olcmoduleload: unique olcmodulepath: /usr/lib/ldap
dn: olcOverlay=unique,olcDatabase={1}hdb,cn=config objectClass: olcOverlayConfig objectClass: olcUniqueConfig olcOverlay: {0}unique olcUniqueAttribute: mail
Which LDIF would I use to assure uniqueness across mail and mailAlias?
Cheers, Stefan Schmidt
see my question http://www.openldap.org/lists/openldap-technical/201905/msg00021.html and the answer http://www.openldap.org/lists/openldap-technical/201905/msg00022.html