(Answer) (Category) OpenLDAP Faq-O-Matic : (Category) Trash : (Answer) No Such Object
Hi,
I use openldap on Suse linux 7.1
I had modifyed 'slapd.conf', 'ldap.conf'
I had stopped slapd, convert my ldif file with :
ldapadd -x -D "cn=Manager,dc=aarau,dc=digitron,dc=ch" -W -f /ldap/entries.ldif
and finally restarted slapd.

I get the message "no such object"
Anyone could help me please.

Thanks

#######################################################################
sldap.conf
#######################################################################

# $OpenLDAP: pkg/ldap/servers/slapd/slapd.conf,v 1.8.8.4 2000/08/26 17:06:18 kurt Exp $
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include         /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         /var/run/slapd.pid
argsfile        /var/run/slapd.args

# Load dynamic backend modules:
# modulepath    /usr/lib/openldap/openldap
# moduleload    back_ldap.la
# moduleload    back_ldbm.la
# moduleload    back_passwd.la
# moduleload    back_shell.la

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

database        ldbm
suffix          "dc=aarau, dc=digitron, dc=ch"
#suffix         "o=Software, c=ch"
rootdn          "cn=Manager, dc=aarau, dc=digitron, dc=ch"
#rootdn         "cn=Manager, o=Software, c=ch"
# 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 accessable by the slapd/tools. Mode 700 recommended.
directory       /var/lib/ldap
# Indices to maintain
index   objectClass     eq

#######################################################################
my ldif file entries.ldif
#######################################################################
dn: dc=aarau,dc=digitron,dc=ch
objectclass: dcObject
objectclass: organization
o: Software
dc: aarau.digitron.ch

dn: cn=Manager,dc=aarau,dc=digitron,dc=ch
objectclass: organizationalRole
cn: Manager
oliver.kyburz@swisslog.com
[Append to This Answer]
This document is: http://www.openldap.org/faq/index.cgi?file=559
[Search] [Appearance]
This is a Faq-O-Matic 2.721.test.
© Copyright 1998-2013, OpenLDAP Foundation, info@OpenLDAP.org