[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: unique olcOverlay: pb in configuration [SOLVED]
- To: openldap-technical@openldap.org
- Subject: Re: unique olcOverlay: pb in configuration [SOLVED]
- From: Alessandro Dentella <sandro@e-den.it>
- Date: Mon, 25 Mar 2013 16:22:33 +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:mail-followup-to :references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=aieAw5pOkcp85YU40cGlfngsAn/peZIlUyYhiCEUVZw=; b=T76Dao+lJSO9S283H3/Fe8z+/x/wVTRKOk42xBjIDjnhuQnnFYu4iVqFlLY1ZcZG5p F0tkV53rkfbahdNiP3Hp9VbjsTYV0VjfFQfBhZpu08ikN+1WWBxT0N3b1kHRdwLXpPKk mFkxkke2E/Fw5KNM1h1Y1F+Os6L12f+QyR1K5gcjLD4+ma3mxJ/3/HKzVcTguznVghSC 5i5hx+eqG01Ml5anRoytdSRENO+NC/WY+7O4voMKxV9vz74zzr7FCvXxC39akd6zidda QkMV39/PawOsf7zmWPJwejjjOp7XMZM7AlORP/DWVzaQmX8goW5rt3JTHS+36cxeSPPF s56w==
- In-reply-to: <1DCD0E860D406F650B21631B@[192.168.1.26]>
- Mail-followup-to: openldap-technical@openldap.org
- References: <20130325141135.GC24244@ubuntu> <1DCD0E860D406F650B21631B@[192.168.1.26]>
- User-agent: Mutt/1.5.21 (2010-09-15)
On Mon, Mar 25, 2013 at 07:42:31AM -0700, Quanah Gibson-Mount wrote:
> --On Monday, March 25, 2013 3:11 PM +0100 Alessandro Dentella
> <sandro@e-den.it> wrote:
>
> >
> >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
>
> Do you actually have a unique.la file for loading in /usr/lib/ldap?
yes. Thanks anyhow.
It turned out I had some trailing white spaces as suggested here [1]
sandro
*:-)
[1] http://www.openldap.org/faq/data/cache/648.html
--
Sandro Dentella *:-)
http://www.reteisi.org Soluzioni libere per le scuole
http://sqlkit.argolinux.org SQLkit home page - PyGTK/python/sqlalchemy