function LDAPInterface::setOption in LDAP integration 6
Same name and namespace in other branches
- 5.2 ldap_integration/LDAPInterface.php \LDAPInterface::setOption()
- 5 ldap_integration/LDAPInterface.php \LDAPInterface::setOption()
File
- includes/
LDAPInterface.inc, line 32 - LDAPInterface class definition.
Class
- LDAPInterface
- @file LDAPInterface class definition.
Code
function setOption($option, $value) {
switch ($option) {
case 'sid':
$this->sid = $value;
break;
case 'name':
$this->name = $value;
break;
case 'machine_name':
$this->machine_name = $value;
break;
case 'server':
$this->server = $value;
break;
case 'port':
$this->port = $value;
break;
case 'tls':
$this->tls = $value;
break;
case 'enc_type':
$this->enc_type = $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;
case 'puid_attr':
$this->puid_attr = $value;
break;
case 'binary_puid':
$this->binary_puid = $value;
break;
case 'binddn':
$this->binddn = $value;
break;
case 'bindpw':
$this->bindpw = $value;
break;
}
}