Dear Quanah,

Herewith the requested info.
Thanks a lot for you help and time !

Kind Regards,
Thierry

client# ldapwhoami -x -H ldap://192.168.100.11/ -D "cn=Manager,dc=be" -w password -d 1
  ldap_url_parse_ext(ldap://192.168.100.11/)
  ldap_create
  ldap_url_parse_ext(ldap://192.168.100.11:389/??base)
  ldap_sasl_bind
  ldap_send_initial_request
  ldap_new_connection 1 1 0
  ldap_int_open_connection
  ldap_connect_to_host: TCP 192.168.100.11:389
  ldap_new_socket: 3
  ldap_prepare_socket: 3
  ldap_connect_to_host: Trying 192.168.100.11:389
  ldap_pvt_connect: fd: 3 tm: -1 async: 0
  attempting to connect:
  connect success
  ldap_open_defconn: successful
  ldap_send_server_request
  ber_scanf fmt ({it) ber:
  ber_scanf fmt ({i) ber:
  ber_flush2: 38 bytes to sd 3
  ldap_result ld 0x55d49a4a3070 msgid 1
  wait4msg ld 0x55d49a4a3070 msgid 1 (infinite timeout)
  wait4msg continue ld 0x55d49a4a3070 msgid 1 all 1
  ** ld 0x55d49a4a3070 Connections:
  * host: 192.168.100.11  port: 389  (default)
    refcnt: 2  status: Connected
    last used: Wed Mar 11 20:32:08 2020

  ** ld 0x55d49a4a3070 Outstanding Requests:
   * msgid 1,  origid 1, status InProgress
     outstanding referrals 0, parent count 0
    ld 0x55d49a4a3070 request count 1 (abandoned 0)
  ** ld 0x55d49a4a3070 Response Queue:
     Empty
    ld 0x55d49a4a3070 response count 0
  ldap_chkResponseList ld 0x55d49a4a3070 msgid 1 all 1
  ldap_chkResponseList returns ld 0x55d49a4a3070 NULL
  ldap_int_select
  read1msg: ld 0x55d49a4a3070 msgid 1 all 1
  ber_get_next
  ldap_err2string
  ldap_result: Can't contact LDAP server (-1)
  ldap_free_request (origid 1, msgid 1)
  ldap_free_connection 1 1
  ldap_free_connection: actually freed

server# ldapwhoami -x -D "uid=thierry,ou=People,ou=linux,dc=be" -w password -d 1
  ldap_create
  ldap_sasl_bind
  ldap_send_initial_request
  ldap_new_connection 1 1 0
  ldap_int_open_connection
  ldap_connect_to_host: TCP localhost:389
  ldap_new_socket: 3
  ldap_prepare_socket: 3
  ldap_connect_to_host: Trying ::1 389
  ldap_pvt_connect: fd: 3 tm: -1 async: 0
  attempting to connect:
  connect success
  ldap_open_defconn: successful
  ldap_send_server_request
  ber_scanf fmt ({it) ber:
  ber_scanf fmt ({i) ber:
  ber_flush2: 58 bytes to sd 3
  ldap_result ld 0x563d667e3060 msgid 1
  wait4msg ld 0x563d667e3060 msgid 1 (infinite timeout)
  wait4msg continue ld 0x563d667e3060 msgid 1 all 1
  ** ld 0x563d667e3060 Connections:
  * host: localhost  port: 389  (default)
    refcnt: 2  status: Connected
    last used: Wed Mar 11 20:30:44 2020

  ** ld 0x563d667e3060 Outstanding Requests:
   * msgid 1,  origid 1, status InProgress
       outstanding referrals 0, parent count 0
    ld 0x563d667e3060 request count 1 (abandoned 0)
  ** ld 0x563d667e3060 Response Queue:
     Empty
    ld 0x563d667e3060 response count 0
  ldap_chkResponseList ld 0x563d667e3060 msgid 1 all 1
  ldap_chkResponseList returns ld 0x563d667e3060 NULL
  ldap_int_select
  read1msg: ld 0x563d667e3060 msgid 1 all 1
  ber_get_next
  ber_get_next: tag 0x30 len 12 contents:
  read1msg: ld 0x563d667e3060 msgid 1 message type bind
  ber_scanf fmt ({eAA) ber:
  read1msg: ld 0x563d667e3060 0 new referrals
  read1msg:  mark request completed, ld 0x563d667e3060 msgid 1
  request done: ld 0x563d667e3060 msgid 1
  res_errno: 0, res_error: <>, res_matched: <>
  ldap_free_request (origid 1, msgid 1)
  ldap_parse_result
  ber_scanf fmt ({iAA) ber:
  ber_scanf fmt (}) ber:
  ldap_msgfree
  ldap_extended_operation
  ldap_send_initial_request
  ldap_send_server_request
  ber_scanf fmt ({it) ber:
  ber_scanf fmt ({) ber:
  ber_flush2: 32 bytes to sd 3
  ldap_result ld 0x563d667e3060 msgid -1
  wait4msg ld 0x563d667e3060 msgid -1 (timeout 100000 usec)
  wait4msg continue ld 0x563d667e3060 msgid -1 all 1
  ** ld 0x563d667e3060 Connections:
  * host: localhost  port: 389  (default)
    refcnt: 2  status: Connected
    last used: Wed Mar 11 20:30:44 2020

  ** ld 0x563d667e3060 Outstanding Requests:
   * msgid 2,  origid 2, status InProgress
     outstanding referrals 0, parent count 0
    ld 0x563d667e3060 request count 1 (abandoned 0)
  ** ld 0x563d667e3060 Response Queue:
     Empty
    ld 0x563d667e3060 response count 0
  ldap_chkResponseList ld 0x563d667e3060 msgid -1 all 1
  ldap_chkResponseList returns ld 0x563d667e3060 NULL
  ldap_int_select
  read1msg: ld 0x563d667e3060 msgid -1 all 1
  ber_get_next
  ber_get_next: tag 0x30 len 53 contents:
  read1msg: ld 0x563d667e3060 msgid 2 message type extended-result
  ber_scanf fmt ({eAA) ber:
  read1msg: ld 0x563d667e3060 0 new referrals
  read1msg:  mark request completed, ld 0x563d667e3060 msgid 2
  request done: ld 0x563d667e3060 msgid 2
  res_errno: 0, res_error: <>, res_matched: <>
  ldap_free_request (origid 2, msgid 2)
  ldap_parse_result
  ber_scanf fmt ({iAA) ber:
  ber_scanf fmt (x) ber:
  ber_scanf fmt (}) ber:
  ldap_parse_extended_result
  ber_scanf fmt ({eAA) ber:
  ber_scanf fmt (O) ber:
  dn:uid=thierry,ou=People,ou=linux,dc=be
  ldap_msgfree
  ldap_free_connection 1 1
  ldap_send_unbind
  ber_flush2: 7 bytes to sd 3
  ldap_free_connection: actually freed


Op wo 11 mrt. 2020 om 18:15 schreef Quanah Gibson-Mount <quanah@symas.com>:


--On Wednesday, March 11, 2020 10:08 AM +0100 Thierry Debaene
<thierry.debaene@gmail.com> wrote:

>
>
> Dear Quanah, OpenLDAPs,
>
>
> Herewith the proof that slapd is listening on port 389.
> I also included the slapd.conf, /etc/sysconfig/slapd and ldap.conf files.

I would:

a) Start with ldapwhoami (rather than ldapsearch), just for simplicity
b) add a -d -1 for full client side debugging to see where it's getting
hung up

--Quanah



--

Quanah Gibson-Mount
Product Architect
Symas Corporation
Packaged, certified, and supported LDAP solutions powered by OpenLDAP:
<http://www.symas.com>