Sorry, I had started the saslauthd incorrectly which is why I got the socket error.
ldap_sasl_interactive_bind: user selected: DIGEST-MD5
ldap_int_sasl_bind: DIGEST-MD5
ldap_new_connection 1 1 0
ldap_int_open_connection
ldap_new_socket: 10
ldap_prepare_socket: 10
ldap_pvt_connect: fd: 10 tm: 10 async: 0
ldap_ndelay_on: 10
attempting to connect:
connect errno: 115
ldap_int_poll: fd: 10 tm: 10
ldap_is_sock_ready: 10
ldap_ndelay_off: 10
ldap_pvt_connect: 0
ldap_int_sasl_open: host=182.19.136.42
ldap_sasl_bind
ldap_send_initial_request
ldap_send_server_request
ldap_msgfree
ldap_result ld 0x7f9f426f2990 msgid 1
wait4msg ld 0x7f9f426f2990 msgid 1 (timeout 10000000 usec)
wait4msg continue ld 0x7f9f426f2990 msgid 1 all 1
** ld 0x7f9f426f2990 Connections:
* host: 182.19.136.42 port: 389 (default)
refcnt: 2 status: Connected
last used: Wed Dec 30 18:50:38 2015
** ld 0x7f9f426f2990 Outstanding Requests:
* msgid 1, origid 1, status InProgress
outstanding referrals 0, parent count 0
ld 0x7f9f426f2990 request count 1 (abandoned 0)
** ld 0x7f9f426f2990 Response Queue:
Empty
ld 0x7f9f426f2990 response count 0
ldap_chkResponseList ld 0x7f9f426f2990 msgid 1 all 1
ldap_chkResponseList returns ld 0x7f9f426f2990 NULL
ldap_int_select
read1msg: ld 0x7f9f426f2990 msgid 1 all 1
read1msg: ld 0x7f9f426f2990 msgid 1 message type bind
read1msg: ld 0x7f9f426f2990 0 new referrals
read1msg: mark request completed, ld 0x7f9f426f2990 msgid 1
request done: ld 0x7f9f426f2990 msgid 1
res_errno: 7, res_error: <SASL(-4): no mechanism available: >, res_matched: <>
ldap_free_request (origid 1, msgid 1)
ldap_int_sasl_bind: DIGEST-MD5
ldap_parse_sasl_bind_result
ldap_parse_result
ldap_msgfree
ldap_err2string