MXS-1957 Add MariaDBAuth alias

This commit is contained in:
Marko
2019-05-09 11:24:58 +03:00
parent 9810c5fa69
commit 50fef6f361
8 changed files with 13 additions and 12 deletions

View File

@ -68,6 +68,7 @@ static NAME_MAPPING name_mappings[] =
{MODULE_MONITOR, "mysqlmon", "mariadbmon", false},
{MODULE_PROTOCOL, "mysqlclient", "mariadbclient", false},
{MODULE_PROTOCOL, "mysqlbackend", "mariadbbackend", false},
{MODULE_AUTHENTICATOR, "mysqlauth", "mariadbauth", false},
{MODULE_AUTHENTICATOR, "mysqlbackendauth", "mariadbbackendauth", false}
};

View File

@ -5,7 +5,7 @@ endif()
add_subdirectory(GSSAPI)
add_subdirectory(HTTPAuth)
add_subdirectory(MaxAdminAuth)
add_subdirectory(MySQLAuth)
add_subdirectory(MariaDBAuth)
add_subdirectory(MariaDBBackendAuth)
add_subdirectory(NullAuthAllow)
add_subdirectory(NullAuthDeny)

View File

@ -0,0 +1,8 @@
if(SQLITE_VERSION VERSION_LESS 3.3 AND NOT BUILD_SYSTEM_TESTS)
message(FATAL_ERROR "SQLite version 3.3 or higher is required")
else()
add_library(mariadbauth SHARED mysql_auth.cc dbusers.cc)
target_link_libraries(mariadbauth maxscale-common mysqlcommon)
set_target_properties(mariadbauth PROPERTIES VERSION "1.0.0" LINK_FLAGS -Wl,-z,defs)
install_module(mariadbauth core)
endif()

View File

@ -12,7 +12,7 @@
*/
#pragma once
#define MXS_MODULE_NAME "MySQLAuth"
#define MXS_MODULE_NAME "MariaDBAuth"
#include <maxscale/ccdefs.hh>

View File

@ -1,8 +0,0 @@
if(SQLITE_VERSION VERSION_LESS 3.3 AND NOT BUILD_SYSTEM_TESTS)
message(FATAL_ERROR "SQLite version 3.3 or higher is required")
else()
add_library(mysqlauth SHARED mysql_auth.cc dbusers.cc)
target_link_libraries(mysqlauth maxscale-common mysqlcommon)
set_target_properties(mysqlauth PROPERTIES VERSION "1.0.0" LINK_FLAGS -Wl,-z,defs)
install_module(mysqlauth core)
endif()

View File

@ -1,7 +1,7 @@
add_library(mariadbbackend SHARED mysql_backend.cc)
# TODO: Refactor mariadbbackend so that COM_CHANGE_USER processing is
# transparent to the protocol module. After this change, we don't need to
# link against mysqlauth.
target_link_libraries(mariadbbackend maxscale-common mysqlcommon mysqlauth)
# link against mariadbauth.
target_link_libraries(mariadbbackend maxscale-common mysqlcommon mariadbauth)
set_target_properties(mariadbbackend PROPERTIES VERSION "2.0.0")
install_module(mariadbbackend core)