Good Day,

openldap 2.4.39
RHEL 6.5


Working with an ldap implementation that builds  the dit from scratch daily using extracts from an RDBMS.
The nature of the source data/tables and the code that creates the extracts builds an ldif (imported via slapadd) that has some multi-value attributes, specifically cn, sn, and givenName because the RDBMS does no case checking.

Stanzas like this can occur in the ldif:

dn: uid=aperson,ou=people,dc=school,dc=edu

cn: Andrew Person
cn: ANDREW PERSON
sn: Person
sn: PERSON
givenName: Andrew
givenName: ANDREW

and slapadd will happily write them all, but ldapmodify etc. can (and do) return errors when encountering these entries.

What I'd like to do is use ldapadd under the uniqueness overlay instead of slapadd.  But I'm unsure of the specific syntax for the unique_uri specification so that that cn, sn, and givenName attributes are unique under/in each DN.
Most of the examples I've found are how to enforce uniqueness over an entire branch.  Still reading the specifics about uri specification but would appreciate any assistance.

Peter