Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clone tlsCfg with ServerName because ServerName is needed by StartTLS #580

Merged
merged 1 commit into from
May 4, 2023
Merged

Conversation

litrop
Copy link
Contributor

@litrop litrop commented Apr 29, 2023

When starttls is set to true, the following error happens.

auth.ldap: LDAP Result Code 200 "Network Error": TLS handshake failed (tls: either ServerName or InsecureSkipVerify must be specified in the tls.Config)

And using hostname(Domain:Port) as ServerName still gets another error, and the Domain is only be needed.

auth.ldap: LDAP Result Code 200 "Network Error": TLS handshake failed (EOF)

@foxcpp foxcpp merged commit 13a210f into foxcpp:master May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants