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

ldap_add_s: No such object (when adding more than an organization entry)



Hi,

i use openldap-2.0.7 and BerkleyDB3.2 with the config below, and it is not
possible 
to add more entries than the organization. 

i always get: 
adding new entry o=dev.nextra, c=AT
 
adding new entry cn=Manager, o=dev.nextra.at, c=AT
ldap_add_s: No such object

slapadd says: slap_init no backend for "o=nextra.at, c=AT"
though i can find the added organization data in the id2entry.dbb file.

maybe i am to stupid, but i find no workaround or solutions for this
problem.
would be fine if you have any ideas.

thanks in advance
-andreas zoettl




#####################################
added ldif file format
#####################################
dn: o=dev.nextra, c=AT
o: dev.nextra
l: Vienna
streetaddress: kirchbergasse 33
postalCode: 1070
telephonenumber: 43-1-52533
objectclass: organization
description: nextra development ldap server
 
dn: cn=Manager, o=dev.nextra.at, c=AT
cn: Manager
sn: Manager
objectclass: person
 
dn: ou=radius, o=dev.nextra.at, c=AT
ou: radius
objectclass: top
objectclass: organizationalUnit     
#####################################
slap.conf
#########
include         /usr/local/etc/openldap/schema/core.schema
 
#referral       ldap://allinone.nextra.at
 
pidfile         /usr/local/var/slapd.pid
argsfile        /usr/local/var/slapd.args
 
# Load dynamic backend modules:
# modulepath    /usr/local/libexec/openldap
# moduleload    back_ldap.la
# moduleload    back_ldbm.la
# moduleload    back_passwd.la
# moduleload    back_shell.la
 
 
database        ldbm
suffix          "o=dev.nextra, c=AT"
rootdn          "cn=Manager, o=dev.nextra, c=AT"
rootpw          test


directory       /usr/local/var/openldap-ldbm
index   objectClass     eq  
#########
#
# detailed debugging info
#
daemon: new connection on 7
daemon: conn=58 fd=7 connection from IP=127.0.0.1:44961 (IP=:: 389)
accepted.
daemon: added 7r
daemon: activity on:
daemon: select: listen=6 active_threads=0 tvp=NULL
daemon: activity on 1 descriptors
daemon: activity on: 7r
daemon: read activity on 7
connection_get(7)
connection_get(7): got connid=58
connection_read(7): checking for input on id=58
ber_get_next
ldap_read: want=1, got=1
  0000:  30                                                 0
ldap_read: want=1, got=1
  0000:  2e                                                 .
ldap_read: want=46, got=46
  0000:  02 01 01 60 29 02 01 03  04 1e 63 6e 3d 4d 61 6e   ...`).....cn=Man
  0010:  61 67 65 72 2c 20 6f 3d  64 65 76 2e 6e 65 78 74   ager, o=dev.next
  0020:  72 61 2c 20 63 3d 41 54  80 04 66 75 63 6b         ra, c=AT..test
ber_get_next: tag 0x30 len 46 contents:
ber_dump: buf=0x00173a60 ptr=0x00173a60 end=0x00173a8e len=46
  0000:  02 01 01 60 29 02 01 03  04 1e 63 6e 3d 4d 61 6e   ...`).....cn=Man
  0010:  61 67 65 72 2c 20 6f 3d  64 65 76 2e 6e 65 78 74   ager, o=dev.next
  0020:  72 61 2c 20 63 3d 41 54  80 04 66 75 63 6b         ra, c=AT..test
ber_get_next
ldap_read: want=1 error=Resource temporarily unavailable
ber_get_next on fd 7 failed errno=11 (Resource temporarily unavailable)
do_bind
ber_scanf fmt ({iat) ber:
ber_dump: buf=0x00173a60 ptr=0x00173a63 end=0x00173a8e len=43
  0000:  60 29 02 01 03 04 1e 63  6e 3d 4d 61 6e 61 67 65   `).....cn=Manage
  0010:  72 2c 20 6f 3d 64 65 76  2e 6e 65 78 74 72 61 2c   r, o=dev.nextra,
  0020:  20 63 3d 41 54 80 04 66  75 63 6b                   c=AT..test
ber_scanf fmt (o}) ber:
ber_dump: buf=0x00173a60 ptr=0x00173a88 end=0x00173a8e len=6
  0000:  80 04 66 75 63 6b                                  ..test
do_bind: version=3 dn="cn=Manager, o=dev.nextra, c=AT" method=128
conn=58 op=0 BIND dn="CN=MANAGER,O=DEV.NEXTRA,C=AT" method=128
==> ldbm_back_bind: dn: cn=Manager, o=dev.nextra, c=AT
dn2entry_r: dn: "CN=MANAGER,O=DEV.NEXTRA,C=AT"
=> dn2id( "CN=MANAGER,O=DEV.NEXTRA,C=AT" )
=> ldbm_cache_open( "/usr/local/var/openldap-ldbm/dn2id.dbb", 73, 600 )
<= ldbm_cache_open (cache 0)
<= dn2id NOID
dn2entry_r: dn: "O=DEV.NEXTRA,C=AT"
=> dn2id( "O=DEV.NEXTRA,C=AT" )
=> ldbm_cache_open( "/usr/local/var/openldap-ldbm/dn2id.dbb", 73, 600 )
<= ldbm_cache_open (cache 0)
<= dn2id NOID
do_bind: v3 bind: "cn=Manager, o=dev.nextra, c=AT" to "cn=Manager,
o=dev.nextra, c=AT"
send_ldap_result: conn=58 op=0 p=3
send_ldap_result: 0::
send_ldap_response: msgid=1 tag=97 err=0
ber_flush: 14 bytes to sd 7
  0000:  30 0c 02 01 01 61 07 0a  01 00 04 00 04 00         0....a........
ldap_write: want=14, written=14
  0000:  30 0c 02 01 01 61 07 0a  01 00 04 00 04 00         0....a........
conn=58 op=0 RESULT tag=97 err=0 text=
daemon: select: listen=6 active_threads=1 tvp=NULL
daemon: activity on 1 descriptors
daemon: activity on: 7r
daemon: read activity on 7
connection_get(7)
connection_get(7): got connid=58
connection_read(7): checking for input on id=58
ber_get_next
ldap_read: want=1, got=1
  0000:  30                                                 0
ldap_read: want=1, got=1
  0000:  81                                                 .
ldap_read: want=1, got=1
  0000:  eb                                                 .
ldap_read: want=235, got=235
  0000:  02 01 02 68 81 e5 04 12  6f 3d 64 65 76 2e 6e 65   ...h.a..o=dev.ne
  0010:  78 74 72 61 2c 20 63 3d  41 54 30 81 ce 30 11 04   xtra, c=AT0..0..
  0020:  01 6f 31 0c 04 0a 64 65  76 2e 6e 65 78 74 72 61   .o1...dev.nextra
  0030:  30 0d 04 01 6c 31 08 04  06 56 69 65 6e 6e 61 30   0...l1...Vienna0
  0040:  23 04 0d 73 74 72 65 65  74 61 64 64 72 65 73 73   #..streetaddress
  0050:  31 12 04 10 6b 69 72 63  68 62 65 72 67 61 73 73   1...kirchbergass
  0060:  65 20 33 33 30 14 04 0a  70 6f 73 74 61 6c 43 6f   e 330...postalCo
  0070:  64 65 31 06 04 04 31 30  37 30 30 1f 04 0f 74 65   de1...10700...te
  0080:  6c 65 70 68 6f 6e 65 6e  75 6d 62 65 72 31 0c 04   lephonenumber1..
  0090:  0a 34 33 2d 31 2d 35 32  35 33 33 30 1d 04 0b 6f   .43-1-525330...o
  00a0:  62 6a 65 63 74 63 6c 61  73 73 31 0e 04 0c 6f 72   bjectclass1...or
  00b0:  67 61 6e 69 7a 61 74 69  6f 6e 30 2f 04 0b 64 65   ganization0/..de
  00c0:  73 63 72 69 70 74 69 6f  6e 31 20 04 1e 6e 65 78   scription1 ..nex
  00d0:  74 72 61 20 64 65 76 65  6c 6f 70 6d 65 6e 74 20   tra development
  00e0:  6c 64 61 70 20 73 65 72  76 65 72                  ldap server
ber_get_next: tag 0x30 len 235 contents:
ber_dump: buf=0x00174af8 ptr=0x00174af8 end=0x00174be3 len=235
  0000:  02 01 02 68 81 e5 04 12  6f 3d 64 65 76 2e 6e 65   ...h.a..o=dev.ne
  0010:  78 74 72 61 2c 20 63 3d  41 54 30 81 ce 30 11 04   xtra, c=AT0..0..
  0020:  01 6f 31 0c 04 0a 64 65  76 2e 6e 65 78 74 72 61   .o1...dev.nextra
  0030:  30 0d 04 01 6c 31 08 04  06 56 69 65 6e 6e 61 30   0...l1...Vienna0
  0040:  23 04 0d 73 74 72 65 65  74 61 64 64 72 65 73 73   #..streetaddress
  0050:  31 12 04 10 6b 69 72 63  68 62 65 72 67 61 73 73   1...kirchbergass
  0060:  65 20 33 33 30 14 04 0a  70 6f 73 74 61 6c 43 6f   e 330...postalCo
  0070:  64 65 31 06 04 04 31 30  37 30 30 1f 04 0f 74 65   de1...10700...te
  0080:  6c 65 70 68 6f 6e 65 6e  75 6d 62 65 72 31 0c 04   lephonenumber1..
  0090:  0a 34 33 2d 31 2d 35 32  35 33 33 30 1d 04 0b 6f   .43-1-525330...o
  00a0:  62 6a 65 63 74 63 6c 61  73 73 31 0e 04 0c 6f 72   bjectclass1...or
  00b0:  67 61 6e 69 7a 61 74 69  6f 6e 30 2f 04 0b 64 65   ganization0/..de
  00c0:  73 63 72 69 70 74 69 6f  6e 31 20 04 1e 6e 65 78   scription1 ..nex
  00d0:  74 72 61 20 64 65 76 65  6c 6f 70 6d 65 6e 74 20   tra development
  00e0:  6c 64 61 70 20 73 65 72  76 65 72                  ldap server
ber_get_next
ldap_read: want=1 error=Resource temporarily unavailable
ber_get_next on fd 7 failed errno=11 (Resource temporarily unavailable)
do_add
ber_scanf fmt ({a) ber:
ber_dump: buf=0x00174af8 ptr=0x00174afb end=0x00174be3 len=232
  0000:  68 81 e5 04 12 6f 3d 64  65 76 2e 6e 65 78 74 72   h.a..o=dev.nextr
  0010:  61 2c 20 63 3d 41 54 30  81 ce 30 11 04 01 6f 31   a, c=AT0..0...o1
  0020:  0c 04 0a 64 65 76 2e 6e  65 78 74 72 61 30 0d 04   ...dev.nextra0..
  0030:  01 6c 31 08 04 06 56 69  65 6e 6e 61 30 23 04 0d   .l1...Vienna0#..
  0040:  73 74 72 65 65 74 61 64  64 72 65 73 73 31 12 04   streetaddress1..
  0050:  10 6b 69 72 63 68 62 65  72 67 61 73 73 65 20 33   .kirchbergasse 3
  0060:  33 30 14 04 0a 70 6f 73  74 61 6c 43 6f 64 65 31   30...postalCode1
  0070:  06 04 04 31 30 37 30 30  1f 04 0f 74 65 6c 65 70   ...10700...telep
  0080:  68 6f 6e 65 6e 75 6d 62  65 72 31 0c 04 0a 34 33   honenumber1...43
  0090:  2d 31 2d 35 32 35 33 33  30 1d 04 0b 6f 62 6a 65   -1-525330...obje
  00a0:  63 74 63 6c 61 73 73 31  0e 04 0c 6f 72 67 61 6e   ctclass1...organ
  00b0:  69 7a 61 74 69 6f 6e 30  2f 04 0b 64 65 73 63 72   ization0/..descr
  00c0:  69 70 74 69 6f 6e 31 20  04 1e 6e 65 78 74 72 61   iption1 ..nextra
  00d0:  20 64 65 76 65 6c 6f 70  6d 65 6e 74 20 6c 64 61    development lda
  00e0:  70 20 73 65 72 76 65 72                            p server
do_add: ndn (O=DEV.NEXTRA,C=AT)
ber_scanf fmt ({a{V}}) ber:
ber_dump: buf=0x0010b978 ptr=0x0010b9b3 end=0x0010b9dd len=42
  0000:  30 0f 04 02 73 6e 31 09  04 07 4d 61 6e 61 67 65   0...sn1...Manage
  0010:  72 30 17 04 0b 6f 62 6a  65 63 74 63 6c 61 73 73   r0...objectclass
  0020:  31 08 04 06 70 65 72 73  6f 6e                     1...person
ber_scanf fmt ({a{V}}) ber:
ber_dump: buf=0x0010b978 ptr=0x0010b9c4 end=0x0010b9dd len=25
  0000:  30 17 04 0b 6f 62 6a 65  63 74 63 6c 61 73 73 31   0...objectclass1
  0010:  08 04 06 70 65 72 73 6f  6e                        ...person
ber_scanf fmt (}) ber:
ber_dump: buf=0x0010b978 ptr=0x0010b9dd end=0x0010b9dd len=0
 
conn=58 op=2 ADD dn="CN=MANAGER,O=DEV.NEXTRA.AT,C=AT"
send_ldap_result: conn=58 op=2 p=3
send_ldap_result: 10::
send_ldap_response: msgid=3 tag=105 err=32
ber_flush: 14 bytes to sd 7
  0000:  30 0c 02 01 03 69 07 0a  01 20 04 00 04 00         0....i... ....
ldap_write: want=14, written=14
  0000:  30 0c 02 01 03 69 07 0a  01 20 04 00 04 00         0....i... ....
conn=58 op=2 RESULT tag=105 err=32 text=
daemon: select: listen=6 active_threads=1 tvp=NULL
daemon: activity on 1 descriptors
daemon: activity on: 7r
daemon: read activity on 7
connection_get(7)
connection_get(7): got connid=58
connection_read(7): checking for input on id=58
ber_get_next
ldap_read: want=1, got=1
  0000:  30                                                 0
ldap_read: want=1, got=1
  0000:  05                                                 .
ldap_read: want=5, got=5
  0000:  02 01 04 42 00                                     ...B.
ber_get_next: tag 0x30 len 5 contents:
ber_dump: buf=0x0016ed20 ptr=0x0016ed20 end=0x0016ed25 len=5
  0000:  02 01 04 42 00                                     ...B.
ber_get_next
ldap_read: want=1, got=0
 
ber_get_next on fd 7 failed errno=0 (Error 0)
connection_read(7): input error=-2 id=58, closing.
connection_closing: readying conn=58 sd=7 for close
connection_close: deferring conn=58 sd=7
do_unbind
conn=58 op=3 UNBIND
connection_resched: attempting closing conn=58 sd=7
connection_close: conn=58 sd=7
daemon: removing 7
conn=-1 fd=7 closed
daemon: select: listen=6 active_threads=1 tvp=NULL
daemon: activity on 1 descriptors
daemon: select: listen=6 active_threads=1 tvp=NULL                    

--------------------------------------------
Andreas Zottl
System Services
Nextra Telekom GmbH http://www.nextra.at
Kirchberggasse 33 / A-1070 Vienna / Austria
Tel: +43/1/52533-826 / Fax: +43/1/52533-107
E-Mail: andreas.zoettl@nextra.com
see Disclaimer http://www.nextra.at/signatur/
--------------------------------------------