On my Linux system, the following libraries have been installed:
ii libsasl2-2:amd64 2.1.27+dfsg2-3ubuntu1.2
amd64 Cyrus SASL - authentication abstraction library
ii libsasl2-dev 2.1.27+dfsg2-3ubuntu1.2
amd64 Cyrus SASL - development files for
authentication abstraction library
ii libsasl2-modules:amd64 2.1.27+dfsg2-3ubuntu1.2
amd64 Cyrus SASL - pluggable authentication modules
ii libsasl2-modules-db:amd64 2.1.27+dfsg2-3ubuntu1.2
amd64 Cyrus SASL - pluggable authentication modules
(DB)
ii libsasl2-modules-kdexoauth2:amd64 21.12.3-0ubuntu1
amd64 library to integrate with Cyrus SASL
should i link them.? if yes how?
my cmake file looks like that
target_link_libraries(${TARGET_NAME}
Sma
qpid-proton-cpp
Services
)
On 2024/03/19 07:57:31 abdelrhman abdelhmaed wrote:
> Hi,
> I am using the qpid proton library to connect to Broker( Apache ActiveMQ
> Artemis).
> The authentication mechanism must be SALS SCRAM_SHA-256.
> i tried to configure Qpid proton client to use this mechanism via the
> following methods
>
> std::string MECHANISM = "SCRAM-SHA-256";
> ConnectionOptions.sasl_allowed_mechs(MECHANISM);
> ConnectionOptions.sasl_allow_insecure_mechs(true);
> ConnectionOptions.sasl_enabled(true);
> ConnectionOptions.user("guest");
> ConnectionOptions.password("guest");
>
> but it dont work out. I got the following error message
>
> amqp:unauthorized-access: Authentication failed [mech=none]
>
> so my question wether qpid proton client support this mechanism and if
so,
> how i am supposed to configure it
>