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

ldap_add/ldapsearch: No such object (ITS#991)



Full_Name: Andreas Marx
Version: openldap-1.2.11
OS: Solaris 8
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (193.5.233.134)


hello

I have problems with OpenLDAP on my Solaris server.
I downloaded openldap-1.2.11 from http://www.openldap.org and did the
installation as described.
I used the following options for the configure command:

# LIBS="-lpthread -lposix4"; export LIBS
# ./configure --with-threads
...
# make depend
...
# make
...
# cd tests
# make
...
# cd ..
# make install

When I now try to do an ldapadd or ldapsearch, then I always get "No such
object" as answer.
In the logs I can find the "error 32" as well as the message "parent does not
exist" and
"<= d2id NOID". I was looking for any hints in the Faq-O-Matic but I am
absolutely helpless.
My LDAPserver on my Solaris 8 system does not want to work for me - it seems.

Find below the tracing of the command
#ldapadd -D "cn=Manager, dc=swisscom, dc=com" -W < test.ldif


-----
select activity on 1 descriptors
new connection on 5
conn=0 fd=5 connection from comserv (193.5.236.40) accepted.
activity on:
listening for connections on 3, activity on: 5r
before select active_threads 0
select activity on 1 descriptors
activity on: 5r
read activity on 5
ber_get_next
ber_get_next: tag 0x30 len 43 contents:
ber_dump: buf 0x9c1d8, ptr 0x9c1d8, end 0x9c203
          current len 43, contents:
        02 01 01  `  & 02 01 02 04 1f  c  n  =  M  a  n
         a  g  e  r  , 20  d  c  =  s  w  i  s  s  c  o
         m  , 20  d  c  =  c  o  m 80 00 
do_bind
do_bind: version 2 dn (cn=Manager, dc=swisscom, dc=com) method 128
conn=0 op=0 BIND dn="CN=MANAGER,DC=SWISSCOM,DC=COM" method=128
==> ldbm_back_bind: dn: CN=MANAGER,DC=SWISSCOM,DC=COM
dn2entry_r: dn: "CN=MANAGER,DC=SWISSCOM,DC=COM"
=> dn2id( "CN=MANAGER,DC=SWISSCOM,DC=COM" )
=> ldbm_cache_open( "/usr/local/var/openldap-ldbm/dn2id.dbb", 7, 600 )
ldbm_cache_open (blksize 8192) (maxids 2046) (maxindirect 2)
<= ldbm_cache_open (opened 0)
<= dn2id NOID
dn2entry_r: dn: "DC=SWISSCOM,DC=COM"
=> dn2id( "DC=SWISSCOM,DC=COM" )
=> ldbm_cache_open( "/usr/local/var/openldap-ldbm/dn2id.dbb", 7, 600 )
<= ldbm_cache_open (cache 0)
<= dn2id NOID
send_ldap_result 0::
ber_flush: 14 bytes to sd 5
         0 0c 02 01 01  a 07 0a 01 00 04 00 04 00 
conn=0 op=0 RESULT err=0 tag=97 nentries=0
listening for connections on 3, activity on: 5r
before select active_threads 0
select activity on 1 descriptors
activity on: 5r
read activity on 5
ber_get_next
ber_get_next: tag 0x30 len 367 contents:
ber_dump: buf 0x9c490, ptr 0x9c490, end 0x9c5ff
          current len 367, contents:
        02 01 02  h 82 01  h 04 1b  u  i  d  =  6  0  ,
        20  d  c  =  s  w  i  s  s  c  o  m  , 20  d  c
         =  c  o  m  0 82 01  G  0 0b 04 03  u  i  d  1
        04 04 02  6  0  0 13 04 02  c  n  1 0d 04 0b  K
         e  r  n 20  L  o  r  e  n  z  0 0c 04 02  s  n
         1 06 04 04  K  e  r  n  0 0b 04 01  l  1 06 04
        04  B  e  r  n  0 0a 04 02  s  t  1 04 04 02  B
         E  0 09 04 01  c  1 04 04 02  C  H  0 0e 04 02
         o  u  1 08 04 06  P  r  i  v  a  t  0 14 04 0a
         p  o  s  t  a  l  C  o  d  e  1 06 04 04  3  0
         1  1  0  % 04 0d  p  o  s  t  a  l  A  d  d  r
         e  s  s  1 14 04 12  M  \  3  7  4  n  s  t  e
         r  g  a  s  s  e 20  4  2  0 20 04 0f  t  e  l
         e  p  h  o  n  e  N  u  m  b  e  r  1 0d 04 0b
         0  3  1  -  9  3  4  2  9  1  8  0  ) 04 18  f
         a  c  s  i  m  i  l  e  T  e  l  e  p  h  o  n
         e  N  u  m  b  e  r  1 0d 04 0b  0  3  1  -  3
         4  2  9  9  0  3  0 0f 04 05  t  i  t  l  e  1
        06 04 04  H  e  r  r  0  F 04 0b  o  b  j  e  c
         t  c  l  a  s  s  1  7 04 03  t  o  p 04 06  p
         e  r  s  o  n 04 07  c  o  u  n  t  r  y 04 14
         o  r  g  a  n  i  z  a  t  i  o  n  a  l  P  e
         r  s  o  n 04 09  u  i  d  o  b  j  e  c  t 
do_add
    do_add: ndn (UID=60,DC=SWISSCOM,DC=COM)
conn=0 op=1 ADD dn="UID=60,DC=SWISSCOM,DC=COM"
==> ldbm_back_add: uid=60, dc=swisscom, dc=com
=> dn2id( "UID=60,DC=SWISSCOM,DC=COM" )
=> ldbm_cache_open( "/usr/local/var/openldap-ldbm/dn2id.dbb", 7, 600 )
<= ldbm_cache_open (cache 0)
<= dn2id NOID
dn2entry_w: dn: "DC=SWISSCOM,DC=COM"
=> dn2id( "DC=SWISSCOM,DC=COM" )
=> ldbm_cache_open( "/usr/local/var/openldap-ldbm/dn2id.dbb", 7, 600 )
<= ldbm_cache_open (cache 0)
<= dn2id NOID
parent does not exist
send_ldap_result 32::
ber_flush: 14 bytes to sd 5
         0 0c 02 01 02  i 07 0a 01 20 04 00 04 00 
conn=0 op=1 RESULT err=32 tag=105 nentries=0
listening for connections on 3, activity on: 5r
before select active_threads 0
select activity on 1 descriptors
activity on: 5r
read activity on 5
ber_get_next
ber_get_next: tag 0x30 len 5 contents:
ber_dump: buf 0x9c770, ptr 0x9c770, end 0x9c775
          current len 5, contents:
        02 01 03  B 00 
do_unbind
conn=0 op=2 UNBIND
conn=0 op=2 fd=5 closed errno=0
listening for connections on 3, activity on:
before select active_threads 1

-----

I appreciate any help! Thanks in advance!
Greetings

Andreas Marx, OSI-LAB