Add domain config to LDAP user group backends if the backend is not linked w/ a LDAP user backend

refs #2153
This commit is contained in:
Eric Lippmann 2017-06-07 15:38:00 +02:00 committed by Alexander A. Klimov
parent 9ac8253290
commit 9599f6672f
1 changed files with 11 additions and 0 deletions

View File

@ -294,6 +294,16 @@ class LdapUserGroupBackendForm extends Form
'value' => $defaults->user_base_dn
)
);
$this->addElement(
'text',
'domain',
array(
'label' => $this->translate('Domain'),
'description' => $this->translate(
'The domain the LDAP server is responsible for.'
)
)
);
}
/**
@ -307,6 +317,7 @@ class LdapUserGroupBackendForm extends Form
$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));
$this->addElement('hidden', 'domain', array('disabled' => true));
}
/**