def METHOD_NAME(self):
    """Apply settings required by the directbind mode."""
    self.set_global_parameters({
        "ldap_auth_method": "directbind",
        "ldap_user_dn_template": "cn=%(user)s,ou=users,dc=example,dc=com"
    })