Skip OmniAuth init when LDAP is disabled

王权利请求将github/fork/mr-vinn/fix-omniauth-init合并到master

Created by: mr-vinn

The OmniAuth initializer uses config settings that are only assigned when LDAP is enabled or when GitLab is run in the test environment, so those same conditions should be applied to the initializer itself.

合并请求报告