Fix broken Git over HTTP clones with LDAP users

Stan Hu requested to merge sh-fix-broken-ldap-clones into master

Due to a regression in !20608 (merged), the LDAP authenticator was not being used unless OmniAuth was enabled. This change allows the LDAP provider to be used if it is configured regardless of the OmniAuth setting.

Closes #50579 (closed)

Merge request reports