Skip to content

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

Open
@Girgias

Description

@Girgias

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions