slapd on OSF/1 3.2d

Kent A. Ziebell (ziebell@iastate.edu)
Wed, 24 Jul 1996 14:33:33 CDT

The saga continues... :)

I think I have ldif2ldbm working now - at least it doesn't get a seg
fault and appears to create the database and indexes. I've switched
from ndbm to Berkeley's db package, and specified THREADSLIB=-threads.
Now I've been hitting my head on step 9 of the SLAPD Administrator's
Guide. No matter what I try to search for using ldapsearch, I get:

ziebell@camaro> ./ldapsearch -h camaro.cc.iastate.edu 'objectclass=*'
ldap_search: No such object
ziebell@camaro> ./ldapsearch 'objectclass=*'
ldap_search: No such object
ziebell@camaro> ./ldapsearch -h 127.0.0.1 'objectclass=*'
ldap_search: No such object

The slapd debugging gives me:

select activity
activity on: 5r
read activity on 5
ber_get_next
ber_get_next: tag 0x30 len 48 contents:
ber_dump: buf 0x2d508, ptr 0x2d508, end 0x2d538
current len 48, contents:
02 01 02 c + 04 0b o = I S U , 20 c =
U S 0a 01 02 0a 01 00 02 01 00 02 01 00 01 01
00 87 0b o b j e c t c l a s s 0 00
(end)
do_search
SRCH "o=ISU,c=US" 2 0 0 0 0
begin get_filter
PRESENT
end get_filter 0
filter: (objectclass=*)
attrs:
conn=9 op=1 SRCH base="o=ISU,c=US" scope=2 filter="(objectclass=*)"
=> dn2id( "o=ISU,c=US" )
=> ldbm_cache_open( "/usr/tmp/dn2id.dbb", 514, 600 )
<= ldbm_cache_open (cache 0)
<= dn2id NOID
send_ldap_result 32::
ber_flush: 14 bytes to sd 5
0 0c 02 01 02 e 07 0a 01 20 04 00 04 00
conn=9 op=1 RESULT err=32 tag=101 nentries=0
listening for connections on 3, activity on: 5r
before select active_threads 1
select activity
activity on: 5r
read activity on 5
ber_get_next
ber_get_next: tag 0x30 len 5 contents:
ber_dump: buf 0x47238, ptr 0x47238, end 0x4723d
current len 5, contents:
02 01 03 B 00
do_unbind
conn=9 op=2 UNBIND
conn=9 op=2 fd=5 closed errno=0
listening for connections on 3, activity on:

So at least I'm making a connection to the slapd server even though it
appears not to be finding anything. When I issue:

ziebell@camaro> ./ldapsearch -s base -b cn=monitor 'objectclass=*'
cn=monitor
version=slapd 3.3 (Wed Jul 24 11:19:00 CDT 1996)
threads=1
connection=5 : 960724142940Z : 2 : 1 : NULLDN :
currentconnections=1
totalconnections=11
dtablesize=4096
writewaiters=0
readwaiters=0
opsinitiated=32
opscompleted=31
entriessent=0
bytessent=294
currenttime=960724142941Z
starttime=960724133137Z
nbackends=1

And ldbmtest dumps out what appears to be a database.

Anybody have any suggestions about what is going on?

Kent Ziebell

-- 
___________________________________________________________________
Kent A. Ziebell                              ziebell@iastate.edu
249 Durham Center                            voice: (515) 294-9607
Iowa State University Computation Center     fax:   (515) 294-1717
Ames, Iowa 50011