LDAP: ldap_connect()
/ldap_bind()
/ldap_set_option()
is unclear
#3526
Labels
ldap_connect()
/ldap_bind()
/ldap_set_option()
is unclear
#3526
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 byldap_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)
The text was updated successfully, but these errors were encountered: