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

problems with ldap_add_s (ITS#1589)



Full_Name: Thomas Reith
Version: 2.0.22
OS: linux
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (193.141.91.10)


Hi,

with version 2.0.22 I run into problems with the ldap_add_s() function. if
I try to add a record of "objectClass: groupOfUniqueNames" with one
"uniqueMember" attribute, there is no problem. but with two or more
of this attribute ldap_add_s() fails with:

====> cache_find_entry_id( 6 ) "ou=group,ou=de,dc=xxx,dc=com" (found) (1 tries)
<= id2entry_r( 6 ) 0x80f1498 (cache)
ldbm_referrals: op=104 target="cn=foo,ou=group,ou=de,dc=xxx,dc=com"
matched="ou=group,ou=de,dc=edag,dc=com"
====> cache_return_entry_r( 6 ): returned (0)
send_ldap_result: conn=1 op=3 p=3
send_ldap_result: 20::attribute provided more than once
send_ldap_response: msgid=4 tag=105 err=20
ber_flush: 47 bytes to sd 9
  0000:  30 2d 02 01 04 69 28 0a  01 14 04 00 04 21 61 74   0-...i(......!at  
  0010:  74 72 69 62 75 74 65 20  70 72 6f 76 69 64 65 64   tribute provided  
  0020:  20 6d 6f 72 65 20 74 68  61 6e 20 6f 6e 63 65       more than once   
ldap_write: want=47, written=47
  0000:  30 2d 02 01 04 69 28 0a  01 14 04 00 04 21 61 74   0-...i(......!at  
  0010:  74 72 69 62 75 74 65 20  70 72 6f 76 69 64 65 64   tribute provided  
  0020:  20 6d 6f 72 65 20 74 68  61 6e 20 6f 6e 63 65       more than once

if I try to add such a record with the "ldapadd" tool, no problem. 
Are there any changes between 2.0.21 and 2.0.22 adding records with
ldap_add_s()?


regards.

Thomas Reith