🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fj.net.ldap
Article #399

Re: Can't search database

#399
From: Ron Jarrell
Date: Tue, 15 Jun 1999 00:00
13 lines
1545 bytes
Tenacious <tmind@bigfoot.com> wrote:
> Hi

> I download the ldap-3.3 port from FreeBSD.org. I do a make and make install and everthing go well. Edit the slapd.conf and create a databasefile. Do a "./ldif2ldbm -i databasefile" and "./slapd". Now when I run "./ldapsearch -h 127.0.0.1 'objectclass=*'" give me nothing and the CUP keeping very high. However, if I use ldbmtest, I can find all my database. What I did wrong or I need to do something else? On my server, I turn some program off in inetd.conf such as finger.  Is it alright?


Is objectclass indexed for wildcards?  If not, you're essentially
doing a linear search of the database, hunting for objectclass records.

Indexing is an underrated, and important, ldap black art.  Making 
a bad guess about user lookup habits can lead to abysmal lookup
performance.  Even then weird hashing problams can bite you in the
butt.
Technical Details
Message-ID: <7k6ddb$5pm$1@solaris.cc.vt.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7jmi24$8v2$1@newsmaster.pathcom.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 103627,e2d0fb31a4b56581,start
X-Google-Attributes: gid103627,public
From: Ron Jarrell <jarrell@babylon5.cc.vt.edu>
Subject: Re: Can't search database
Date: 1999/06/15
Message-ID: <7k6ddb$5pm$1@solaris.cc.vt.edu>
X-Deja-AN: 489992565
References: <7jmi24$8v2$1@newsmaster.pathcom.com>
X-Complaints-To: abuse@vt.edu
X-Trace: solaris.cc.vt.edu 929478891 5942 128.173.14.193 (15 Jun 1999 20:34:51 GMT)
Organization: Virginia Tech, Blacksburg, Virginia, USA
User-Agent: tin/pre-1.4-980226 (UNIX) (SunOS/5.7 (sun4u))
NNTP-Posting-Date: 15 Jun 1999 20:34:51 GMT
Newsgroups: fj.net.ldap