[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: unique index



Andreas Moroder wrote:
Hello,

I want to be sure that the value in the employeeNumber attribute is unique. Is there a way to tell openldap to check this or to create a unique index as in relational databases ?

Thanks
Andreas


Something like...

overlay unique
unique_base "ou=data,dc=SUFFIX"
unique_attributes employeeNumber
#unique_ignore objectClass ou o dc

...and...

man slapo-unique

The last line
unique_ignore objectClass ou o dc
is not mandatory, but I've seen a line along those lines in many examples on the net.
Leave it out if you don't understand its meaning...


//Kari