[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Unique overlay confusing
Hi there,
On Wed, Aug 08, 2018 at 11:43:56AM +0100, Howard Chu wrote:
> Michael Ströder wrote:
> >On 8/8/18 11:25 AM, Ervin Hegedüs wrote:
> >>I've followed the docs (and some forums), and made these
> >>modifications:
> >>
> >>(OpenLDAP doc:
> >>http://www.openldap.org/doc/admin24/overlays.html#Attribute%20Uniqueness)
> >>
> >>but I still can set the mail attribute as same e-mail address
> >>for two different users.
> >
> >It should just work. Which OpenLDAP version and builds are you using?
> >
> >Wild guess: Did you also add an eq-index for the unique attributes *and* re-index the DB?
>
> (Note - adding an index by LDAPmodify'ing cn=config automatically reindexes the DB...)
so, I just need to add the index, like
dn: olcDatabase={1}mdb,cn=config
changetype: modify
delete: olcDbIndex
-
add: olcDbIndex
olcDbIndex: objectClass eq
-
... existing indexes...
-
add: olcDbIndex
olcDbIndex: mail eq
-
... other unique indexes...
?
thanks,
a.