Repository navigation
Conversation
Introduce `LDAPObject.sasl_bind()` for asynchronous SASL bind using libldap `ldap_sasl_bind()`. Issue: #577
spaceone
force-pushed
the
feat/asynchronous-sasl-binds
branch
from
October 9, 2026 19:28
a05d3e2 to
9f2c55b
Compare
droideck
reviewed
Oct 21, 2026
| .. py:method:: LDAPObject.sasl_bind(dn, mechanism, cred[, serverctrls=None [, clientctrls=None]]) -> int | ||
|
|
||
| Send a SASL bind request asynchronously and return its message ID. Use | ||
| :py:meth:`result()` with the message ID to retrieve the bind response. |
Member
There was a problem hiding this comment.
Is this intentionally limited to exchanges that do not need server SASL tokens, such as EXTERNAL? In a working CRAM-MD5 setup, result()/result4() consume the response and raise SASL_BIND_IN_PROGRESS without the challenge.
I'd leave @mistotebe to check this as he's a bit more proficient in the area, I think.
I'm not sure if we just should document the intended limit, or expose serverSaslCreds before freeing the response if challenge/response is in scope...
Contributor
Author
|
storage for after-pytest-migration: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduce
LDAPObject.sasl_bind()for asynchronous SASL bind using libldapldap_sasl_bind().Issue: #577