Fischer, Johannes wrote:
"Hallo" Dieter, Hi @all,
I've changed the entry and added the quotes:
dn: olcOverlay=unique,olcDatabase={1}hdb,cn=config
changetype: add
objectClass: olcOverlayConfig
objectClass: olcUniqueConfig
olcOverlay: unique
olcUniqueUri: "ignore ldap:///?members?sub"
The result is the same error.
The error means your "objectClass: olcUniqueConfig" wasn't recognized.
Nothing
else in your LDIF mattered.
If the objectclass wasn't recognized, and you're sure there's no typos on that
line, it usually means you haven't loaded the relevant module yet.
What else could I try?
Or where could I get more information about this topic, except the man pages?
Greetings John
-----Ursprüngliche Nachricht-----
Von: openldap-technical [mailto:openldap-technical-bounces@openldap.org] Im Auftrag von
Dieter Klünter
Gesendet: Mittwoch, 26. August 2015 11:15
An: openldap-technical(a)openldap.org
Betreff: Re: disable unique overlay from member attributes
Am Mon, 24 Aug 2015 14:55:12 +0000
schrieb "Fischer, Johannes" <johannes.fischer(a)ipa.fraunhofer.de>:
> Hi @all,
>
> I try to allow double entries for the attribute member.
>
> I’ve tried it with the ldif:
> dn: olcOverlay=unique,olcDatabase={1}hdb,cn=config
> changetype: add
> objectClass: olcOverlayConfig
> objectClass: olcUniqueConfig
> olcOverlay: unique
> olcUniqueUri: ignore ldap:///?members?sub
>
> but when I load it to the config with:
> ldapmodify
> the Error:
>
> ldap_add: invalid syntax (21)
> additional info: objectClass: value #1 invalid per
> syntax
>
> What is going wrong here?
From man slapo-unique(5)
Keywords strict and ignore have to be enclosed in quotes (") together with the
URI.
-Dieter
--
Dieter Klünter | Systemberatung
http://sys4.de
GPG Key ID: E9ED159B
53°37'09,95"N
10°08'02,42"E
--
-- Howard Chu
CTO, Symas Corp.
http://www.symas.com
Director, Highland Sun
http://highlandsun.com/hyc/
Chief Architect, OpenLDAP
http://www.openldap.org/project/