[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
ldapadd returns with message "No such object" (ITS#1569)
Full_Name: Tim Murphrey
Version: 2.0.21
OS: solaris 2.8
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (12.40.14.101)
Following the man pages for ldapadd I created a file in
/tmp call newentry with the following in it:
dn: cn=Ann Jones, o=XYZ, c=US
objectClass: person
cn: Ann Jones
cn: Annie Jones
sn: Jones
title: Director of Research and Development
mail: ajones@londonrd.xyz.us.com
uid: ajones
Then I ran ldapadd -f /tmp/newentry
and saw the following:
adding new entry "cn=Ann Jones, o=XYZ, c=US"
ldap_add: No such object
ldif_record() = 32
I had slapd running in debug mode and upon running
ldapadd saw the following:
daemon: activity on 1 descriptors
daemon: new connection on 7
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=1
connection_read(7): checking for input on id=1
ber_get_next
ldap_read: want=1, got=1
0000: 30 0
ldap_read: want=1, got=1
0000: 0c .
ldap_read: want=12, got=12
0000: 02 01 01 60 07 02 01 03 04 00 80 00 ...`........
ber_get_next: tag 0x30 len 12 contents:
ber_dump: buf=0x00181848 ptr=0x00181848 end=0x00181854 len=12
0000: 02 01 01 60 07 02 01 03 04 00 80 00 ...`........
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=0x00181848 ptr=0x0018184b end=0x00181854 len=9
0000: 60 07 02 01 03 04 00 80 00 `........
ber_scanf fmt (o}) ber:
ber_dump: buf=0x00181848 ptr=0x00181852 end=0x00181854 len=2
0000: 80 00
do_bind: version=3 dn="" method=128
send_ldap_result: conn=1 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........
do_bind: v3 anonymous bind
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=1
connection_read(7): checking for input on id=1
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: d4 .
ldap_read: want=212, got=212
0000: 02 01 02 68 81 ce 04 19 63 6e 3d 41 6e 6e 20 4a ...h....cn=Ann J
0010: 6f 6e 65 73 2c 20 6f 3d 58 59 5a 2c 20 63 3d 55 ones, o=XYZ, c=U
0020: 53 30 81 b0 30 17 04 0b 6f 62 6a 65 63 74 43 6c S0.°0...objectCl
0030: 61 73 73 31 08 04 06 70 65 72 73 6f 6e 30 1e 04 ass1...person0..
0040: 02 63 6e 31 18 04 09 41 6e 6e 20 4a 6f 6e 65 73 .cn1...Ann Jones
0050: 04 0b 41 6e 6e 69 65 20 4a 6f 6e 65 73 30 0d 04 ..Annie Jones0..
0060: 02 73 6e 31 07 04 05 4a 6f 6e 65 73 30 2f 04 05 .sn1...Jones0/..
0070: 74 69 74 6c 65 31 26 04 24 44 69 72 65 63 74 6f title1&.$Directo
0080: 72 20 6f 66 20 52 65 73 65 61 72 63 68 20 61 6e r of Research an
0090: 64 20 44 65 76 65 6c 6f 70 6d 65 6e 74 30 24 04 d Development0$.
00a0: 04 6d 61 69 6c 31 1c 04 1a 61 6a 6f 6e 65 73 40 .mail1...ajones@
00b0: 6c 6f 6e 64 6f 6e 72 64 2e 78 79 7a 2e 75 73 2e londonrd.xyz.us.
00c0: 63 6f 6d 30 0f 04 03 75 69 64 31 08 04 06 61 6a com0...uid1...aj
00d0: 6f 6e 65 73 ones
ber_get_next: tag 0x30 len 212 contents:
ber_dump: buf=0x00174538 ptr=0x00174538 end=0x0017460c len=212
0000: 02 01 02 68 81 ce 04 19 63 6e 3d 41 6e 6e 20 4a ...h....cn=Ann J
0010: 6f 6e 65 73 2c 20 6f 3d 58 59 5a 2c 20 63 3d 55 ones, o=XYZ, c=U
0020: 53 30 81 b0 30 17 04 0b 6f 62 6a 65 63 74 43 6c S0.°0...objectCl
0030: 61 73 73 31 08 04 06 70 65 72 73 6f 6e 30 1e 04 ass1...person0..
0040: 02 63 6e 31 18 04 09 41 6e 6e 20 4a 6f 6e 65 73 .cn1...Ann Jones
0050: 04 0b 41 6e 6e 69 65 20 4a 6f 6e 65 73 30 0d 04 ..Annie Jones0..
0060: 02 73 6e 31 07 04 05 4a 6f 6e 65 73 30 2f 04 05 .sn1...Jones0/..
0070: 74 69 74 6c 65 31 26 04 24 44 69 72 65 63 74 6f title1&.$Directo
0080: 72 20 6f 66 20 52 65 73 65 61 72 63 68 20 61 6e r of Research an
0090: 64 20 44 65 76 65 6c 6f 70 6d 65 6e 74 30 24 04 d Development0$.
00a0: 04 6d 61 69 6c 31 1c 04 1a 61 6a 6f 6e 65 73 40 .mail1...ajones@
00b0: 6c 6f 6e 64 6f 6e 72 64 2e 78 79 7a 2e 75 73 2e londonrd.xyz.us.
00c0: 63 6f 6d 30 0f 04 03 75 69 64 31 08 04 06 61 6a com0...uid1...aj
00d0: 6f 6e 65 73 ones
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=0x00174538 ptr=0x0017453b end=0x0017460c len=209
0000: 68 81 ce 04 19 63 6e 3d 41 6e 6e 20 4a 6f 6e 65 h....cn=Ann Jone
0010: 73 2c 20 6f 3d 58 59 5a 2c 20 63 3d 55 53 30 81 s, o=XYZ, c=US0.
0020: b0 30 17 04 0b 6f 62 6a 65 63 74 43 6c 61 73 73 °0...objectClass
0030: 31 08 04 06 70 65 72 73 6f 6e 30 1e 04 02 63 6e 1...person0...cn
0040: 31 18 04 09 41 6e 6e 20 4a 6f 6e 65 73 04 0b 41 1...Ann Jones..A
0050: 6e 6e 69 65 20 4a 6f 6e 65 73 30 0d 04 02 73 6e nnie Jones0...sn
0060: 31 07 04 05 4a 6f 6e 65 73 30 2f 04 05 74 69 74 1...Jones0/..tit
0070: 6c 65 31 26 04 24 44 69 72 65 63 74 6f 72 20 6f le1&.$Director o
0080: 66 20 52 65 73 65 61 72 63 68 20 61 6e 64 20 44 f Research and D
0090: 65 76 65 6c 6f 70 6d 65 6e 74 30 24 04 04 6d 61 evelopment0$..ma
00a0: 69 6c 31 1c 04 1a 61 6a 6f 6e 65 73 40 6c 6f 6e il1...ajones@lon
00b0: 64 6f 6e 72 64 2e 78 79 7a 2e 75 73 2e 63 6f 6d donrd.xyz.us.com
00c0: 30 0f 04 03 75 69 64 31 08 04 06 61 6a 6f 6e 65 0...uid1...ajone
00d0: 73 s
do_add: ndn (CN=ANN JONES,O=XYZ,C=US)
ber_scanf fmt ({a{V}}) ber:
ber_dump: buf=0x00174538 ptr=0x0017455c end=0x0017460c len=176
0000: 30 17 04 0b 6f 62 6a 65 63 74 43 6c 61 73 73 31 0...objectClass1
0010: 08 04 06 70 65 72 73 6f 6e 30 1e 04 02 63 6e 31 ...person0...cn1
0020: 18 04 09 41 6e 6e 20 4a 6f 6e 65 73 04 0b 41 6e ...Ann Jones..An
0030: 6e 69 65 20 4a 6f 6e 65 73 30 0d 04 02 73 6e 31 nie Jones0...sn1
0040: 07 04 05 4a 6f 6e 65 73 30 2f 04 05 74 69 74 6c ...Jones0/..titl
0050: 65 31 26 04 24 44 69 72 65 63 74 6f 72 20 6f 66 e1&.$Director of
0060: 20 52 65 73 65 61 72 63 68 20 61 6e 64 20 44 65 Research and De
0070: 76 65 6c 6f 70 6d 65 6e 74 30 24 04 04 6d 61 69 velopment0$..mai
0080: 6c 31 1c 04 1a 61 6a 6f 6e 65 73 40 6c 6f 6e 64 l1...ajones@lond
0090: 6f 6e 72 64 2e 78 79 7a 2e 75 73 2e 63 6f 6d 30 onrd.xyz.us.com0
00a0: 0f 04 03 75 69 64 31 08 04 06 61 6a 6f 6e 65 73 ...uid1...ajones
ber_scanf fmt ({a{V}}) ber:
ber_dump: buf=0x00174538 ptr=0x00174575 end=0x0017460c len=151
0000: 30 1e 04 02 63 6e 31 18 04 09 41 6e 6e 20 4a 6f 0...cn1...Ann Jo
0010: 6e 65 73 04 0b 41 6e 6e 69 65 20 4a 6f 6e 65 73 nes..Annie Jones
0020: 30 0d 04 02 73 6e 31 07 04 05 4a 6f 6e 65 73 30 0...sn1...Jones0
0030: 2f 04 05 74 69 74 6c 65 31 26 04 24 44 69 72 65 /..title1&.$Dire
0040: 63 74 6f 72 20 6f 66 20 52 65 73 65 61 72 63 68 ctor of Research
0050: 20 61 6e 64 20 44 65 76 65 6c 6f 70 6d 65 6e 74 and Development
0060: 30 24 04 04 6d 61 69 6c 31 1c 04 1a 61 6a 6f 6e 0$..mail1...ajon
0070: 65 73 40 6c 6f 6e 64 6f 6e 72 64 2e 78 79 7a 2e es@londonrd.xyz.
0080: 75 73 2e 63 6f 6d 30 0f 04 03 75 69 64 31 08 04 us.com0...uid1..
0090: 06 61 6a 6f 6e 65 73 .ajones
ber_scanf fmt ({a{V}}) ber:
ber_dump: buf=0x00174538 ptr=0x00174595 end=0x0017460c len=119
0000: 30 0d 04 02 73 6e 31 07 04 05 4a 6f 6e 65 73 30 0...sn1...Jones0
0010: 2f 04 05 74 69 74 6c 65 31 26 04 24 44 69 72 65 /..title1&.$Dire
0020: 63 74 6f 72 20 6f 66 20 52 65 73 65 61 72 63 68 ctor of Research
0030: 20 61 6e 64 20 44 65 76 65 6c 6f 70 6d 65 6e 74 and Development
0040: 30 24 04 04 6d 61 69 6c 31 1c 04 1a 61 6a 6f 6e 0$..mail1...ajon
0050: 65 73 40 6c 6f 6e 64 6f 6e 72 64 2e 78 79 7a 2e es@londonrd.xyz.
0060: 75 73 2e 63 6f 6d 30 0f 04 03 75 69 64 31 08 04 us.com0...uid1..
0070: 06 61 6a 6f 6e 65 73 .ajones
ber_scanf fmt ({a{V}}) ber:
ber_dump: buf=0x00174538 ptr=0x001745a4 end=0x0017460c len=104
0000: 30 2f 04 05 74 69 74 6c 65 31 26 04 24 44 69 72 0/..title1&.$Dir
0010: 65 63 74 6f 72 20 6f 66 20 52 65 73 65 61 72 63 ector of Researc
0020: 68 20 61 6e 64 20 44 65 76 65 6c 6f 70 6d 65 6e h and Developmen
0030: 74 30 24 04 04 6d 61 69 6c 31 1c 04 1a 61 6a 6f t0$..mail1...ajo
0040: 6e 65 73 40 6c 6f 6e 64 6f 6e 72 64 2e 78 79 7a nes@londonrd.xyz
0050: 2e 75 73 2e 63 6f 6d 30 0f 04 03 75 69 64 31 08 .us.com0...uid1.
0060: 04 06 61 6a 6f 6e 65 73 ..ajones
ber_scanf fmt ({a{V}}) ber:
ber_dump: buf=0x00174538 ptr=0x001745d5 end=0x0017460c len=55
0000: 30 24 04 04 6d 61 69 6c 31 1c 04 1a 61 6a 6f 6e 0$..mail1...ajon
0010: 65 73 40 6c 6f 6e 64 6f 6e 72 64 2e 78 79 7a 2e es@londonrd.xyz.
0020: 75 73 2e 63 6f 6d 30 0f 04 03 75 69 64 31 08 04 us.com0...uid1..
0030: 06 61 6a 6f 6e 65 73 .ajones
ber_scanf fmt ({a{V}}) ber:
ber_dump: buf=0x00174538 ptr=0x001745fb end=0x0017460c len=17
0000: 30 0f 04 03 75 69 64 31 08 04 06 61 6a 6f 6e 65 0...uid1...ajone
0010: 73 s
ber_scanf fmt (}) ber:
ber_dump: buf=0x00174538 ptr=0x0017460c end=0x0017460c len=0
send_ldap_result: conn=1 op=1 p=3
send_ldap_result: 10::
send_ldap_response: msgid=2 tag=105 err=32
ber_flush: 14 bytes to sd 7
0000: 30 0c 02 01 02 69 07 0a 01 20 04 00 04 00 0....i... ....
ldap_write: want=14, written=14
0000: 30 0c 02 01 02 69 07 0a 01 20 04 00 04 00 0....i... ....
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=1
connection_read(7): checking for input on id=1
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 03 42 00 ...B.
ber_get_next: tag 0x30 len 5 contents:
ber_dump: buf=0x00174160 ptr=0x00174160 end=0x00174165 len=5
0000: 02 01 03 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=1, closing.
connection_closing: readying conn=1 sd=7 for close
connection_close: deferring conn=1 sd=7
do_unbind
connection_resched: attempting closing conn=1 sd=7
connection_close: conn=1 sd=7
daemon: removing 7
daemon: select: listen=6 active_threads=1 tvp=NULL
daemon: activity on 1 descriptors
daemon: select: listen=6 active_threads=1 tvp=NULL
Hope you can give me some insight on this.
thanks
tim murphrey