SimpleSAML_Auth_LDAP::setOption PHP Method

setOption() public method

Applies an LDAP option to the current connection.
public setOption ( $option, $value ) : void
$option
$value
return void
    public function setOption($option, $value)
    {
        // Attempt to set the LDAP option
        if (!@ldap_set_option($this->ldap, $option, $value)) {
            throw $this->makeException('ldap:LdapConnection->setOption : Failed to set LDAP option [' . $option . '] with the value [' . $value . '] error: ' . ldap_error($this->ldap), ERR_INTERNAL);
        }
        // Log debug message
        SimpleSAML\Logger::debug('ldap:LdapConnection->setOption : Set the LDAP option [' . $option . '] with the value [' . $value . ']');
    }