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

Re: multivalued attribute bug



Looks like a bug.  Please file an ITS <http://www.openldap.org/its/>.

At 10:54 AM 3/17/00 +0800, Benjamin de los Angeles Jr. wrote:
>On Thu, 16 Mar 2000, Kurt D. Zeilenga wrote:
>
>> I assume you were posting an LDIF fragment.  I would suggest you
>> provide a little more detail (like a code fragment, input/output).
>> You might also try to duplicate using LDAP command line tools.
>> That's the common language spoken here.
>> 
>
>Here are the outputs from the commandline tools
>===============================================
>
>* Start by displaying current data
>
>[bench@ldap tools]$ ./ldapsearch -b "dc=surfshop.net, dc=ph"
>"mailalternateaddress=*somedomain.com.ph" 
>-D "cn=test, dc=surfshop.net, dc=ph" -W
>Enter LDAP Password:
>
>cn=bench, dc=surfshop.net, dc=ph
>cn=Benjamin de los Angeles Jr.
>sn=de los Angeles
>objectclass=person
>objectclass=organizationalPerson
>.
>.
>.
>mailalternateaddress=zwark@somedomain.com.ph
>mailalternateaddress=lazone@somedomain.com.ph
>
>* Delete a value from a multivalued attribute using modify
>
>MODIFY Data in a file:
>
>dn: cn=bench, dc=surfshop.net, dc=ph
>changetype: modify
>delete: mailalternateaddress
>mailalternateaddress: lazone@somedomain.com.ph
>
>[bench@ldap tools]$ ./ldapmodify -v -D "cn=test, dc=surfshop.net, dc=ph"
>                      -W -f tempdata/modify-delete
>Enter LDAP Password:
>delete mailalternateaddress:
>       lazone@somedomain.com.ph
>modifying entry cn=bench, dc=surfshop.net, dc=ph 
>modify complete
>
>* Display the matching entry again
>
>[bench@ldap tools]$ ./ldapsearch -b "dc=surfshop.net, dc=ph"
>		    "mailalternateaddress=*somedomain.com.ph" 
>		    -D "cn=test, dc=surfshop.net, dc=ph" -W                     
>Enter LDAP Password:
>
>(No output! This is the PROBLEM)
>
>* Add again an entry
>
>DATA in a file:
>
>dn: cn=bench, dc=surfshop.net, dc=ph
>changetype: modify
>add: mailalternateaddress
>mailalternateaddress: lazone@somedomain.com.ph
> 
>[bench@ldap tools]$ ./ldapmodify -v -D "cn=test, dc=surfshop.net, dc=ph"
>		    -W -f tempdata/modify-add
>Enter LDAP Password:
>add mailalternateaddress:
>        lazone@somedomain.com.ph
>modifying entry cn=test, dc=surfshop.net, dc=ph
>modify complete
>
>* Display the matching entry again
>
>[bench@ldap tools]$ ./ldapsearch -b "dc=surfshop.net, dc=ph"
>		    "mailalternateaddress=*somedomain.com.ph" 
>		    -D "cn=test, dc=surfshop.net, dc=ph" -W
>Enter LDAP Password:
>
>cn=bench, dc=surfshop.net, dc=ph
>cn=Benjamin de los Angeles Jr.
>sn=de los Angeles
>objectclass=person
>objectclass=organizationalPerson
>.
>.
>.
>mailalternateaddress=zwark@somedomain.com.ph
>mailalternateaddress=lazone@somedomain.com.ph
>
>(Magic! There goes the entry again! =) )
>
>--
>What could be the problem?
>
>