Highlight portion is the portion which modified from the original one.
========== slapd-master.conf =================
#
# master slapd config -- for testing
#
include ./data/slapd.at.conf
include ./data/slapd.oc.conf
schemacheck off
pidfile ./test-db/slapd.pid
argsfile ./test-db/slapd.args
#######################################################################
# ldbm database definitions
#######################################################################
database ldbm
cachesize 4
suffix "dc=xyz.com"
directory ./test-db
rootdn "cn=root, dc=xyz.com"
rootpw success
index cn,sn,uid pres,eq,approx
index default none
lastmod on
=================================
Modified portion in defines.sh
================= defines.sh =====================
BASEDN="dc=xyz.com"
MANAGERDN="cn=root, dc=xyz.com"
PASSWD=success
=================================
================= test.ldif =======================
dn: ou=Marketing cn=John Smith, dc=xyz.com
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
cn: John Smith
sn: Smith
givenname: John
uid: jsmith
ou: Marketing
employeenumber: 091377
telephonenumber: 838-6004
dn: ou=Accounting cn=John Smith, dc=xyz.com
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
cn: John Smith
sn: Smith
givenname: John
uid: josmith
ou: Accounting
employeenumber: 235532
telephonenumber: 838-5501
=================================
Give command:
../servers/slapd/tools/ldif2ldbm -f ./data/slapd-master.conf -i
./data/test.ldif -e ../servers/slapd/tools
to convert the database from LDIF format to LDBM.
Give command:
../servers/slapd/slapd -f ./data/slapd.conf -p 9009 -d 5
to start the slapd daemon.
Give command:
../clients/tools/ldapsearch -L -S "" -b "cn=root, dc=xyz.com" -h
localhost -p 9009 'objectClass=*'
to dump the database.
It gave me: ldap_search: No such object
error.
I am more suspicious at the area my data file matching with slapd-master.conf. But I really don't know what's the problem.
Thank you very much for prompt help. It is Friday night, I shouldn't
expect any response. But I know some are hard working person too.
Angela