Hi all
I don't have the same behavior between python-qpid-proton under Linux and WIN10.
I'm trying to authenticate with a user "access1" to send messages on an
exampleQueue.
With the same configuration, it works under WIN10 but not under Linux.
etc/login.config
activemq {
org.apache.activemq.artemis.spi.core.security.jaas.PropertiesLoginModule
required
debug=true
reload=true
org.apache.activemq.jaas.properties.user="artemis-users.properties"
org.apache.activemq.jaas.properties.role="artemis-roles.properties";
};
With artemis CLI (using java) it's works for both OS.
./artemis producer --url amqp://localhost:5676 --destination exampleQueue
--user access1 --password access1 --message "salut" --protocol amqp
--message-count 4 --clientID sender1 --verboseExecuting
org.apache.activemq.artemis.cli.commands.messages.Producer producer --url
amqp://localhost:5676 --destination exampleQueue --user access1 --password
access1 --message salut --protocol amqp --message-count 4 --clientID sender1
--verbose
Home::/opt/apache-artemis-2.31.2,
# Version client and Artemis broker
Linux (repo amq-clients-2-for-rhel-8-x86_64-rpms ;yum install
python3-qpid-proton)
python-qpid-proton (0.37.0) --> broker apache-artemis-2.31.2
Windows10 (pip install)
python-qpid-proton-0.39.0.tar.gz --> broker apache-artemis-2.31.2
My python test
urlh="localhost:5672"
cur_address="exampleQueue"
# To connect with a user and password:
cur_conn = event.container.connect(urlh, user="access1",
password="access1")
See the log on Linux with the python code (sender).
2024-01-22 14:01:50,864 INFO
[org.apache.activemq.artemis.core.server.plugin.impl] AMQ841000: created
connection:
org.apache.activemq.artemis.protocol.amqp.broker.ActiveMQProtonRemotingConnection@1fc3c919<mailto:org.apache.activemq.artemis.protocol.amqp.broker.ActiveMQProtonRemotingConnection@1fc3c919>
2024-01-22 14:01:50,911 INFO
[org.apache.activemq.artemis.core.server.plugin.impl] AMQ841010: routed message
with ID: 427, result: NO_BINDINGS
2024-01-22 14:01:50,921 WARN [org.apache.activemq.artemis.core.server]
AMQ222216: Security problem while authenticating: AMQ229031: Unable to validate
user from /127.0.0.1:57226. Username: null; SSL certificate subject DN:
unavailable
2024-01-22 14:01:50,935 INFO
[org.apache.activemq.artemis.core.server.plugin.impl] AMQ841001: destroyed
connection:
org.apache.activemq.artemis.protocol.amqp.broker.ActiveMQProtonRemotingConnection@1fc3c919<mailto:org.apache.activemq.artemis.protocol.amqp.broker.ActiveMQProtonRemotingConnection@1fc3c919>
On Linux, the user is not sent to Artemis broker.
On WIN10, the user/password is sent correctly.
Do you have an idea?