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

Error: LDAPException: No Such Object (32) No Such Object






Hi

I am a newbie to LDAP. I am using Java API for adding new entries.

slapd.conf has the following
=============================================================
include         /user2/bmssppt/rmaddi/LDAP/etc/openldap/schema/core.schema
include
/user2/bmssppt/rmaddi/LDAP/etc/openldap/schema/cosine.schema
include
/user2/bmssppt/rmaddi/LDAP/etc/openldap/schema/inetorgperson.schema
.....
.....
database        bdb
suffix                 "dc=example,dc=com"
rootdn              "cn=Manager,dc=example,dc=com"
rootpw             secret
directory         /user2/bmssppt/rmaddi/LDAP/var/openldap-data
index               objectClass     eq
=============================================================

ldap.conf has the following
===========================================
HOST 127.0.0.1
BASE dc=example,dc=com
===========================================

The code snippet is as below (From AddEntry.java)
======================================================================
        attributeSet.add( new LDAPAttribute( "cn",                   new
String("JSmith")));
        attributeSet.add( new LDAPAttribute( "objectclass", new
String("person")));
        attributeSet.add( new LDAPAttribute( "sn",                   new
String("Smith")));

        String  dn  = "cn=JSmith,dc=example,dc=com";             // Any
wrong in this statement ?
        LDAPEntry newEntry = new LDAPEntry( dn, attributeSet );
        .....
        ... Connecting and Binding ....
        .....
        lc.add( newEntry );
=======================================================================

I am getting the following error
====================================================
Error:  LDAPException: No Such Object (32) No Such Object
LDAPException: Matched DN:
====================================================

Any help is highly appreciated.

Thanks
RajaGopal Maddi.

***********************  FSS-Unclassified   ***********************
"DISCLAIMER: This message is proprietary to Flextronics Software Systems
Limited (FSS) and is intended solely for the use of the
individual to whom it is addressed. It may contain  privileged or
confidential information and should not be circulated or used for
any purpose other than for what it is intended. If you have received this
message in  error, please notify the originator immediately.
If you are not the intended recipient, you are notified that you are
strictly  prohibited  from  using, copying, altering, or disclosing
the contents of this message.  FSS  accepts no  responsibility  for loss or
damage arising from the use of  the information transmitted
by this email including damage from virus."