[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: ldbm/ldapsearch help
try:
ldapsearch -h localhost -b 'ou=test,ou=Members,o=test' 'objectClass=*'
I have noticed that when you have a server setup like this, you will only
be able to search below 'ou=test,ou=Members,o=test' because there aren't
entries for 'ou=Members,o=test' and 'o=test'
adding entries like:
dn: o=test
objectclass: organization
dn: ou=Members,o=test
objectclass: organizationalUnit
dn: ou=test,ou=Members,o=test
objectclass: organizationalUnit
hope that helps,
Allen Reese
Senior Software Engineer
Driversoft, Inc.
allen@driversoft.com
On Fri, 15 Jan 1999, Ashely Hornbeck wrote:
> 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
>