You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A little bug when trying to use a custom port to access the Ldap server.
To Reproduce
Steps to reproduce the behavior:
In 'LDAP/config_ldap.php', put a custom port to $ldap_port (of course, you need to have your Ldap server listening to that port)
Connections to Ldap server are all on port 389
Project (please complete the following information):
Project Version: cloned the master few days ago
Additional context
The problem is in LDAP/LDAP.php file, line 40: $ldap = ldap_connect($ldap_host, $ldap_port)
From https://www.php.net/manual/en/function.ldap-connect.php, the use of the port as a second parameter is deprecated.
They kept it for backwards compatibility, but you have to place the port in the Uri transmitted as the first parameter.
Describe the bug
A little bug when trying to use a custom port to access the Ldap server.
To Reproduce
Steps to reproduce the behavior:
Project (please complete the following information):
Additional context
The problem is in LDAP/LDAP.php file, line 40:
$ldap = ldap_connect($ldap_host, $ldap_port)
From https://www.php.net/manual/en/function.ldap-connect.php, the use of the port as a second parameter is deprecated.
They kept it for backwards compatibility, but you have to place the port in the Uri transmitted as the first parameter.
(careful to not end the ldap_host option with a slash)
And now it connects on the right port.
The text was updated successfully, but these errors were encountered: