
The dbusers.c was a MySQL protocol specific file which was used directly by some of the modules. Added a new return value for the loadusers authenticator entry point which allows fatal failures to occur when users are loaded. Currently this is only taken into notice when the service is first started. If a listener later returns a fatal error, it is only logged but the service stays in operation. Moved the MySQLAuth authenticator sources and the tests that relate to this module into a subdirectory in the authenticator directory. Eventually, all authenticators could have a subdirectory of their own.
11 lines
409 B
CMake
11 lines
409 B
CMake
add_library(MySQLAuth SHARED mysql_auth.c dbusers.c)
|
|
target_link_libraries(MySQLAuth maxscale-common MySQLCommon)
|
|
set_target_properties(MySQLAuth PROPERTIES VERSION "1.0.0")
|
|
install_module(MySQLAuth core)
|
|
|
|
if (BUILD_TESTS)
|
|
add_executable(test_mysql_users test_mysql_users.c)
|
|
target_link_libraries(test_mysql_users MySQLAuth MySQLCommon maxscale-common)
|
|
add_test(TestMySQLUsers test_mysql_users)
|
|
endif()
|