goauthentik / goauthentik/authentik
LDAP with StartTLS: TLS Required until FIN option
- Dominant language
- Python
- Stars
- 25.6k
- Forks
- 2k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 644
Description
**Is your feature request related to a problem? Please describe.**
If a LDAP Client using StartTLS sends the final LDAP unbind request outside of TLS, authentik tears down the connection when it sees that unencrypted request. Microsoft AD is more forgiving and allows the final unbind request to be sent outside of the TLS tunnel. This is causing some software that can do LDAP with StartTLS to Microsoft AD, but not to authentik. With authentik, the interaction works up until the end, but then authentik resets the connection when it receives the unencrypted unbind request, and the client software does not complete its authentication process.
**Describe the solution you'd like**
Consider allowing the final unbind request to be sent outside the TLS tunnel. Or give a LDAP provider option, like “TLS Required until FIN” check box.
**Describe alternatives you've considered**
I can’t think of other options. I don’t have control of the client software and sending the unbind request outside of the TLS tunnel is its expected behavior.
**Additional context**
Upon request I can provide a TCP Dump of the interaction or other log files.
Contributor guide
Assessment
This issue has not been assessed yet.