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

delete: objectClass deleting the wrong attribute value (ITS#1424)



Full_Name: Lars Thegler
Version: 2.0.17
OS: FreeBSD 4.3-RELEASE
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (212.242.40.114)


Attempting to delete a particular value of the multi-valued objectClass
attribute, yields deletion of some other value of the attribute.

Initial situation:

--cut--
dn: cn=ldaptest,dc=cybercity,dc=dk
cn: ldaptest
sn: surname
objectClass: top
objectClass: person
objectClass: organizationalRole
--cut--

Modifying with ldapmodify, using the following modification input:

--cut--
dn: cn=ldaptest,dc=cybercity,dc=dk
changetype: modify
delete: objectClass
objectClass: organizationalRole
--cut--

After modification:

--cut--
dn: cn=ldaptest,dc=cybercity,dc=dk
cn: ldaptest
sn: surname
objectClass: person
objectClass: organizationalRole
--cut--

Note that the 'objectClass: top' value was deleted. Repeating the modification
yields that the 'objectClass: person' attribute is deleted. Only on the third
invokation of the ldapmodify command, is the correct (and now only) attribute
value deleted.

This has only been observed with the objectClass attribute. Similar
experimentation using other attributes ('description') does not reveal this
problem.