protected function LdapServerAdmin::populateFromDrupalForm in Lightweight Directory Access Protocol (LDAP) 7.2
Same name and namespace in other branches
- 8.2 ldap_servers/LdapServerAdmin.class.php \LdapServerAdmin::populateFromDrupalForm()
- 7 ldap_servers/LdapServerAdmin.class.php \LdapServerAdmin::populateFromDrupalForm()
3 calls to LdapServerAdmin::populateFromDrupalForm()
- LdapServerAdmin::drupalFormSubmit in ldap_servers/
LdapServerAdmin.class.php - LdapServerAdmin::drupalFormValidate in ldap_servers/
LdapServerAdmin.class.php - LdapServerAdmin::drupalFormWarnings in ldap_servers/
LdapServerAdmin.class.php
File
- ldap_servers/
LdapServerAdmin.class.php, line 59
Class
Code
protected function populateFromDrupalForm($op, $values) {
$this->inDatabase = $op == 'edit';
$this->sid = trim($values['sid']);
$this->name = trim($values['name']);
$this->status = $values['status'] ? 1 : 0;
$this->ldap_type = trim($values['ldap_type']);
$this->address = trim($values['address']);
$this->port = trim($values['port']);
$this->tls = trim($values['tls']);
$this->followrefs = trim($values['followrefs']);
$this->bind_method = trim($values['bind_method']);
$this->binddn = trim($values['binddn']);
if (trim($values['bindpw'])) {
$this->bindpw_new = trim($values['bindpw']);
}
$this->user_dn_expression = trim($values['user_dn_expression']);
$this->basedn = $this
->linesToArray(trim($values['basedn']));
$this->user_attr = drupal_strtolower(trim($values['user_attr']));
$this->picture_attr = drupal_strtolower(trim($values['picture_attr']));
$this->account_name_attr = drupal_strtolower(trim($values['account_name_attr']));
$this->mail_attr = drupal_strtolower(trim($values['mail_attr']));
$this->mail_template = trim($values['mail_template']);
$this->unique_persistent_attr = drupal_strtolower(trim($values['unique_persistent_attr']));
$this->unique_persistent_attr_binary = trim($values['unique_persistent_attr_binary']);
$this->ldapToDrupalUserPhp = $values['ldap_to_drupal_user'];
$this->testingDrupalUsername = trim($values['testing_drupal_username']);
$this->testingDrupalUserDn = trim($values['testing_drupal_user_dn']);
$this->groupFunctionalityUnused = $values['grp_unused'];
$this->groupObjectClass = drupal_strtolower(trim($values['grp_object_cat']));
$this->groupNested = trim($values['grp_nested']);
$this->groupUserMembershipsAttrExists = trim($values['grp_user_memb_attr_exists']);
$this->groupUserMembershipsAttr = drupal_strtolower(trim($values['grp_user_memb_attr']));
$this->groupMembershipsAttr = drupal_strtolower(trim($values['grp_memb_attr']));
$this->groupMembershipsAttrMatchingUserAttr = drupal_strtolower(trim($values['grp_memb_attr_match_user_attr']));
$this->groupDeriveFromDn = trim($values['grp_derive_from_dn']);
$this->groupDeriveFromDnAttr = drupal_strtolower(trim($values['grp_derive_from_dn_attr']));
$this->groupTestGroupDn = trim($values['grp_test_grp_dn']);
$this->groupTestGroupDnWriteable = trim($values['grp_test_grp_dn_writeable']);
$this->searchPagination = $values['search_pagination'] ? 1 : 0;
$this->searchPageSize = trim($values['search_page_size']);
}