/** * Sets the useTLS property * Set whether to use TLS. * * @param bool $useTLS */ public function setUseTLS($useTLS) { if ($useTLS) { $this->ldapConnection->useTLS(); } }