#pragma once #include #include #include #include #include namespace Poco { class Logger; namespace Util { class AbstractConfiguration; } } namespace DB { class ExternalAuthenticators { public: explicit ExternalAuthenticators(const Poco::Util::AbstractConfiguration & config, Poco::Logger * log); void setLDAPServerParams(const String & server, const LDAPServerParams & params); LDAPServerParams getLDAPServerParams(const String & server) const; private: mutable std::mutex mutex; std::map ldap_server_params; }; }