Move optional base_dn to end of form

This commit is contained in:
Matthias Jentsch 2014-10-14 14:44:31 +02:00
parent 9a9aa84e23
commit 771149e8d6
1 changed files with 10 additions and 10 deletions

View File

@ -70,15 +70,6 @@ class LdapBackendForm extends Form
: array()
)
);
$this->addElement(
'text',
'base_dn',
array(
'required' => true,
'label' => t('Bind DN'),
'description' => t('The path where users can be found on the ldap server')
)
);
$this->addElement(
'text',
'user_class',
@ -107,7 +98,16 @@ class LdapBackendForm extends Form
'value' => 'ldap'
)
);
$this->addElement(
'text',
'base_dn',
array(
'required' => false,
'label' => t('Base DN'),
'description' => t('The path where users can be found on the ldap server. ' .
' Leave empty to select all users available on the specified resource.')
)
);
return $this;
}