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

Problems with set up and connection...?



I suspect this is one of those newbie questions that are supposed to be
answered in the FAQ but here goes:

Ok, so I downloaded it all, and here are the steps I took:

1 I changed the directories as needed in include/ldapconfig.h.edit to:
/*
 * SHARED DEFINITIONS - things you should change
 */
#define DEFAULT_DIRSEP          "/"
#define DEFAULT_BINDIR          "/bin"
#define DEFAULT_SBINDIR         "/sbin"
#define DEFAULT_DATADIR         "/usr/local/ldap"
#define DEFAULT_SYSCONFDIR      "/etc/ldap"
#define DEFAULT_LIBEXECDIR      "/usr/lib"
#define DEFAULT_RUNDIR          "/usr/local/bin"

#define DEFAULT_LDAP_CONF_FILE "%SYSCONFDIR%/ldap.conf"
#define DEFAULT_LDAP_USERRC_FILE "ldaprc"
#define DEFAULT_LDAP_ENV_PREFIX "LDAP"

2 ./configure --enable-shared --with-gnu-ld --enable-DLDAP_DEBUG
--with-ldbm-api=db

3 make depend

4 make

5 Created a directory to store my db in (/usr/local/ldap)

6 copied the db from:
http://www.Openldap.org/faq/data/cache/104.html
 but changed the organization row to:
 "o=\"Jefferies & Co.\",c=us"

7 ldif2ldbm -f /usr/local/etc/openldap/slapd.conf first.txt

8 After this was done I started slapd with:
/usr/local/libexec/slapd -d 65535 -f /usr/local/etc/openldap/slapd.conf
-p 389

9 When this was finished I did the following:
ldapsearch -b 'o=\"Jefferies & Co.\",c=us' 'objectClass=*' -d 65535
which according to the instructions should have given me everything in
the database. But it didn't, instead this happened:

The result I got:

~~~From slapd:

select activity on 1 descriptors
new connection on 7
conn=0 fd=7 connection from pbroker1q.jc.jefco.com (169.196.22.47)
accepted.
activity on:
listening for connections on 6, activity on: 7r
before select active_threads 0
select activity on 1 descriptors
activity on: 7r
read activity on 7
ber_get_next
ber_get_next: tag 0x30 len 12 contents:
ber_dump: buf 0x8075040, ptr 0x8075040, end 0x807504c
          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 7
         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 6, activity on: 7r
before select active_threads 0
select activity on 1 descriptors
activity on: 7r
read activity on 7
ber_get_next
ber_get_next: tag 0x30 len 63 contents:
ber_dump: buf 0x807d948, ptr 0x807d948, end 0x807d987
          current len 63, contents:
        02 01 02  c  : 04 1a  o  =  \  "  J  e  f  f  e
         r  i  e  s 20  & 20  C  o  .  \  "  ,  c  =  u
         s 0a 01 02 0a 01 00 02 01 0c 02 01 0f 01 01 00
        87 0b  o  b  j  e  c  t  C  l  a  s  s  0 00 
do_search
SRCH "O=\"JEFFERIES & CO.\",C=US" 2 0    12 15 0
begin get_filter
PRESENT
end get_filter 0
    filter: (objectclass=*)
    attrs:
conn=0 op=1 SRCH base="O=\"JEFFERIES & CO.\",C=US" scope=2
filter="(objectclass=*)"
send_ldap_result 32::
ber_flush: 14 bytes to sd 7
         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 6, activity on: 7r
before select active_threads 0
select activity on 1 descriptors
activity on: 7r
read activity on 7
ber_get_next
ber_get_next: tag 0x30 len 5 contents:
ber_dump: buf 0x808dac0, ptr 0x808dac0, end 0x808dac5
          current len 5, contents:
        02 01 03  B 00 
do_unbind
conn=0 op=2 UNBIND
conn=0 op=2 fd=7 closed errno=0
listening for connections on 6, activity on:
before select active_threads 0


~~~From the ldapsearch -d param:
ldap_init
ldap_bind_s
ldap_simple_bind_s
ldap_simple_bind
ldap_send_initial_request
open_ldap_connection
ldap_connect_to_host: pbroker1q.jc.jefco.com:389
sd 4 connected to: 169.196.22.47
ldap_delayed_open successful, ld_host is (null)
ldap_send_server_request
ber_flush: 14 bytes to sd 4
         0 0c 02 01 01  ` 07 02 01 02 04 00 80 00 
ldap_result
wait4msg (infinite timeout)
*** Connections:
* host: pbroker1q.jc.jefco.com  port: 389  (default)
  refcnt: 2  status: Connected
  last used: Wed Apr 14 11:59:04 1999

** Outstanding Requests:
 * msgid 1,  origid 1, status InProgress
   outstanding referrals 0, parent count 0
** Response Queue:
   Empty
do_ldap_select
read1msg
ber_get_next
ber_get_next: tag 0x30 len 12 contents:
ber_dump: buf 0x8055fa0, ptr 0x8055fa0, end 0x8055fac
          current len 12, contents:
        02 01 01  a 07 0a 01 00 04 00 04 00 
got result msgid 1, original id 1
ber_scanf fmt ({iaa}) ber:
ber_dump: buf 0x8055fa0, ptr 0x8055fa3, end 0x8055fac
          current len 9, contents:
         a 07 0a 01 00 04 00 04 00 
new result:  res_errno: 0, res_error: <>, res_matched: <>
read1msg:  0 new referrals
request 1 done
res_errno: 0, res_error: <>, res_matched: <>
ldap_free_request (origid 1, msgid 1)
ldap_free_connection
ldap_free_connection: refcnt 1
ldap_result2error
ber_scanf fmt ({iaa}) ber:
ber_dump: buf 0x8055fa0, ptr 0x8055fa3, end 0x8055fac
          current len 9, contents:
         a 07 0a 01 00 04 00 04 00 
ldap_msgfree
ldap_search
put_filter "objectClass=*"
put_filter: default
put_simple_filter "objectClass=*"
ldap_send_initial_request
ldap_send_server_request
ber_flush: 65 bytes to sd 4
         0  ? 02 01 02  c  : 04 1a  o  =  \  "  J  e  f
         f  e  r  i  e  s 20  & 20  C  o  .  \  "  ,  c
         =  u  s 0a 01 02 0a 01 00 02 01 0c 02 01 0f 01
        01 00 87 0b  o  b  j  e  c  t  C  l  a  s  s  0
        00 
ldap_result
wait4msg (infinite timeout)
** Connections:
* host: pbroker1q.jc.jefco.com  port: 389  (default)
  refcnt: 2  status: Connected
  last used: Wed Apr 14 11:59:04 1999

** Outstanding Requests:
 * msgid 2,  origid 2, status InProgress
   outstanding referrals 0, parent count 0
** Response Queue:
   Empty
do_ldap_select
read1msg
ber_get_next
ber_get_next: tag 0x30 len 12 contents:
ber_dump: buf 0x8055ff0, ptr 0x8055ff0, end 0x8055ffc
          current len 12, contents:
        02 01 02  e 07 0a 01 20 04 00 04 00 
got result msgid 2, original id 2
ber_scanf fmt ({iaa}) ber:
ber_dump: buf 0x8055ff0, ptr 0x8055ff3, end 0x8055ffc
          current len 9, contents:
         e 07 0a 01 20 04 00 04 00 
ldap_chase_referrals
new result:  res_errno: 32, res_error: <>, res_matched: <>
read1msg:  0 new referrals
request 2 done
res_errno: 32, res_error: <>, res_matched: <>
ldap_free_request (origid 2, msgid 2)
ldap_free_connection
ldap_free_connection: refcnt 1
ldap_result2error
ber_scanf fmt ({iaa}) ber:
ber_dump: buf 0x8055ff0, ptr 0x8055ff3, end 0x8055ffc
          current len 9, contents:
         e 07 0a 01 20 04 00 04 00
ldap_perror
ldap_search: No such object
ldap_msgfree
ldap_unbind
ldap_free_connection
ldap_send_unbind
ber_flush: 7 bytes to sd 4
         0 05 02 01 03  B 00 
ldap_free_connection: actually freed

And that is that.

I would really appreciate if there is someone out there who can tell me
what I did wrong.

With thanks in before hand
/Johan

--------------------------------------------------------------
Jefferies & Company Inc. archives and may review electronic 
correspondence.  It may be required to be produced to the SEC to other 
regulators in a criminal investigation or in civil litigation.  Any 
message coming into Jefferies & Company Inc. may be subject to the same 
requirements.