This PR is based off of #18442.
This issue is in "needs review" but there has been no activity for 7 days. ping @matomo-org/core-reviewers
This issue is in "needs review" but there has been no activity for 7 days. ping @matomo-org/core-reviewers
tested via loginldap settings page which uses ajax-form (only other use is in LoginSaml I believe)