Skip to content
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

LDAP: ldap_connect()/ldap_bind()/ldap_set_option() is unclear #3526

Open
Girgias opened this issue Jul 7, 2024 · 0 comments
Open

LDAP: ldap_connect()/ldap_bind()/ldap_set_option() is unclear #3526

Girgias opened this issue Jul 7, 2024 · 0 comments

Comments

@Girgias
Copy link
Member

Girgias commented Jul 7, 2024

I'm using PHP 8.2 and there are several inconsistencies in this all. First, ldap_connect does not actually perform connection. It basically just inits the whole thing. First connection is done by ldap_bind. This is actually stated here and turning on debugging perfectly shows this behavior.
Said, so, it would all make sense to be able to call ldap_set_option on a "connection" object, however it wouldn't work (for sure it doesn't as of PHP 8.2), especially with TLS related options. But it seems many other options you could not be set if not globally. And the actual issue with documentation is there is no reference about which parameters have to be specified together with a connection and which haven't.

Originally posted by @QcFe in #1722 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant