Details
-
New Feature
-
Resolution: Fixed
-
Major
-
None
-
Professional Edition, Enterprise Edition, CE-21.10
-
None
Description
Currently it is not possible to use ldaps when using auth_mechanism => ldap.
A simple implementation could be by checking the port if it has the value 636
File => html/includes/authentication/ldap.inc.php
ldap_connect modified => line 111-116
104-function ldap_init() |
105-{ |
106- global $ds, $config; |
107- |
108- if (!is_resource($ds)) |
109- { |
110- print_debug('LDAP[Connecting to ' . implode(' ',$config['auth_ldap_server']) . ']'); |
111: if ($config['auth_ldap_port'] === 636) |
112- { |
113- $ds = @ldap_connect(implode(' ',preg_filter('/^/', 'ldaps://', $config['auth_ldap_server'])), $config['auth_ldap_port']); |
114- } else { |
115- $ds = @ldap_connect(implode(' ',$config['auth_ldap_server']), $config['auth_ldap_port']); |
116- } |
|
I tried it in our test env by connecting to MS AD server and it works as expected.