How do I configure slapd(8) to prevent two objects in the database from having the same value in a particular attribute? That is, how do I configure slapd(8) ensure that values of a particular attribute are unique throughout the database?
The server is slapd 2.3.30, on a Debian Linux system (Etch).
Robert Klopotoski, Jr. wrote:
How do I configure slapd(8) to prevent two objects in the database from having the same value in a particular attribute? That is, how do I configure slapd(8) ensure that values of a particular attribute are unique throughout the database?
man slapo-unique
Jon Roberts www.mentata.com
How do I configure slapd(8) to prevent two objects in the database from having the same value in a particular attribute? That is, how do I configure slapd(8) ensure that values of a particular attribute are unique throughout the database?
man slapo-unique
Jon Roberts
I have read the man page on slapo-unique, and have the following in my slapd.conf:
overlay unique unique_base "dc=myorg,dc=edu" unique_attributes maillocaladdress,mail
When I try to start the daemon, I get the following error:
line 140 (overlay unique ) overlay "unique" not found
What am I missing? Do I have to install the overlay from source, or is it something built in?
Rob
Robert Klopotoski, Jr. wrote:
How do I configure slapd(8) to prevent two objects in the database from having the same value in a particular attribute? That is, how do I configure slapd(8) ensure that values of a particular attribute are unique throughout the database?
man slapo-unique
I have read the man page on slapo-unique, and have the following in my slapd.conf:
overlay unique unique_base "dc=myorg,dc=edu" unique_attributes maillocaladdress,mail
When I try to start the daemon, I get the following error:
line 140 (overlay unique ) overlay "unique" not found
What am I missing? Do I have to install the overlay from source, or is it something built in?
According to configure in the latest version of OpenLDAP, the only overlay enabled by default is syncprov. Run configure with either the --enable-unique or the --enable-overlays option and the unique overlay (or all overlays) should be available in the consequent build.
Jon Roberts www.mentata.com
On 6/22/07, Robert Klopotoski, Jr. rklopoto@endicott.edu wrote:
How do I configure slapd(8) to prevent two objects in the database from having the same value in a particular attribute? That is, how do I configure slapd(8) ensure that values of a particular attribute are unique throughout the database?
man slapo-unique
Jon Roberts
I have read the man page on slapo-unique, and have the following in my slapd.conf:
overlay unique unique_base "dc=myorg,dc=edu" unique_attributes maillocaladdress,mail
When I try to start the daemon, I get the following error:
line 140 (overlay unique ) overlay "unique" not found
What am I missing? Do I have to install the overlay from source, or is it something built in?
Rob
It looks like the Debian package include the unique overlay module.
Did you load the unique overlay module in your slapd.conf?:
moduleload unique.la
Sam
How do I configure slapd(8) to prevent two objects in the database from having the same value in a particular attribute? That is, how do I configure slapd(8) ensure that values of a particular attribute are unique throughout the database?
man slapo-unique
Jon Roberts
I have read the man page on slapo-unique, and have the following in my slapd.conf:
overlay unique unique_base "dc=myorg,dc=edu" unique_attributes maillocaladdress,mail
When I try to start the daemon, I get the following error:
line 140 (overlay unique ) overlay "unique" not found
What am I missing? Do I have to install the overlay from source, or is it something built in?
Rob
It looks like the Debian package include the unique overlay module.
Did you load the unique overlay module in your slapd.conf?:
moduleload unique.la
Sam
That was it! I appreciate the guidance from you, and the others who responded. I now have slapd running with no complaints in syslog.
Robert Klopotoski, Jr. writes:
How do I configure slapd(8) to prevent two objects in the database from having the same value in a particular attribute?
database <whatever> ... overlay unique unique_attributes <attribute...>
See the slapo-unique(5) manpage.
On 6/21/07, Robert Klopotoski, Jr. rklopoto@endicott.edu wrote:
How do I configure slapd(8) to prevent two objects in the database from having the same value in a particular attribute? That is, how do I configure slapd(8) ensure that values of a particular attribute are unique throughout the database?
The server is slapd 2.3.30, on a Debian Linux system (Etch).
man slapo-unique
openldap-software@openldap.org