the existence of former ldap users doesn't imply LDAP is enabled.
Created by: jcockhren
When ldap is disabled in the gitlab config, this fixes the API still calling the ldap backend. This solves #6188 (closed) and is a likely cause for #4730 (closed)