From 85a0cdf46c4ed3bb2444eaf6ca419ef6b1f9b4df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Tue, 21 May 2019 18:34:31 +0300 Subject: [PATCH] Fix runtime listener creation The "default" special keywords weren't removed. --- server/core/config_runtime.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/server/core/config_runtime.cc b/server/core/config_runtime.cc index f99291294..3158f6df2 100644 --- a/server/core/config_runtime.cc +++ b/server/core/config_runtime.cc @@ -1057,6 +1057,16 @@ bool runtime_create_listener(Service* service, proto = "mariadbclient"; } + if (auth && strcasecmp(auth, CN_DEFAULT) == 0) + { + // The protocol default authenticator is used + auth = nullptr; + } + if (auth_opt && strcasecmp(auth_opt, CN_DEFAULT) == 0) + { + auth_opt = nullptr; + } + MXS_CONFIG_PARAMETER params; bool ok; tie(ok, params) = load_defaults(proto, MODULE_PROTOCOL, CN_LISTENER);