changed to db, new problems (fwd)

Randy Grimshaw (rgrimsha@MailBox.Syr.Edu)
Fri, 12 Jul 1996 08:34:10 -0400 (EDT)

Greetings:
I could use a little help here please. I installed slapd using the ndbm
package and it worked for the test but could not contain the full number
of entries I need to store. Some helpful folks suggested the berkeley db
package as my best replacement. So I re-compiled and now ldif2ldbm works
as advertised building my database of many thousands of users.... but
when I query the server it fails on the ber_get_next call.
Thanks
<><randall

background::
I am running sunos-4.1.3u1 (solaris-1.1.1) and have tried both with and
without the solaris patch to the db->hash routines.
I am currently using the berkeley db package with our sendmail
configuration so I believe that it is working. My ldif data looks just
like the quick start example except with > 7k entries.

I start up my server like so...
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# slapd -f slapd.conf -d 65535
slapd 3.3 (Thu Jul 11 10:57:37 EDT 1996)
rgrimsha@test:/usr/local/bin/slapd
reading config file slapd.conf
line 1 (referral ldap://ldap.itd.umich.edu)
line 2 (database ldbm)
line 3 (suffix "o=Syracuse University, c=US")
line 4 (rootdn "cn=ldapmgr, o=Syracuse Unversity, c=US")
line 5 (rootpw ........)
line 6 (directory /export/ldap)
slapd starting
listening for connections on 3, activity on:
before select active_threads 0
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

then I test the database and it complains that it can't bind to the port

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# ldapsearch -h 127.0.0.1 'objectclass=*'
ldap_bind: Can't contact LDAP server
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

meanwhile, the server is happily logging the attempt
I think that the key failure here is the line: ber_get_next

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

select activity
FIONBIO ioctl on 5 faled
new connection on 5
conn=0 fd=5 connection from unknown (127.0.0.1)
activity on:
listening for connections on 3, activity on: 5r
before select active_threads 0
select activity
activity on: 5r
read activity on 5
ber_get_next
ber_get_next on fd 5 failed errno 0 (Error 0)
*** got 0 of 0 so far
conn=0 op=-1 fd=5 closed errno=0
listening for connections on 3, activity on:
before select active_threads 0

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=