qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Welchlin <andr...@welchlin.de>
Subject C++ messaging API: SASL mechanism not set correctly
Date Wed, 26 Aug 2015 12:40:10 GMT
Hello,

I tried to connect to a AMQP Broker via SSL using AMQP 0.10.

I used C++ and the Qpid Messaging API version 0.28.

It seems like I set the SASL mechanism in a wrong way.

I tried the following:

const char* QPID_OPTION_TRANSPORT = "transport";
const char* QPID_OPTION_SASL_MECHANISMS = "sasl_mechanisms";

mConnection = new Connection("amqp:ssl:<ipaddress>");
mConnection->setOption(QPID_OPTION_SASL_MECHANISMS, "EXTERNAL");
mConnection->setOption(QPID_OPTION_TRANSPORT, "ssl");
mConnection->open();


The logfile says:

Starting connection, urls=[amqp:ssl:<ipaddress>]
Trying to connect to amqp:ssl:<ipaddress>...
Created IO thread: 0
SslConnector created for 0-10
Connecting: 90.162.253.101:10170
RECV [[172.17.97.139:46893-<ipaddress>]]: INIT(0-10)
Exception constructed: Desired mechanism(s) not valid: True (supported: 
EXTERNAL) (qpid/client/ConnectionHandler.cpp:260)
Closing connection due to Desired mechanism(s) not valid: True 
(supported: EXTERNAL) (qpid/client/ConnectionHandler.cpp:260)
Exception constructed: Desired mechanism(s) not valid: True (supported: 
EXTERNAL) (qpid/client/ConnectionHandler.cpp:260)
Exception constructed: Desired mechanism(s) not valid: True (supported: 
EXTERNAL) (qpid/client/ConnectionHandler.cpp:260)


What am I doing wrong? Would it help if I set the SASL mechanism like this:

mConnection = new Connection(brokerUrl, 
"{transport:ssl,sasl-mechanism:EXTERNAL}");


Regards,
Andreas






---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Mime
View raw message