Skip to content

ldap: call ldap_init() before setting the options#19830

Closed
bagder wants to merge 1 commit into
masterfrom
bagder/ldap-init
Closed

ldap: call ldap_init() before setting the options#19830
bagder wants to merge 1 commit into
masterfrom
bagder/ldap-init

Conversation

@bagder

@bagder bagder commented Dec 4, 2025

Copy link
Copy Markdown
Member

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
Comment thread lib/ldap.c
if(ldap_ssl) {
#ifdef HAVE_LDAP_SSL
#ifdef USE_WIN32_LDAP
/* Win32 LDAP SDK does not support insecure mode without CA! */

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
vszakats added a commit to vszakats/curl that referenced this pull request Mar 15, 2026
Regression in 8.18.0.

Reported-by: Yoshiro Yoneya
Fixes curl#20927
Follow-up to 39d1976 curl#19830
vszakats added a commit that referenced this pull request Mar 16, 2026
Regression since curl 8.18.0.

Reported-by: Yoshiro Yoneya
Fixes #20927
Follow-up to 39d1976 #19830

Closes #20928
vszakats added a commit that referenced this pull request Mar 16, 2026
Already set after `ldap_sslinit()`/`ldap_init()` and before
`ldap_ssl`-specific initialization.

Follow-up to 39d1976 #19830
Follow-up to b41e65a
Follow-up to b91421b

Closes #20930
outcast36 pushed a commit to greearb/curl that referenced this pull request Jun 3, 2026
Regression since curl 8.18.0.

Reported-by: Yoshiro Yoneya
Fixes curl#20927
Follow-up to 39d1976 curl#19830

Closes curl#20928
outcast36 pushed a commit to greearb/curl that referenced this pull request Jun 3, 2026
Already set after `ldap_sslinit()`/`ldap_init()` and before
`ldap_ssl`-specific initialization.

Follow-up to 39d1976 curl#19830
Follow-up to b41e65a
Follow-up to b91421b

Closes curl#20930
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