[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
unique olcOverlay: pb in configuration
- To: openldap-technical@openldap.org
- Subject: unique olcOverlay: pb in configuration
- From: Alessandro Dentella <sandro@e-den.it>
- Date: Mon, 25 Mar 2013 15:11:35 +0100
- Content-disposition: inline
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:date:from:to:subject:message-id:mime-version :content-type:content-disposition:user-agent; bh=BB+FAV0Bb+wBYDT5B9Bf7rOikRPgzGAhIcqreUPDvYk=; b=PBHIg0PGLGc5E4D1KpfMrovBZ0kOF+SC6aDTsqUbsyO4XyNuxDpxoMX15Uo/vNH0Ja nJZtJHoMqzYD6n3f+CbyDMpQAWBRbFMcw3/t2HLrJnfoj3j/+O0Nvn8EDoyuWkmEULey e/PL0A1SlbGuHEa8lPjq0Ua3JvG/Ik7DMxgZnmV6OjJdWNj2h2vy6IxMLXIS3rSahPJR Rpaf77uRXbxWXyF8r/PEeerHu57ZlD3zGjoysy23ssOuGoatMhHZcSsZoE0hWbLlZxFA fAH54VVc1f/8Ekn+spwKYW9cmUZqPgrcui/Cj7XC51tk9uXXk3k9KnbZar2SENeQpv88 jIDA==
- User-agent: Mutt/1.5.21 (2010-09-15)
Hi,
I have been struggling to understand how to configure unique overlay and I
can't understand the error message I receive.
Adding the overlay
==================
And I'm trying to add Unique Overlay as::
dn: olcOverlay={0}unique,olcDatabase={1}hdb
changetype: add
objectClass: olcOverlayConfig
objectClass: olcUniqueConfig
olcOverlay: {0}unique
olcUniqueURI: ldap:///?mail?sub
that fails with error::
test-acomea:~# ldapmodify -D cn=admin,cn=config -w isi -f ,ldapvi-test-acomea-3996.ldif
adding new entry "olcOverlay={0}unique,olcDatabase={1}hdb"
ldap_add: Invalid syntax (21)
additional info: objectClass: value #1 invalid per syntax
I can't really understand which is the syntax error, my setup is below.
Dscription of setup
===================
I have a database to which I need to add unique constraint to the 'mail'
field. I loaded uniqu module in cn-config::
cn=module{0},cn=config
objectClass: olcModuleList
cn: module{0}
olcModulePath: /usr/lib/ldap
olcModuleLoad: {0}back_hdb
olcModuleLoad: {1}unique
and I have a db defined as::
test-acomea:~# ldapsearch -xLLL -D cn=admin,cn=config -b cn=config -W olcSuffix=dc=acomea,dc=it
dn: olcDatabase={1}hdb,cn=config
objectClass: olcDatabaseConfig
objectClass: olcHdbConfig
olcDatabase: {1}hdb
olcDbDirectory: /var/lib/ldap
olcSuffix: dc=acomea,dc=it
...
Thanks in advance
sandro
*:-)
PS: Any pointer to examples is very appreciated