Allow anonymous LDAP binding

fixes #9224
This commit is contained in:
Eric Lippmann 2015-05-22 14:15:59 +02:00
parent 83a6e85b5d
commit 250f863faa

View File

@ -113,16 +113,17 @@ class LdapResourceForm extends Form
'text', 'text',
'bind_dn', 'bind_dn',
array( array(
'required' => true,
'label' => $this->translate('Bind DN'), 'label' => $this->translate('Bind DN'),
'description' => $this->translate('The user dn to use for querying the ldap server') 'description' => $this->translate(
'The user dn to use for querying the ldap server. Leave the dn and password empty for attempting'
. ' an anonymous bind'
)
) )
); );
$this->addElement( $this->addElement(
'password', 'password',
'bind_pw', 'bind_pw',
array( array(
'required' => true,
'renderPassword' => true, 'renderPassword' => true,
'label' => $this->translate('Bind Password'), 'label' => $this->translate('Bind Password'),
'description' => $this->translate('The password to use for querying the ldap server') 'description' => $this->translate('The password to use for querying the ldap server')