As HD said, if you have to, it should be possible to implement an endpoint to authenticate against a remote user store, if the remote user store provide relevant authentication APIs.
But it might be better, or easier to import/migrate the existing users into a LDAP/CA SSO/internal IDP.