ClickHouse/src/Access/ExternalAuthenticators.h

40 lines
666 B
C++
Raw Normal View History

2020-05-27 21:06:33 +00:00
#pragma once
#include <Access/LDAPParams.h>
#include <Core/Types.h>
#include <map>
#include <memory>
2020-05-27 21:06:33 +00:00
#include <mutex>
namespace Poco
{
class Logger;
namespace Util
{
class AbstractConfiguration;
}
}
2020-05-27 21:06:33 +00:00
namespace DB
{
class ExternalAuthenticators
{
public:
void reset();
void setConfig(const Poco::Util::AbstractConfiguration & config, Poco::Logger * log);
2020-05-27 21:06:33 +00:00
void setLDAPServerParams(const String & server, const LDAPServerParams & params);
LDAPServerParams getLDAPServerParams(const String & server) const;
private:
mutable std::recursive_mutex mutex;
2020-05-27 21:06:33 +00:00
std::map<String, LDAPServerParams> ldap_server_params;
};
}