Compilation fixes

This commit is contained in:
Denis Glazachev 2020-11-20 02:26:52 +04:00
parent 279853b16a
commit be184272d8
2 changed files with 5 additions and 4 deletions

View File

@ -187,7 +187,8 @@ void LDAPAccessStorage::applyRoleChangeNoLock(bool grant, const UUID & role_id,
{
user_ids = memory_storage.findAll<User>();
}
else {
else
{
const auto it = users_per_roles.find(role_name);
if (it != users_per_roles.end())
{

View File

@ -465,7 +465,7 @@ bool LDAPSimpleAuthClient::authenticate(const LDAPSearchParamsList * search_para
#else // USE_LDAP
void LDAPClient::diag(const int)
void LDAPClient::diag(const int, String)
{
throw Exception("ClickHouse was built without LDAP support", ErrorCodes::FEATURE_IS_NOT_ENABLED_AT_BUILD_TIME);
}
@ -479,12 +479,12 @@ void LDAPClient::closeConnection() noexcept
{
}
LDAPSearchResults LDAPClient::search(const LDAPSearchParams & search_params)
LDAPSearchResults LDAPClient::search(const LDAPSearchParams &)
{
throw Exception("ClickHouse was built without LDAP support", ErrorCodes::FEATURE_IS_NOT_ENABLED_AT_BUILD_TIME);
}
bool LDAPSimpleAuthClient::authenticate()
bool LDAPSimpleAuthClient::authenticate(const LDAPSearchParamsList *, LDAPSearchResultsList *)
{
throw Exception("ClickHouse was built without LDAP support", ErrorCodes::FEATURE_IS_NOT_ENABLED_AT_BUILD_TIME);
}