/** * Returns the authentication implementation to use in LoginLdap based on certain * INI configuration values. * * @return Base */ public static function factory() { if (Config::shouldUseWebServerAuthentication()) { return WebServerAuth::makeConfigured(); } else { if (Config::getUseLdapForAuthentication()) { return LdapAuth::makeConfigured(); } else { return SynchronizedAuth::makeConfigured(); } } }