[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: entry has multiple objectClass attributes
> The problem is that when slurpd attempts to replicate an add operation
> from the replog to the datastore it gets an Object Class Violation
> error. However, if I grab the LDIF for the operation from the *.rej
> file and apply it to the same directory using ldapadd (binding with the
> same credentials) the add proceeds as expected.
>
> The LDIF looks a bit like:
>
> dn: the=name,for=the,ent=ry
> associatedName: the=name,for=another,entr=ry,which=is,somehow=related
> the: name
> objectClass: customSchemaOC1
> objectClass: customSchemaOC2
> att1: val1
> att2: val2
> att3: val3
> etc..
You're likely tryig to add the attribute 'objectClass' more than once;
in LDIF it would be:
dn: <somedn>
changetype: modify
add: objectClass
objectClass: <value1>
-
add: objectClass
objectClass: <value2>
-
which is incorrect: you'd rather do
dn: <somedn>
changetype: modify
add: objectClass
objectClass: <value1>
objectClass: <value2>
-
P.M.
--
Pierangelo Masarati
mailto:pierangelo.masarati@sys-net.it