When going through the code below with username and password, I am getting
the following error: /proton:io:sasl_error: SASL(-4): no mechanism
available: No worthy mechs found (Authentication failed [mech=none])/
The moment I am commenting out username and password, the code works very
well. I am expecting the code to work with plain mechanism which is not
working. Any help/idea would be appreciated.
/class class1 : public proton::messaging_handler {
std::string url;
std::string devQueue;
std::string localQueue;
std::string username;
std::string password;
public:
class1(const std::string& u, const std::string& devQueue, const std::string&
localQueue, const std::string& username, const std::string& password) :
url(u), devQueue(devQueue), localQueue(localQueue),
username(username), password(password) {}
void on_container_start(proton::container& c) override {
proton::connection_options co;
if (!username.empty()) co.user(username);
if (!password.empty()) co.password(password);
co.sasl_allowed_mechs("PLAIN");
c.connect(conn_url, co);
}
void on_connection_open(proton::connection& c) override {
c.open_receiver(devQueue);
}
...
};/
--
Sent from: http://qpid.2158936.n2.nabble.com/Apache-Qpid-users-f2158936.html
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]