Beispiel #1
0
 /**
  * Sets the useSSO property.
  * Set whether to use SSO.
  * Requires ldap_sasl_bind support. Be sure --with-ldap-sasl is used when configuring PHP otherwise this function will be undefined.
  *
  * @param bool $useSSO
  *
  * @throws AdldapException
  */
 public function setUseSSO($useSSO)
 {
     if ($useSSO === true && !$this->ldapConnection->isSaslSupported()) {
         throw new AdldapException('No LDAP SASL support for PHP.  See: http://www.php.net/ldap_sasl_bind');
     }
     $this->ldapConnection->useSSO();
 }