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

Re: Bugs?



On Wed, 16 Sep 1998, Dyna Plus Operation wrote:

[snip]
> ber_dump: buf 0x67090, ptr 0x67090, end 0x670d3
>           current len 67, contents:
>         02 01 02  c  > 04 1e  o  =  Y  o  u  r 20  O  r
>          g  a  n  i  z  a  t  i  o  n 20  N  a  m  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 
> listening for connections on 3, activity on: 5r
> before select active_threads 1
> do_search
> SRCH "o=Your Organization Name,c=US" 2 0    0 0 0
[snip]

Looks like your suffix wasn't changed in include/ldapconfig.h.edit

/* default place to start searching */
#define DEFAULT_BASE    "o=International Neural Machines, c=CA"

for example.

However, this may not solve your problem, as I've had the same results
using GDBM, even with this information compiled in.

Any thoughts ?

Debugging info:

The query:

[root@admin2 ~]# ldapsearch -v -b 'o=International Neural Machines Inc., c=CA' 'objectclass=*'
ldap_open( localhost, 389 )
filter pattern: objectclass=*
returning: ALL
filter is: (objectclass=*)
ldap_search: No such object
0 matches

The server output:

[root@admin2 ~]# slapd -f /etc/slapd.conf -d 5 
slapd 3.3 (Sun Jun  7 23:21:45 PDT 1998)
        greg@screamingslave.rage.net:/usr/src/redhat/BUILD/ldap-3.3/servers/slapd
slapd starting
do_bind
do_bind: version 2 dn () method 128
send_ldap_result 0::
do_search
SRCH "o=International Neural Machines Inc.,c=CA" 2 0    0 0 0
    filter: (objectclass=*)
    attrs:
=> dn2id( "o=International Neural Machines Inc.,c=CA" )
=> ldbm_cache_open( "/var/ldap/dn2id.gdbm", 2, 600 )
ldbm_cache_open (blksize 4096) (maxids 1022) (maxindirect 4)
<= ldbm_cache_open (opened 0)
<= dn2id NOID
send_ldap_result 32::
do_unbind


The database:

[root@admin2 ~]# ldbmtest
dbtest: te
key:  2
data length: 136
data:
2
dn: cn=Graham Dunn, o=International Neural Machines Inc., c=CA
cn: Graham Dunn
sn: Dunn
mail: gdunn@ineural.com
objectclass: person

key:  3
data length: 128
data:
3
dn: cn=John Doe, o=International Neural Machines Inc., c=CA
cn: John Doe
sn: Doe
mail: jdoe@nowhere.org
objectclass: person

key:  1
data length: 116
data:
1
dn: o=International Neural Machines Inc., c=CA
o: International Neural Machines Inc.
objectclass: organization

dbtest: td      
key: O=INTERNATIONAL NEURAL MACHINES INC.,C=CA   (len 43)
data:
1
key: CN=GRAHAM DUNN,O=INTERNATIONAL NEURAL MACHINES INC.,C=CA (len 57)
data:
2
key: CN=JOHN DOE,O=INTERNATIONAL NEURAL MACHINES INC.,C=CA (len 54)
data:
3

/var/ldap:

[root@admin2 ~]# ls -l /var/ldap/
total 433
-rw-r--r--   1 root     root            2 Sep 14 13:43 NEXTID
-rw-------   1 root     root       367637 Sep 14 13:43 dn.gdbm
-rw-------   1 root     root        12454 Sep 14 13:43 dn2id.gdbm
-rw-------   1 root     root        12288 Sep 14 13:43 id2children.gdbm
-rw-------   1 root     root        12680 Sep 14 13:43 id2entry.gdbm
-rw-------   1 root     root        26637 Sep 14 13:44 objectclass.gdbm
-rw-r--r--   1 root     root            0 Jun  8 02:11 replica.log
-rw-r--r--   1 root     root            0 Jun  8 02:11 replica.log.lock
-rw-r--r--   1 root     root          111 Jun  7 03:46 slurpd.replog
-rw-r--r--   1 root     root            0 Jun  7 03:46 slurpd.replog.lock
-rw-r--r--   1 root     root            0 Jun  7 03:46 slurpd.status
-rw-r--r--   1 root     root            0 Jun  7 03:46 slurpd.status.lock



gdunn@ineural.com	Graham Dunn          || ||| | ||| |||| | |||| | 
	     Hello Kthulhu: World chaos through cuteness - DNRC 	 
	             http://imprint.uwaterloo.ca/~gdunn
    PGP:  mail pgp-public-keys@keys.pgp.net Subject: get gdunn@ineural.com