Issue 1569 - ldapadd returns with message "No such object"
Summary: ldapadd returns with message "No such object"
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-01-30 14:46 UTC by tmurphrey@efficient.com
Modified: 2004-12-06 01:25 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description tmurphrey@efficient.com 2002-01-30 14:46:23 UTC
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

Comment 1 tmurphrey@efficient.com 2002-01-30 16:11:29 UTC
Also, here is the slapd.conf file:
# $OpenLDAP: pkg/ldap/servers/slapd/slapd.conf,v 1.8.8.7 2001/09/27 20:00:31
kurt Exp $
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include         /usr/local/etc/openldap/schema/core.schema

# Define global ACLs to disable default read access.

# Do not enable referrals until AFTER you have a working directory
# service AND an understanding of referrals.
#referral       ldap://root.openldap.org

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

#
# Sample Access Control
#       Allow read access of root DSE
#       Allow self write access
#       Allow authenticated users read access
#       Allow anonymous users to authenticate
#
#access to dn="" by * read
#access to *
#       by self write
#       by users read
#       by anonymous auth
#
# if no access controls are present, the default is:
#       Allow read by all
#
# rootdn can always write!

#######################################################################
# ldbm database definitions
#######################################################################

database        ldbm
suffix          "dc=my-domain,dc=com"
#suffix         "o=My Organization Name,c=US"
rootdn          "cn=Manager,dc=my-domain,dc=com"
#rootdn         "cn=Manager,o=My Organization Name,c=US"
# Cleartext passwords, especially for the rootdn, should
# be avoid.  See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpw          secret
# The database directory MUST exist prior to running slapd AND
# should only be accessible by the slapd/tools. Mode 700 recommended.
directory       /usr/local/var/openldap-ldbm
# Indices to maintain
index   objectClass     eq

tim

-----Original Message-----
From: openldap-its@OpenLDAP.org [mailto:openldap-its@OpenLDAP.org]
Sent: Wednesday, January 30, 2002 8:46 AM
To: tmurphrey@efficient.com
Subject: Re: ldapadd returns with message "No such object" (ITS#1569)



*** THIS IS AN AUTOMATICALLY GENERATED REPLY ***

Thanks for your report to openldap-its@OpenLDAP.org.  Your report
has been placed into our Issue Tracking System and has been assigned
the tracking number ITS#1569.

One of support engineers will look at your report in due course.
Note that this may take some time because our support engineers
are volunteers.  They only work on OpenLDAP when they have spare
time.
If you need to provide additional information in regards to your
issue report, you may do so by replying to this message.  Note that
any mail sent to openldap-its@openldap.org with (ITS#1569)
in the subject will automatically be attached to the issue report.

	mailto:openldap-its@openldap.org?subject=(ITS#1569)

You may follow the progress of this message by loading the following
URL in a web browser:
    http://www.OpenLDAP.org/its/index.cgi?findid=1569

Please remember to retain your issue tracking number (ITS#1569)
on any further messages you send to us regarding this message.  If
you don't then you'll just waste our time and yours because we
won't be able to properly track the message.

In our experience many people ask questions that have been asked
before.  We recommend that you review our online FAQ:
	http://www.OpenLDAP.org/faq/

and search archives of our many mailing lists (such as openldap-software
and openldap-bugs): 
	http://www.OpenLDAP.org/lists/#archives

--------------
Copyright 2002 The OpenLDAP Foundation, All Rights Reserved.

Comment 2 Kurt Zeilenga 2002-01-30 16:27:42 UTC
Please see the FAQ for common causes to such problems.
In particular, the following answer may be useful:
  http://www.openldap.org/faq/index.cgi?file=157

Kurt

Comment 3 Kurt Zeilenga 2002-02-02 17:28:37 UTC
changed state Open to Closed
Comment 4 Howard Chu 2004-12-06 01:25:01 UTC
moved from Incoming to Archive.Incoming