Bugfix: ldap_connect() ignores argument when given an URI #1278
ldap_connect() ignores the port argument, if $hostname is in the Form of an ldap-URI (like ldaps://....), therefore the $port must be added to the first argument, if an URI is present, otherwise it allways tries to use Port 636.
This is a quick fix, which probably needs some further adjustment.
The file you have edited is really only supposed to be a thin wrapper around the core PHP functions so I'd prefer to not add any logic in that file.
There should already be logic to handle this:
Does the existing code not handle your use-case? If not, please can you confirm the format of your
(Our LDAP Server runs on a different port then default AND uses LDAPS-Encryption).
The logic quoted seems incorrect, because
When I feed my