It combines data from all underlying auth tables. Supports gentle full load and per role reloads. Loading is done on shard 0 and then deep copies data to all shards.
52 lines
1.2 KiB
CMake
52 lines
1.2 KiB
CMake
include(add_whole_archive)
|
|
find_package(OpenLDAP REQUIRED
|
|
ldap)
|
|
|
|
add_library(scylla_auth STATIC)
|
|
target_sources(scylla_auth
|
|
PRIVATE
|
|
allow_all_authenticator.cc
|
|
allow_all_authorizer.cc
|
|
authenticated_user.cc
|
|
authenticator.cc
|
|
cache.cc
|
|
certificate_authenticator.cc
|
|
common.cc
|
|
default_authorizer.cc
|
|
ldap_role_manager.cc
|
|
password_authenticator.cc
|
|
passwords.cc
|
|
permission.cc
|
|
permissions_cache.cc
|
|
resource.cc
|
|
role_or_anonymous.cc
|
|
roles-metadata.cc
|
|
sasl_challenge.cc
|
|
saslauthd_authenticator.cc
|
|
service.cc
|
|
standard_role_manager.cc
|
|
transitional.cc
|
|
maintenance_socket_role_manager.cc)
|
|
target_include_directories(scylla_auth
|
|
PUBLIC
|
|
${CMAKE_SOURCE_DIR})
|
|
target_link_libraries(scylla_auth
|
|
PUBLIC
|
|
Seastar::seastar
|
|
xxHash::xxhash
|
|
PRIVATE
|
|
absl::headers
|
|
OpenLDAP::ldap
|
|
cql3
|
|
idl
|
|
ldap
|
|
wasmtime_bindings
|
|
libxcrypt::libxcrypt)
|
|
|
|
add_whole_archive(auth scylla_auth)
|
|
|
|
if (Scylla_USE_PRECOMPILED_HEADER_USE)
|
|
target_precompile_headers(scylla_auth REUSE_FROM scylla-precompiled-header)
|
|
endif()
|
|
check_headers(check-headers scylla_auth
|
|
GLOB_RECURSE ${CMAKE_CURRENT_SOURCE_DIR}/*.hh) |