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 . ']');
}