goauthentik / goauthentik/authentik

LDAP with StartTLS: TLS Required until FIN option

Open
#16,045 0 comments 0 reactions 0 assignees View on GitHub
enhancement
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.