parent
00880710ed
commit
319f648b32
|
@ -92,6 +92,8 @@ class LdapUserGroupBackendForm extends Form
|
||||||
$this->createGroupConfigElements($defaults, $groupConfigDisabled);
|
$this->createGroupConfigElements($defaults, $groupConfigDisabled);
|
||||||
if (count($userBackends) === 1 || (isset($formData['user_backend']) && $formData['user_backend'] === 'none')) {
|
if (count($userBackends) === 1 || (isset($formData['user_backend']) && $formData['user_backend'] === 'none')) {
|
||||||
$this->createUserConfigElements($defaults, $userConfigDisabled);
|
$this->createUserConfigElements($defaults, $userConfigDisabled);
|
||||||
|
} else {
|
||||||
|
$this->createHiddenUserConfigElements();
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->addElement(
|
$this->addElement(
|
||||||
|
@ -278,6 +280,17 @@ class LdapUserGroupBackendForm extends Form
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create and add all elements to this form required for the user configuration as hidden
|
||||||
|
*/
|
||||||
|
protected function createHiddenUserConfigElements()
|
||||||
|
{
|
||||||
|
$this->addElement('hidden', 'user_class', array('disabled' => true));
|
||||||
|
$this->addElement('hidden', 'user_filter', array('disabled' => true));
|
||||||
|
$this->addElement('hidden', 'user_name_attribute', array('disabled' => true));
|
||||||
|
$this->addElement('hidden', 'user_base_dn', array('disabled' => true));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the names of all configured LDAP resources
|
* Return the names of all configured LDAP resources
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue