Open rkochis opened 8 years ago
when using ssl, you need to create a connection string as follows since it's using ldaps and you can't pass in the port variable. This breaks ssl connections on ports other than 636 since that is the default if no port is specified.
src/Connections/Ldap.php: lines 340-342 Add: return $this->connection = ldap_connect($protocol.$hostname.":$port");
public function connect($hostname, $port = '389') { $protocol = $this::PROTOCOL; if ($this->isUsingSSL()) { $protocol = $this::PROTOCOL_SSL; return $this->connection = ldap_connect($protocol.$hostname.":$port"); } return $this->connection = ldap_connect($protocol.$hostname, $port); }
when using ssl, you need to create a connection string as follows since it's using ldaps and you can't pass in the port variable. This breaks ssl connections on ports other than 636 since that is the default if no port is specified.
src/Connections/Ldap.php: lines 340-342 Add: return $this->connection = ldap_connect($protocol.$hostname.":$port");