-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Ldap] Add support for sasl_bind
and whoami
LDAP operations
#58042
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
manu0401
commented
Aug 20, 2024
Q | A |
---|---|
Branch? | 7.2 |
Bug fix? | yes |
New feature? | yes |
Deprecations? | no |
Issues | |
License | MIT |
This comment was marked as resolved.
This comment was marked as resolved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this cannot be accepted without tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for submitting.
27dba3b
to
568bba1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I pushed a commit with the CS fixes I had in mind.
Happy to see you here BTW @manu0401 ;)
568bba1
to
b63aa9c
Compare
I was wondering: would it make sense to remove the whoami method and make saslBind return it instead? Would that cover the related use cases or would that be restrictive? |
Thank you for committing. I would leave saslBind and whoami as distinct methods. Code transitioning from native PHP function calls to Symfony will be easier to port if you stick to the original functions behavior. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some CS change suggestions.
If Code won't magically be compatible with symfony/ldap and ext-ldap APIs anyway even if the method names are similar to the ext-ldap API. |
I am not sure it is carved into stone that authz_id cannot change without a new sasl_bind(). One could imagine that the server grants you a proxy identity for only one operation, for instance. I do not know if the use case exists, but at least it would be possible to do it. |
b63aa9c
to
d2a765f
Compare
d2a765f
to
0df0653
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the discussion. Works for me as is.
I addressed the last CS comments.
Thank you @manu0401. |
sasl_bind
and whoami
LDAP operations