Conversation
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.
|
Hi @Fahrplan, 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: BookStack/app/Auth/Access/LdapService.php Lines 166 to 183 in 25bc28a Does the existing code not handle your use-case? If not, please can you confirm the format of your |
|
Hi @ssddanbrown, My
(Our LDAP Server runs on a different port then default AND uses LDAPS-Encryption). The logic quoted seems incorrect, because When I feed my
and the After that |
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.