URL:
https://github.com/SSSD/sssd/pull/67
Title: #67: UTIL: Unset O_NONBLOCK for ldap connection
lslebodn commented:
"""
related openldap server (witn nss) log:
```
tls_read: want=5, got=5
0000: 17 03 03 00 55 ....U
tls_read: want=85, got=85
0000: 30 53 02 01 02 60 2f 02 01 03 04 1f 75 69 64 3d 0S...`/.....uid=
0010: 6d 6f 66 5f 75 73 65 72 31 2c 64 63 3d 65 78 61 mof_user1,dc=exa
0020: 6d 70 6c 65 2c 64 63 3d 63 6f 6d 80 09 53 65 63 mple,dc=com..Sec
0030: 72 65 74 31 32 33 a0 1d 30 1b 04 19 31 2e 33 2e ret123..0...1.3.
0040: 36 2e 31 2e 34 2e 31 2e 34 32 2e 32 2e 32 37 2e 6.1.4.1.42.2.27.
0050: 38 2e 35 2e 31 8.5.1
tls_write: want=7, written=7
0000: 15 03 03 00 02 02 0a .......
TLS: error: accept - force handshake failure: errno 13 - moznss error -12234
TLS: can't accept: TLS error -12234:SSL received an unexpected Application Data
record..
5811c6e4 connection_read(21): TLS accept failure error=-1 id=1001, closing
5811c6e4 connection_closing: readying conn=1001 sd=21 for close
5811c6e4 connection_close: conn=1001 sd=21
5811c6e4 daemon: removing 21
5811c6e4 daemon: activity on 1 descriptor
5811c6e4 daemon: activity on:5811c6e4
5811c6e4 conn=1001 fd=21 closed (TLS negotiation failure)
```
"""
See the full comment at
https://github.com/SSSD/sssd/pull/67#issuecomment-256591331