mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-18 05:51:26 +02:00
Improve coverage
This commit is contained in:
@@ -100,6 +100,12 @@ class LDAPAuthenticationTestCase(LDAPTestCaseMixin, ModoTestCase):
|
||||
def test_searchbind_authentication(self):
|
||||
"""Test the bind&search method."""
|
||||
self.searchbind_mode()
|
||||
self.set_global_parameters(
|
||||
{
|
||||
"ldap_admin_groups": "",
|
||||
"ldap_groups_search_base": "",
|
||||
}
|
||||
)
|
||||
username = "testuser@example.com"
|
||||
self.authenticate(username, "test")
|
||||
self.check_created_user(username)
|
||||
|
||||
Reference in New Issue
Block a user