def METHOD_NAME(self):
    """Test the directbind method."""
    self.client.logout()
    self.directbind_mode()
    username = "testuser"
    self.client.login(username=username, password="test")
    self.check_created_user(username + "@example.com")
    # 1: must work because usernames of domain admins are not
    # always email addresses
    self.set_global_parameters({
        "ldap_admin_groups": "admins",
        "ldap_groups_search_base": "ou=groups,dc=example,dc=com"
    })
    username = "mailadmin"
    self.authenticate(username, "test", False)
    self.check_created_user("mailadmin@example.com", "DomainAdmins", False)