Skip to content

openldap: handle Curl_sasl_continue() returns better#22213

Closed
bagder wants to merge 1 commit into
masterfrom
bagder/oldap-sasl
Closed

openldap: handle Curl_sasl_continue() returns better#22213
bagder wants to merge 1 commit into
masterfrom
bagder/oldap-sasl

Conversation

@bagder

@bagder bagder commented Jun 29, 2026

Copy link
Copy Markdown
Member

Similar to how it gets treated already in other protocol handlers.

Follow-up to eeca818

Reported-by: Eunsoo Kim

Similar to how it gets treated already in other protocol handlers.

Follow-up to eeca818

Reported-by: Eunsoo Kim
@bagder bagder added the LDAP label Jun 29, 2026
@bagder bagder marked this pull request as ready for review June 29, 2026 09:14
@bagder bagder requested a review from Copilot June 29, 2026 09:15

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the OpenLDAP protocol handler to treat Curl_sasl_continue() progress results consistently with other SASL-capable protocol handlers (e.g., SMTP/IMAP/POP3), particularly when SASL authentication is cancelled and no mechanisms remain.

Changes:

  • Handle Curl_sasl_continue() progress via an explicit switch rather than the previous progress != SASL_INPROGRESS condition.
  • Treat SASL_DONE as successful authentication (transition to OLDAP_STOP) and SASL_IDLE as an authentication cancellation (fail with CURLE_LOGIN_DENIED).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@bagder bagder closed this in ea71c3b Jun 29, 2026
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