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

No Such Object




I searched and read through the listings for the "No Such Object" error, but I
can't seem to get mine running.

I was following the directions from the Quick start guide to OpenLDAP.

I installed OpenLDAP on my RedHat 6.0 Server and ran the tests and passed all 7
of them.

I logged on as myself, (not root) and did the:

su root -c /usr/local/libexec/slapd -f slapd.conf


<Contents of: slapd.conf>
<Resides in: /opt/lsap/clients/tools>


#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include        /usr/local/etc/openldap/slapd.at.conf
include        /usr/local/etc/openldap/slapd.oc.conf
schemacheck    off
#referral ldap://ldap.itd.umich.edu

pidfile        /usr/local/var/slapd.pid
argsfile  /usr/local/var/slapd.args

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

database  ldbm
suffix         "dc=bankamerica, dc=com"
#suffix        "o=baleasing, c=US"
directory /usr/tmp
rootdn         "cn=Manager, dc=bankamerica, dc=com"
#rootdn        "cn=Manager, o=baleasing, c=US"
rootpw             secret
# cleartext passwords, especially for the rootdn, should
# be avoid.  See slapd.conf(5) for details.



I did a ps -ef and it showed three lines stating that /usr/local/libexec/slapd
was running.

Next, I created an LDIF file under usr/local/libexec using the example:

<Contents of: first.ldif>
<Resides in: /opt/lsap/clients/tools>

dn: dc=bankamerica, dc=com
dc: baleasing
o: BankAmerica Leasing
objectclass: organization
objectclass: dcObject

dn: cn=Manager, dc=bankamerica, dc=com
cn: Manager
sn: Manager
objectclass: person


I figured out that I had to be logged in other than "root" for th slapd to
execute.

I cd over to /opt/ldap/clients/tools

When I run the command:

ldapadd -D "cn=Manager, dc=bankamerica, dc=com"

I get:

Enter LDAP password: (secret)
adding new entry dc=baleasing, dc=com
ldap_add: No Such Object

I assume that it did not work and therefore, I the ldapsearch won't either.

Hope you can help.

Leonard