diff options
Diffstat (limited to 'qpid/cpp/src/qpid/broker/SaslAuthenticator.cpp')
-rw-r--r-- | qpid/cpp/src/qpid/broker/SaslAuthenticator.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/broker/SaslAuthenticator.cpp b/qpid/cpp/src/qpid/broker/SaslAuthenticator.cpp index cfbd7aaa66..d5ada6f3a5 100644 --- a/qpid/cpp/src/qpid/broker/SaslAuthenticator.cpp +++ b/qpid/cpp/src/qpid/broker/SaslAuthenticator.cpp @@ -310,7 +310,8 @@ void CyrusAuthenticator::init() int code; std::string realm = connection.getBroker().getRealm(); - code = sasl_server_new(BROKER_SASL_NAME, /* Service name */ + std::string service = connection.getBroker().getSaslServiceName(); + code = sasl_server_new(service.c_str(), /* Service name */ NULL, /* Server FQDN, gethostname() */ realm.c_str(), /* Authentication realm */ NULL, /* Local IP, needed for some mechanism */ |