/** * Set whether to use SSL on the * current ldap connection. * * @param bool $useSSL */ public function setUseSSL($useSSL) { // Make sure we set the correct SSL port if using SSL if ($useSSL) { $this->ldapConnection->useSSL(); $this->setPort(ConnectionInterface::PORT_SSL); } else { $this->setPort(ConnectionInterface::PORT); } }