@Martin Pitt: Ok, here's all the stuff:
$ ldapsearch -x -b 'dc=ini,dc=uzh,dc=ch' uid=stephan -H
ldap://ldap.ini.uzh.ch -ZZ -d7
ldap_url_parse_ext(ldap://ldap.ini.uzh.ch)
ldap_create
ldap_url_parse_ext(ldap://ldap.ini.uzh.ch:389/??base)
ldap_extended_operation_s
ldap_extended_operation
ldap_send_initial_request
ldap_new_connection 1 1 0
ldap_int_open_connection
ldap_connect_to_host: TCP ldap.ini.uzh.ch:389
ldap_new_socket: 3
ldap_prepare_socket: 3
ldap_connect_to_host: Trying 172.16.3.220:389
ldap_pvt_connect: fd: 3 tm: -1 async: 0
ldap_open_defconn: successful
ldap_send_server_request
ber_scanf fmt ({it) ber:
ber_scanf fmt ({) ber:
ber_flush2: 31 bytes to sd 3
: 30 1d 02 01 01 77 18 80 16 31 2e 33 2e 36 2e 31 0w...1.3.6.1
0010: 2e 34 2e 31 2e 31 34 36 36 2e 32 30 30 33 37 .4.1.1466.20037
ldap_write: want=31, written=31
: 30 1d 02 01 01 77 18 80 16 31 2e 33 2e 36 2e 31 0w...1.3.6.1
0010: 2e 34 2e 31 2e 31 34 36 36 2e 32 30 30 33 37 .4.1.1466.20037
ldap_result ld 0x6121b0 msgid 1
wait4msg ld 0x6121b0 msgid 1 (infinite timeout)
wait4msg continue ld 0x6121b0 msgid 1 all 1
** ld 0x6121b0 Connections:
* host: ldap.ini.uzh.ch port: 389 (default)
refcnt: 2 status: Connected
last used: Wed Apr 1 10:27:29 2009
** ld 0x6121b0 Outstanding Requests:
* msgid 1, origid 1, status InProgress
outstanding referrals 0, parent count 0
ld 0x6121b0 request count 1 (abandoned 0)
** ld 0x6121b0 Response Queue:
Empty
ld 0x6121b0 response count 0
ldap_chkResponseList ld 0x6121b0 msgid 1 all 1
ldap_chkResponseList returns ld 0x6121b0 NULL
ldap_int_select
read1msg: ld 0x6121b0 msgid 1 all 1
ber_get_next
ldap_read: want=8, got=8
: 30 0c 02 01 01 78 07 0a0x..
ldap_read: want=6, got=6
: 01 00 04 00 04 00 ..
ber_get_next: tag 0x30 len 12 contents:
read1msg: ld 0x6121b0 msgid 1 message type extended-result
ber_scanf fmt ({eAA) ber:
read1msg: ld 0x6121b0 0 new referrals
read1msg: mark request completed, ld 0x6121b0 msgid 1
request done: ld 0x6121b0 msgid 1
res_errno: 0, res_error: <>, res_matched: <>
ldap_free_request (origid 1, msgid 1)
ldap_free_connection 0 1
ldap_free_connection: refcnt 1
ldap_parse_extended_result
ber_scanf fmt ({eAA) ber:
ldap_parse_result
ber_scanf fmt ({iAA) ber:
ber_scanf fmt (}) ber:
ldap_msgfree
tls_write: want=82, written=82
: 16 03 02 00 4d 01 00 00 49 03 02 49 d3 25 71 2b M...I..I.%q+
0010: 1e 5d fd 39 7b 4b 7f 7e 6a ac 75 04 40 44 e5 db .].9{k.~j...@d..
0020: 94 7a e8 71 c5 8f 15 3b 21 e9 16 00 00 18 00 39 .z.q...;!..9
0030: 00 33 00 16 00 38 00 32 00 13 00 66 00 35 00 2f .3...8.2...f.5./
0040: 00 0a 00 05 00 04 02 01 00 00 07 00 09 00 03 02
0050: 00 01 ..
tls_read: want=5, got=5
: 16 03 01 00 4a J
tls_read: want=74, got=74
: 02 00 00 46 03 01 49 d3 25 6c 7c 54 63 e1 09 a6 ...F..I.%l|Tc...
0010: 4d 29 bc 73 64 5c 63 38 ce fe 5e 54 59 16 e1 2c M).sd\c8..^TY..,
0020: a2 e2 18 21 98 4d 20 79 d0 68 1a 46 fe e5 b4 a2 ...!.M y.h.F
0030: 18 7a bc 8a 62 6d 6e a5 7b c1 1d 04 09 1e 58 45 .z..bmn.{.XE
0040: 19 35 79 5b 5b 7f 5d 00 35 00 .5y[[.].5.
tls_read: want=5, got=5
: 16 03 01 04 bc .
tls_read: want=1212, got=1212
: 0b 00 04 b8 00 04 b5 00 02 58 30 82 02 54 30 82 .X0..T0.
0010: 01 bd 02 09 00 d4 2e e5 49 19 c2 af 2a 30 0d 06 I...*0..
0020: 09 2a 86 48 86 f7 0d 01 01 04 05 00 30 6e 31 0b .*.H0n1.
0030: 30 09 06 03 55 04 06 13 02 43 48 31 10 30 0e 06 0...UCH1.0..
0040: 03 55 04 08 13 07 5a 75 65 72 69 63 68 31 10 30 .UZuerich1.0
0050: 0e 06 03 55 04 07 13 07 5a 75 65 72 69 63 68 31 ...UZuerich1
0060: 0c 30 0a 06 03 55 04 0a 13 03 49 4e 49 31 10 30 .0...UINI1.0
0070: 0e 06 03 55 04 0b 13 07 4c 44 41 50 20 43 41 31 ...ULDAP CA1
0080: 1b 30 19 06 03 55 04 03 13 12 63 61 2e 6c 64 61 .0...Uca.lda
0090: 70 2e 69 6e 69 2e 75 7a 68 2e 63 68 30 1e 17 0d p.ini.uzh.ch0...
00a0: 30 39 30 33 32 36 31 35 31 32 35 37 5a 17 0d 31 090326151257Z..1
00b0: 39 30 33 32 34 31 35 31 32 35 37 5a 30 6f 31 0b 90324151257Z0o1.
00c0: 30 09 06 03 55 04 06 13 02 43 48 31 10 30 0e 06 0...UCH1.0..
00d0: 03 55 04 08 13 07 5a 75 65 72 69 63 68 31 10 30 .UZuerich1.0
00e0: 0e 06 03 55 04 07 13 07 5a 75 65 72 69 63 68 31 ...UZuerich1
00f0: 0c 30 0a 06 03 55 04 0a 13 03 49 4e 49 31 14 30 .0...UINI1.0
0100: 12 06 03 55 04 0b 13 0b 4c 44 41 50 20 53 65 72 ...ULDAP Ser
0110: 76 65 72 31 18 30 16 06 03 55 04 03 13 0f 6c 64 ver1.0...Uld