mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 13:42:02 +00:00
fix
This commit is contained in:
parent
c6910f39b9
commit
6ddd76c5a0
@ -1475,9 +1475,8 @@ void TCPHandler::receiveQuery()
|
|||||||
session->authenticate(AlwaysAllowCredentials{client_info.initial_user}, client_info.initial_address);
|
session->authenticate(AlwaysAllowCredentials{client_info.initial_user}, client_info.initial_address);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
auto exception = Exception(
|
auto exception = Exception(ErrorCodes::AUTHENTICATION_FAILED,
|
||||||
"Inter-server secret support is disabled, because ClickHouse was built without SSL library",
|
"Inter-server secret support is disabled, because ClickHouse was built without SSL library");
|
||||||
ErrorCodes::AUTHENTICATION_FAILED);
|
|
||||||
session->onAuthenticationFailure(/* user_name */ std::nullopt, socket().peerAddress(), exception);
|
session->onAuthenticationFailure(/* user_name */ std::nullopt, socket().peerAddress(), exception);
|
||||||
throw exception; /// NOLINT
|
throw exception; /// NOLINT
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user