Skip to content

Conversation

fiftin
Copy link
Collaborator

@fiftin fiftin commented Aug 9, 2025

No description provided.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bugbot free trial expires on August 10, 2025
Learn more in the Cursor dashboard.

serverName = serverName[:i]
}
l, err = ldap.DialTLS("tcp", util.Config.LdapServer, &tls.Config{ // #nosec G402 - explicit secure config
ServerName: serverName,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: LDAP TLS ServerName Extraction Fails

The TLS ServerName for LDAP connections is incorrectly extracted from LdapServer by trimming the port using strings.LastIndex(":"). This fails for bracketed IPv6 addresses, leaving brackets in the ServerName. The resulting invalid ServerName causes TLS SNI/hostname verification to fail, preventing successful LDAP logins.

Fix in Cursor Fix in Web

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.

1 participant