It correctly lets an existing SAML user to add their LDAP identity automatically at login.
A customer had issues with the
auto_link_ldap_user feature. The flow was not working if there was an account with a SAML identity, but no LDAP identity. GitLab would pick up the correct LDAP person, but due to the order of the flow, that LDAP person was never associated with the user.
Fixes #17346 (closed)