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

ldbm/ldapsearch help



I build a database and do a search on it, but only get "ldap_search:  No
such object" back.  Here is my slapd.conf and other files.

Could someone please help.

Thanks,
-Ash

ldapsearch -h localhost -b 'o=test' 'objectClass=*'
ldap_search:  No such object

slapd.conf
-----------------
include		/usr/local/etc/openldap/slapd.at.conf
include		/usr/local/etc/openldap/slapd.oc.conf
schemacheck	off
referral	ldap://ldap.itd.umich.edu

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

database	ldbm
suffix	"o=test"
index		default
rootdn	"cn=root, o=test"
rootpw	secret


Used to create database:

ldif2ldbm -f /usr/local/etc/openldap/slapd.conf -i firstdb.txt


firstdb.txt
----------------
dn: cn=aaaaaa,ou=test,ou=Members,o=test
objectClass: member
userPassword: aaaaaa

dn: cn=aaaaab,ou=test,ou=Members,o=test
objectClass: member
userPassword: aaaaab


Used to start server:

/usr/local/libexec/slapd -f /usr/local/etc/openldap/slapd.conf


-------------------------
Ashley Neal Hornbeck
Splitrock Services, Inc.
281.465.1318