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

Re: No such object (32) ..., again

I don't know if you have gotten this answer before, if so I apologize.

Have you created the dc=mydomain and dc=com objects?

if not, you should create them *before* adding entries as children to
those objects.

dn: dc=com
objectclass: dcObject
dc: com

dn: dc=mydomain, dc=com
objectclass: dcObject
dc: mydomain



On Wednesday, November 20, 2002, at 12:09  PM, Eigil Hysvær wrote:

Hello - it's the "No such object (32)" again. I know it must
be frustrating to answer the same question over and over again,
but none of the answers available helped me to get to the solution....

I'm unable to add entries. Can someone please help me?
(I've spent 2 days on it now, testing and tweaking,
reading man pages, FAQ's and OpenLDAP 2.1 Administrator's Guide.)

Note 1: "make tests" was successfull. So was the installation.
2: /usr/local/var/openldap-data exists and is accessible by 'root'.
3: ldap.conf has no entries (if that makes any difference).
4: OpenLDAP was made to support strong encryption (so was BDB).

Here's what I got:

Running as superuser (root)
prompt>/usr/local/bin/ldapadd -x -w secret -D "cn=root,dc=mydomain,dc=com" -v < ldap-person
adding new entry "cn=Barbara Jensen,dc=mydomain,dc=com"
ldapadd: update failed:cn=Barbara Jensen,dc=mydomain,dc=com
ldap_add: No such object (32)

Content of slapd.conf:
# $OpenLDAP: pkg/ldap/servers/slapd/slapd.conf,v 2002/10/17 15:06:27 kurt Exp $
include /usr/local/etc/openldap/schema/core.schema
pidfile /usr/local/var/slapd.pid
argsfile /usr/local/var/slapd.args
database bdb
suffix "dc=mydomain,dc=com"
rootdn "cn=root,dc=mydomain,dc=com"
rootpw secret
directory /usr/local/var/openldap-data
index objectClass eq

Content of ./ldap-person:
dn: cn=Barbara Jensen,dc=mydomain,dc=com
objectClass: person
cn: Barbara Jensen
sn: Jensen

Content of /usr/local/etc/openldap/schema/core.schema (the 'person' objectclass)
objectclass ( NAME 'person'
DESC 'RFC2256: a person'
MUST ( sn $ cn )
MAY ( userPassword $ telephoneNumber $ seeAlso $ description ) )

Thanks, Eigil

pgp fingerprint: BC64 2E7A CAEF 39E1 9544  80CA F7D5 784D FB46 16C1