$ ldapwhoami -d -1 ldap_create ldap_pvt_sasl_getmech ldap_search put_filter: "(objectclass=*)" put_filter: simple put_simple_filter: "objectclass=*" ldap_build_search_req ATTRS: supportedSASLMechanisms ldap_send_initial_request ldap_new_connection 1 1 0 ldap_int_open_connection ldap_connect_to_host: TCP localhost:389 ldap_new_socket: 5 ldap_prepare_socket: 5 ldap_connect_to_host: Trying ::1 389 ldap_pvt_connect: fd: 5 tm: -1 async: 0 ldap_open_defconn: successful ldap_send_server_request ber_scanf fmt ({it) ber: ber_dump: buf=0x7ffb84000000 ptr=0x7ffb84000000 end=0x7ffb84000040 len=64 0000: 30 3e 02 01 01 63 39 04 00 0a 01 00 0a 01 00 02 0>...c9......... 0010: 01 00 02 01 00 01 01 00 87 0b 6f 62 6a 65 63 74 ..........object 0020: 63 6c 61 73 73 30 19 04 17 73 75 70 70 6f 72 74 class0...support 0030: 65 64 53 41 53 4c 4d 65 63 68 61 6e 69 73 6d 73 edSASLMechanisms ber_scanf fmt ({) ber: ber_dump: buf=0x7ffb84000000 ptr=0x7ffb84000005 end=0x7ffb84000040 len=59 0000: 63 39 04 00 0a 01 00 0a 01 00 02 01 00 02 01 00 c9.............. 0010: 01 01 00 87 0b 6f 62 6a 65 63 74 63 6c 61 73 73 .....objectclass 0020: 30 19 04 17 73 75 70 70 6f 72 74 65 64 53 41 53 0...supportedSAS 0030: 4c 4d 65 63 68 61 6e 69 73 6d 73 LMechanisms ber_flush2: 64 bytes to sd 5 0000: 30 3e 02 01 01 63 39 04 00 0a 01 00 0a 01 00 02 0>...c9......... 0010: 01 00 02 01 00 01 01 00 87 0b 6f 62 6a 65 63 74 ..........object 0020: 63 6c 61 73 73 30 19 04 17 73 75 70 70 6f 72 74 class0...support 0030: 65 64 53 41 53 4c 4d 65 63 68 61 6e 69 73 6d 73 edSASLMechanisms ldap_write: want=64, written=64 0000: 30 3e 02 01 01 63 39 04 00 0a 01 00 0a 01 00 02 0>...c9......... 0010: 01 00 02 01 00 01 01 00 87 0b 6f 62 6a 65 63 74 ..........object 0020: 63 6c 61 73 73 30 19 04 17 73 75 70 70 6f 72 74 class0...support 0030: 65 64 53 41 53 4c 4d 65 63 68 61 6e 69 73 6d 73 edSASLMechanisms ldap_mark_select_read: sip = 0x7ffb84002600, sd = 5 ldap_int_mark_select_read: sip = 0x7ffb84002600, sd = 5 ldap_result ld 0x7ffb82e00400 msgid 1 wait4msg ld 0x7ffb82e00400 msgid 1 (infinite timeout) wait4msg continue ld 0x7ffb82e00400 msgid 1 all 1 ** ld 0x7ffb82e00400 Connections: * host: localhost port: 389 (default) refcnt: 2 status: Connected last used: Thu Mar 20 10:58:53 2014 ** ld 0x7ffb82e00400 Outstanding Requests: * msgid 1, origid 1, status InProgress outstanding referrals 0, parent count 0 ld 0x7ffb82e00400 request count 1 (abandoned 0) ** ld 0x7ffb82e00400 Red-Black Tree Response Queue: Empty ld 0x7ffb82e00400 response count 1 ldap_chkResponseList ld 0x7ffb82e00400 msgid 1 all 1 ldap_chkResponseList returns ld 0x7ffb82e00400 NULL ldap_int_select read1msg: ld 0x7ffb82e00400 msgid 1 all 1 ber_get_next ldap_read: want=8, got=8 0000: 30 2e 02 01 01 64 29 04 0....d). ldap_read: want=40, got=40 0000: 00 30 25 30 23 04 17 73 75 70 70 6f 72 74 65 64 .0%0#..supported 0010: 53 41 53 4c 4d 65 63 68 61 6e 69 73 6d 73 31 08 SASLMechanisms1. 0020: 04 06 47 53 53 41 50 49 ..GSSAPI ber_get_next: tag 0x30 len 46 contents: ber_dump: buf=0x7ffb82d00360 ptr=0x7ffb82d00360 end=0x7ffb82d0038e len=46 0000: 02 01 01 64 29 04 00 30 25 30 23 04 17 73 75 70 ...d)..0%0#..sup 0010: 70 6f 72 74 65 64 53 41 53 4c 4d 65 63 68 61 6e portedSASLMechan 0020: 69 73 6d 73 31 08 04 06 47 53 53 41 50 49 isms1...GSSAPI read1msg: ld 0x7ffb82e00400 msgid 1 message type search-entry wait4msg continue ld 0x7ffb82e00400 msgid 1 all 1 ** ld 0x7ffb82e00400 Connections: * host: localhost port: 389 (default) refcnt: 2 status: Connected last used: Thu Mar 20 10:58:53 2014 ** ld 0x7ffb82e00400 Outstanding Requests: * msgid 1, origid 1, status InProgress outstanding referrals 0, parent count 0 ld 0x7ffb82e00400 request count 1 (abandoned 0) ** ld 0x7ffb82e00400 Red-Black Tree Response Queue: * msgid 1, type 100 ld 0x7ffb82e00400 response count 1 ldap_chkResponseList ld 0x7ffb82e00400 msgid 1 all 1 ldap_chkResponseList returns ld 0x7ffb82e00400 NULL ldap_int_select read1msg: ld 0x7ffb82e00400 msgid 1 all 1 ber_get_next ldap_read: want=8, got=8 0000: 30 0c 02 01 01 65 07 0a 0....e.. ldap_read: want=6, got=6 0000: 01 00 04 00 04 00 ...... ber_get_next: tag 0x30 len 12 contents: ber_dump: buf=0x7ffb82d00280 ptr=0x7ffb82d00280 end=0x7ffb82d0028c len=12 0000: 02 01 01 65 07 0a 01 00 04 00 04 00 ...e........ read1msg: ld 0x7ffb82e00400 msgid 1 message type search-result ber_scanf fmt ({eAA) ber: ber_dump: buf=0x7ffb82d00280 ptr=0x7ffb82d00283 end=0x7ffb82d0028c len=9 0000: 65 07 0a 01 00 04 00 04 00 e........ read1msg: ld 0x7ffb82e00400 0 new referrals read1msg: mark request completed, ld 0x7ffb82e00400 msgid 1 request done: ld 0x7ffb82e00400 msgid 1 res_errno: 0, res_error: <>, res_matched: <> ldap_free_request (origid 1, msgid 1) adding response ld 0x7ffb82e00400 msgid 1 type 101: ldap_parse_result ber_scanf fmt ({iAA) ber: ber_dump: buf=0x7ffb82d00280 ptr=0x7ffb82d00283 end=0x7ffb82d0028c len=9 0000: 65 07 0a 01 00 04 00 04 00 e........ ber_scanf fmt (}) ber: ber_dump: buf=0x7ffb82d00280 ptr=0x7ffb82d0028c end=0x7ffb82d0028c len=0 ldap_get_values ber_scanf fmt ({x{{a) ber: ber_dump: buf=0x7ffb82d00360 ptr=0x7ffb82d00363 end=0x7ffb82d0038e len=43 0000: 64 29 04 00 30 25 30 23 04 17 73 75 70 70 6f 72 d)..0%0#..suppor 0010: 74 65 64 53 41 53 4c 4d 65 63 68 61 6e 69 73 6d tedSASLMechanism 0020: 73 31 08 04 06 47 53 53 41 50 49 s1...GSSAPI ber_scanf fmt ([v]) ber: ber_dump: buf=0x7ffb82d00360 ptr=0x7ffb82d00384 end=0x7ffb82d0038e len=10 0000: 31 08 04 06 47 53 53 41 50 49 1...GSSAPI ldap_msgfree ldap_sasl_interactive_bind: server supports: GSSAPI ldap_int_sasl_bind: GSSAPI ldap_int_sasl_open: host=blue52s-mbp.netgear.com SASL/GSSAPI authentication started ldap_msgfree ldap_err2string ldap_sasl_interactive_bind_s: Local error (-2) additional info: SASL(-1): generic failure: GSSAPI Error: Miscellaneous failure (see text (Matching credential (krbtgt/NETGEAR.COM@BW.INT) not found) ldap_free_connection 1 1 ldap_mark_select_clear: sip = 0x7ffb84002600, sd = 5 ldap_int_mark_select_clear: sip = 0x7ffb84002600, sd = 5 ldap_send_unbind ber_flush2: 7 bytes to sd 5 0000: 30 05 02 01 02 42 00 0....B. ldap_write: want=7, written=7 0000: 30 05 02 01 02 42 00 0....B. ldap_free_connection: actually freed