[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
adding first entry
Hello!
I´ve installed OpenLDAP 2.0.7 and have some problems adding the
first entry. Here my configuration:
my slapd.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 /opt/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 /opt/local/var/slapd.pid
argsfile /opt/local/var/slapd.args
# Load dynamic backend modules:
# modulepath /opt/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=ecrc,dc=de"
rootdn "cn=admin,dc=ecrc,dc=de"
rootpw test
# The database directory MUST exist prior to running slapd AND
# should only be accessable by the slapd/tools. Mode 700 recommended.
directory /opt/local/var/openldap-ldbm
# Indices to maintain
#index pres, eq
index objectClass pres,eq
access to attr=userPassword
by self write
by anonymous auth
by dn="cn=admin,dc=ecrc,de=de" write
by * none
access to *
by * write
by dn="cn=admin,dc=ecrc,dc=de" write
my entries.ldif:
dn: dc=ecrc,dc=de
objectclass: dcObject
objectclass: organization
o: ERC GmbH
dc: de
dn: cn=admin,dc=ecrc,dc=de
objectclass: organizationalRole
cn: admin
my ldapadd call:
ldapadd -x -v -D "cn=admin,dc=ecrc,de=de" -W -f entries.ldif
and here what I get:
root@alba[64]bin# ldapadd -x -v -D "cn=admin,dc=ecrc,de=de" -W -f
entries.ldif
ldap_initialize( <DEFAULT> )
Enter LDAP Password:
ldap_bind: Invalid credentials
as password I give him: test
and here what I get executing ldapsearch:
ldapsearch -x -b 'dc=ecrc,dc=de' '(obecjtclass=*)'
version: 2
#
# filter: (obecjtclass=*)
# requesting: ALL
#
# search result
search: 2
result: 32 No such object
# numResponses: 1
Can someone help me and tell me what the problem is?
How do I check which database I use and what the content is?
Thank you!
Tom