diff --git a/src/Access/ExternalAuthenticators.cpp b/src/Access/ExternalAuthenticators.cpp index 9a65c494cc0..e1c598f26f5 100644 --- a/src/Access/ExternalAuthenticators.cpp +++ b/src/Access/ExternalAuthenticators.cpp @@ -189,7 +189,7 @@ void parseLDAPServer(LDAPClient::Params & params, const Poco::Util::AbstractConf params.port = (params.enable_tls == LDAPClient::Params::TLSEnable::YES ? 636 : 389); if (has_search_limit) - params.search_limit = config.getUInt64(ldap_server_config + ".search_limit"); + params.search_limit = static_cast(config.getUInt64(ldap_server_config + ".search_limit")); } void parseKerberosParams(GSSAcceptorContext::Params & params, const Poco::Util::AbstractConfiguration & config) diff --git a/src/Access/LDAPClient.cpp b/src/Access/LDAPClient.cpp index 25f7607b65c..856ffd18a32 100644 --- a/src/Access/LDAPClient.cpp +++ b/src/Access/LDAPClient.cpp @@ -275,7 +275,7 @@ bool LDAPClient::openConnection() } { - const int size_limit = params.search_limit; + const int size_limit = static_cast(params.search_limit); handleError(ldap_set_option(handle, LDAP_OPT_SIZELIMIT, &size_limit)); }