URL:
https://github.com/SSSD/sssd/pull/67
Title: #67: UTIL: Unset O_NONBLOCK for ldap connection
lslebodn commented:
"""
and client + gnutls debug without O_NONBLOCK
```
(Thu Oct 27 11:37:03 2016) [sssd[be[LDAP]]] [simple_bind_send] (0x0100): Executing simple
bind as: uid=mof_user1,dc=example,dc=com
gnutls[5]: REC[0xc31720]: Preparing Packet Application Data(23) with length: 86 and min
pad: 0
gnutls[5]: REC[0xc31720]: Sent Packet[2] Application Data(23) in epoch 1 and length: 115
(Thu Oct 27 11:37:03 2016) [sssd[be[LDAP]]] [simple_bind_send] (0x2000): ldap simple bind
sent, msgid = 2
(Thu Oct 27 11:37:03 2016) [sssd[be[LDAP]]] [sdap_op_add] (0x2000): New operation 2
timeout 6
(Thu Oct 27 11:37:03 2016) [sssd[be[LDAP]]] [sdap_process_result] (0x2000): Trace:
sh[0xc19510], connected[1], ops[0xc1fe40], ldap[0xc15f50]
(Thu Oct 27 11:37:03 2016) [sssd[be[LDAP]]] [sdap_process_result] (0x2000): Trace: end of
ldap_result list
(Thu Oct 27 11:37:03 2016) [sssd[be[LDAP]]] [sdap_process_result] (0x2000): Trace:
sh[0xc19510], connected[1], ops[0xc1fe40], ldap[0xc15f50]
gnutls[5]: REC[0xc31720]: SSL 3.3 Application Data packet received. Epoch 0, length: 73
gnutls[5]: REC[0xc31720]: Expected Packet Application Data(23)
gnutls[5]: REC[0xc31720]: Received Packet Application Data(23) with length: 73
gnutls[5]: REC[0xc31720]: Decrypted Packet[1] Application Data(23) with length: 49
(Thu Oct 27 11:37:03 2016) [sssd[be[LDAP]]] [sdap_process_message] (0x4000): Message type:
[LDAP_RES_BIND]
(Thu Oct 27 11:37:03 2016) [sssd[be[LDAP]]] [simple_bind_done] (0x2000): Server returned
control [1.3.6.1.4.1.42.2.27.8.5.1].
(Thu Oct 27 11:37:03 2016) [sssd[be[LDAP]]] [simple_bind_done] (0x1000): Password Policy
Response: expire [-1] grace [-1] error [No error].
(Thu Oct 27 11:37:03 2016) [sssd[be[LDAP]]] [simple_bind_done] (0x0400): Bind result:
Success(0), no errmsg set
(Thu Oct 27 11:37:03 2016) [sssd[be[LDAP]]] [sdap_op_destructor] (0x2000): Operation 2
finished
(Thu Oct 27 11:37:03 2016) [sssd[be[LDAP]]] [auth_bind_user_done] (0x4000): Found ppolicy
data, assuming LDAP password policies are active.
(Thu Oct 27 11:37:03 2016) [sssd[be[LDAP]]] [sdap_handle_release] (0x2000): Trace:
sh[0xc19510], connected[1], ops[(nil)], ldap[0xc15f50], destructor_lock[0],
release_memory[0]
(Thu Oct 27 11:37:03 2016) [sssd[be[LDAP]]] [remove_connection_callback] (0x4000):
Successfully removed connection callback.
gnutls[5]: REC[0xc31720]: Preparing Packet Application Data(23) with length: 7 and min
pad: 0
gnutls[5]: REC[0xc31720]: Sent Packet[3] Application Data(23) in epoch 1 and length: 36
gnutls[3]: ASSERT: buffers.c[_gnutls_io_write_flush]:694
gnutls[5]: REC: Sending Alert[1|0] - Close notify
gnutls[5]: REC[0xc31720]: Preparing Packet Alert(21) with length: 2 and min pad: 0
gnutls[5]: REC[0xc31720]: Sent Packet[4] Alert(21) in epoch 1 and length: 31
gnutls[3]: ASSERT: buffers.c[_gnutls_io_write_flush]:694
gnutls[5]: REC: Sending Alert[1|0] - Close notify
gnutls[5]: REC[0xc31720]: Preparing Packet Alert(21) with length: 2 and min pad: 0
gnutls[3]: ASSERT: buffers.c[_gnutls_writev_emu]:462
gnutls[2]: WRITE: -1 returned from 0xbcbd60, errno: 9
gnutls[3]: ASSERT: buffers.c[errno_to_gerr]:228
gnutls[3]: ASSERT: buffers.c[_gnutls_io_write_flush]:720
gnutls[3]: ASSERT: record.c[_gnutls_send_tlen_int]:554
gnutls[3]: ASSERT: record.c[gnutls_bye]:302
gnutls[5]: REC[0xc31720]: Start of epoch cleanup
gnutls[5]: REC[0xc31720]: End of epoch cleanup
gnutls[5]: REC[0xc31720]: Epoch #1 freed
(Thu Oct 27 11:37:03 2016) [sssd[be[LDAP]]] [dp_req_done] (0x0400): DP Request [PAM
Authenticate #3]: Request handler finished [0]: Success
(Thu Oct 27 11:37:03 2016) [sssd[be[LDAP]]] [_dp_req_recv] (0x0400): DP Request [PAM
Authenticate #3]: Receiving request data.
(Thu Oct 27 11:37:03 2016) [sssd[be[LDAP]]] [dp_req_destructor] (0x0400): DP Request [PAM
Authenticate #3]: Request removed.
(Thu Oct 27 11:37:03 2016) [sssd[be[LDAP]]] [dp_req_destructor] (0x0400): Number of active
DP request: 0
(Thu Oct 27 11:37:03 2016) [sssd[be[LDAP]]] [dp_method_enabled] (0x0400): Target selinux
is not configured
(Thu Oct 27 11:37:03 2016) [sssd[be[LDAP]]] [dp_pam_reply] (0x1000): DP Request [PAM
Authenticate #3]: Sending result [0][LDAP]
```
"""
See the full comment at
https://github.com/SSSD/sssd/pull/67#issuecomment-256595910