protected function LdapServerAdmin::entry in Lightweight Directory Access Protocol (LDAP) 7
1 call to LdapServerAdmin::entry()
- LdapServerAdmin::save in ldap_servers/
LdapServerAdmin.class.php
File
- ldap_servers/
LdapServerAdmin.class.php, line 83
Class
Code
protected function entry() {
$entry = $this;
foreach ($this
->field_to_properties_map() as $field_name => $property_name) {
$entry->{$field_name} = $this->{$property_name};
}
if (isset($this->bindpw) && $this->bindpw) {
$entry->bindpw = ldap_servers_encrypt($this->bindpw);
}
if ($this->bindpw_new) {
$entry->bindpw = ldap_servers_encrypt($this->bindpw_new);
}
elseif ($this->bindpw_clear) {
$entry->bindpw = NULL;
}
$entry->tls = (int) $entry->tls;
return $entry;
}