function LDAPInterface::setOption in LDAP integration 5
Same name and namespace in other branches
- 5.2 ldap_integration/LDAPInterface.php \LDAPInterface::setOption()
- 6 includes/LDAPInterface.inc \LDAPInterface::setOption()
File
- ldap_integration/
LDAPInterface.php, line 26
Class
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;
}
}