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

ldbm



Because this is easily my third email on the subject, and because I am sure
that developing and maintaining this code is hard enough (especially pro
bono!), I would like all the kind developers (namely kurt) to skip to the
next message as I do not want to waste more development time. This is
probably a simple error!

At the same time I think that for the purpose of public discussion I should
continue to discuss the problem I am having, in the possibility that someone
else is having similar difficulty.

I wiped and reinstalled openldap today. I still can't get any information
retrieved. I read the umich guide cover to cover - and the ibm redbook on
ldap, which I highly recommend. 

I'm pretty sure by basedn's match now. (:

11:33 picket /usr/local/ldap/servers/slapd/tools>ldif2ldbm -f
/usr/local/etc/openldap/slapd.conf -i ./myldif
11:34 picket /usr/local/ldap/servers/slapd/tools>ldbmcat
/usr/tmp/id2entry.gdbm 
2
dn: cn=MikeWalker, o=VONE, c=US
cn: MikeWalker
sn: Walker
objectclass: person
1
dn: o=VONE, c=US
o: VONE
objectclass: organization

11:27 picket /usr/local/ldap/clients/tools>ldapsearch 'objectclass=*'
ldap_search: No such object
11:27 picket /usr/local/ldap/clients/tools>ldapsearch -b 'o=VONE c=US'
'objectclass=*'
ldap_search: No such object
11:27 picket /usr/local/ldap/clients/tools>cat
/usr/local/etc/openldap/ldap.conf 
#
# LDAP Defaults
#

# See ldap.conf(5) for details
# This file should be world readable.

BASE  "o=VONE, c=US"
HOST    10.0.0.141
PORT    389

#SIZELIMIT      12
#TIMELIMIT      15
#DEREF          never

11:28 picket /usr/local/ldap/clients/tools>cat
/usr/local/etc/openldap/slapd.conf
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
#include /usr/local/etc/openldap/slapd.at.conf
#include /usr/local/etc/openldap/slapd.oc.conf
schemacheck     off

access to * by * read

pidfile /usr/local/var/slapd.pid
argsfile /usr/local/var/slapd.args

database ldbm
suffix "o=VONE, c=US"
directory /usr/tmp

anybody else figured this out yet?

Just for kicks here is some of the slapd console debugging info:

# ./slapd -f /usr/local/etc/openldap/slapd.conf -d4025
slapd 1.2.0-Release (Wed Mar 24 18:35:48 EST 1999)
        walker@picket.fence.v-one.com:/usr/local/ldap/servers/slapd
ACL: access to dn=.*
        by dn=.*

slapd starting
listening for connections on 3, activity on:
before select active_threads 0
select activity on 1 descriptors
new connection on 5
conn=0 fd=5 connection from picket.fence.v-one.com (10.0.0.141) accepted.
activity on:
listening for connections on 3, activity on: 5r
before select active_threads 0
select activity on 1 descriptors
activity on: 5r
read activity on 5
ber_get_next
ber_get_next: tag 0x30 len 12 contents:
ber_dump: buf 0x611a0, ptr 0x611a0, end 0x611ac
          current len 12, contents:
        02 01 01  ` 07 02 01 02 04 00 80 00 
do_bind
do_bind: version 2 dn () method 128
conn=0 op=0 BIND dn="" method=128
send_ldap_result 0::
ber_flush: 14 bytes to sd 5
         0 0c 02 01 01  a 07 0a 01 00 04 00 04 00 
conn=0 op=0 RESULT err=0 tag=97 nentries=0
listening for connections on 3, activity on: 5r
before select active_threads 0
select activity on 1 descriptors
activity on: 5r
read activity on 5
ber_get_next
ber_get_next: tag 0x30 len 48 contents:
ber_dump: buf 0x5ea30, ptr 0x5ea30, end 0x5ea60
          current len 48, contents:
        02 01 02  c  + 04 0b  o  =  V  O  N  E 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
begin get_filter
PRESENT
end get_filter 0
conn=0 op=1 SRCH base="O=VONE C=US" scope=2 filter="(objectclass=*)"
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=0 op=1 RESULT err=32 tag=101 nentries=0
listening for connections on 3, activity on: 5r
before select active_threads 0
select activity on 1 descriptors
activity on: 5r
read activity on 5
ber_get_next
ber_get_next: tag 0x30 len 5 contents:
ber_dump: buf 0x5d780, ptr 0x5d780, end 0x5d785
          current len 5, contents:
        02 01 03  B 00 
do_unbind
conn=0 op=2 UNBIND
conn=0 op=2 fd=5 closed errno=0
listening for connections on 3, activity on:
before select active_threads 0


Mike Walker	walker@v-one.com	x5406
"In a world without walls and fences, who needs windows and gates?"
 <<Walker, Mike.vcf>> 

Attachment: Walker, Mike.vcf
Description: Binary data