Skip to content

Conversation

@bagder
Copy link
Member

@bagder bagder commented Dec 4, 2025

No description provided.

@bagder bagder added the LDAP label Dec 4, 2025
@bagder bagder marked this pull request as ready for review December 4, 2025 12:36
if(ldap_ssl) {
#ifdef HAVE_LDAP_SSL
#ifdef USE_WIN32_LDAP
/* Win32 LDAP SDK does not support insecure mode without CA! */
Copy link
Member

Choose a reason for hiding this comment

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

Maybe move this comment to stay above ldap_sslinit()?
It seems to be referring to the secure (3rd) option of it.

https://learn.microsoft.com/windows/win32/api/winldap/nf-winldap-ldap_sslinit

Copy link
Member Author

Choose a reason for hiding this comment

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

In my mind the comment explains why the #ifdef is like that and the verifypeer logic is not applied to the windows part - more than the sslinit call.

Copy link
Member

Choose a reason for hiding this comment

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

It may be, yes. It may also apply somewhat to the setopt line.
The comment also reads a little ambiguous.

@bagder bagder closed this in 39d1976 Dec 4, 2025
@bagder bagder deleted the bagder/ldap-init branch December 12, 2025 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants