[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#6860) slapadd accepts duplicate objectclasses



hyc@symas.com wrote:
> dieter@dkluenter.de wrote:
>> Full_Name: Dieter Klünter
>> Version: 2.4.24
>> OS: SLES11_x64
>> URL: ftp://ftp.openldap.org/incoming/
>> Submission from: (NULL) (84.142.18.17)
>>
>>
>> A ldif generator created  out of a total of 100,000 entries 10,000 entries with
>> duplicate objectclasses i.e.
>>
>> dn: cn=Michelina Al-Basi,ou=Accounting,ou=bremen,dc=dkluenter,dc=de
>> objectClass: top
>> objectClass: person
>> objectClass: organizationalPerson
>> objectClass: inetOrgPerson
>> objectClass: top
>> objectClass: person
>> objectClass: organizationalPerson
>> objectClass: inetOrgPerson
>> cn: Al-BasiM
>> sn: Al-Basi
>>
>> This ldif has been loaded by slapadd without any warnings. The only parameter
>> applied where -l and -f.
> 
> This is normal. slapadd doesn't do validation, you are expected to feed it 
> valid output from slapcat. This documented behavior has not changed in a decade.

Let me add that in recent releases you can specify -o value-check=yes to 
enforce value checking (incurring in the related penalty).  This would 
have revealed the error.

p.