You are here

function LDAPInterface::setOption in LDAP integration 5.2

Same name and namespace in other branches
  1. 5 ldap_integration/LDAPInterface.php \LDAPInterface::setOption()
  2. 6 includes/LDAPInterface.inc \LDAPInterface::setOption()

File

ldap_integration/LDAPInterface.php, line 25

Class

LDAPInterface

Code

function setOption($option, $value) {
  switch ($option) {
    case 'name':
      $this->name = $value;
      break;
    case 'server':
      $this->server = $value;
      break;
    case 'port':
      $this->port = $value;
      break;
    case 'tls':
      $this->tls = $value;
      break;
    case 'encrypted':
      $this->encrypted = $value;
      break;
    case 'user_attr':
      $this->user_attr = $value;
      break;
    case 'attr_filter':
      $this->attr_filter = $value;
      break;
    case 'basedn':
      $this->basedn = $value;
      break;
    case 'mail_attr':
      $this->mail_attr = $value;
      break;
  }
}