[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Can't add initial directory entries with 2.0.11 (ldap_add: No suc h object).
Hello!
I'm using RedHat Linux 7.1 and OpenLDAP 2.0.11, and I'm having trouble
creating initial entries in my directory. I built OpenLDAP from
source, and it passed all the tests. Here's what happens:
--->8---
bash-2.04$ ldapadd -x -D "cn=Manager,dc=ework,dc=com" -W -f ework.ldif
Enter LDAP Password:
"dding new entry "dc=ework,dc=com
ldap_add: No such object
ldif_record() = 32
--->8---
I've seen messages from other people who have had this trouble, but
upon scouring the list archives, I can't find any answer. I'm afraid
I'm too new to LDAP to figure out where I'm going wrong... any help
you could give me would be much appreciated. I'm eager to learn all
about OpenLDAP and LDAP in general. Below are my config files (I
followed the instructions in the documentation).
Thanks for you help in advance,
Zach
ework.ldif:
--->8---
# Organization for eWork
dn: dc=ework,dc=com
objectClass: dcObject
objectClass: organization
dc: ework
o: eWork
description: eWork
# Organizational Role for Directory Manager
dn: cn=Manager,dc=ework,dc=com
objectClass: organizationalRole
cn: Manager
description: Directory Manager
--->8---
slapd.conf:
--->8---
# $OpenLDAP: pkg/ldap/servers/slapd/slapd.conf,v 1.8.8.6 2001/04/20 23:32:43
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
#######################################################################
# ldbm database definitions
#######################################################################
database ldbm
suffix "dc=ework,dc=com"
#suffix "o=My Organization Name,c=US"
rootdn "cn=Manager,dc=ework,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
--->8---