def METHOD_NAME(self):
    """Update password for an LDAP user."""
    self.activate_ldap_authentication()
    self.searchbind_mode()
    username = "testuser@example.com"
    self.authenticate(username, "test")
    self.ajax_post(
        reverse("core:user_profile"),
        {"language": "en", "oldpassword": "test",
         "newpassword": "Toto1234", "confirmation": "Toto1234"}
    )
    self.authenticate(username, "Toto1234", False)