Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
proton-0.10
-
None
Description
In versions >0.9.1.1 (We've tried 0.10 and 0.11.0) the username is sent twice during SASL authentication.
Working in 0.9.1.1:
# PN_TRACE_FRM=1 ./meow.py [0x250d3b0]: -> SASL [0x250d3b0]:0 -> @sasl-init(65) [mechanism=:PLAIN, initial-response=b"\x00the_username\x00the_password"] [0x250d3b0]: <- SASL [0x250d3b0]:0 <- @sasl-mechanisms(64) [sasl-server-mechanisms=@PN_SYMBOL[:PLAIN, :ANONYMOUS]] [0x250d3b0]:0 <- @sasl-outcome(68) [code=0] [0x250d3b0]: -> AMQP [0x250d3b0]:0 -> @open(16) [container-id="6b1fecb6-358e-48af-b461-bae3563a7c7f", hostname="esb-test"] [0x250d3b0]:0 -> @begin(17) [next-outgoing-id=0, incoming-window=2147483647, outgoing-window=1] [0x250d3b0]:0 -> @attach(18) [name="sender-xxx", handle=0, role=false, snd-settle-mode=2, rcv-settle-mode=0, source=@source(40) [address="TEST-queue", durable=0, timeout=0, dynamic=false], target=@target(41) [address="TEST-queue", durable=0, timeout=0, dynamic=false], initial-delivery-count=0] [0x250d3b0]: <- AMQP [0x250d3b0]:0 <- @open(16) [container-id="", hostname="", max-frame-size=4294967295, channel-max=32767, idle-time-out=15000, offered-capabilities=@PN_SYMBOL[:"ANONYMOUS-RELAY"], properties={:product="ActiveMQ", :"topic-prefix"="topic://", :"queue-prefix"="queue://", :version="5.12.1", :platform="Java/1.8.0_45"}] [0x250d3b0]:0 <- @begin(17) [remote-channel=0, next-outgoing-id=1, incoming-window=0, outgoing-window=0, handle-max=65535] [0x250d3b0]:0 <- @flow(19) [next-incoming-id=0, incoming-window=2147483647, next-outgoing-id=1, outgoing-window=0] [0x250d3b0]:0 <- @attach(18) [name="sender-xxx", handle=0, role=true, snd-settle-mode=2, rcv-settle-mode=0, source=@source(40) [address="TEST-queue"], target=@target(41) [address="TEST-queue"]] [0x250d3b0]:0 <- @flow(19) [next-incoming-id=0, incoming-window=2147483647, next-outgoing-id=1, outgoing-window=0, handle=0, delivery-count=0, link-credit=1000] [0x250d3b0]:0 -> @transfer(20) [handle=0, delivery-id=0, delivery-tag=b"\x00\x00\x00\x00\x00\x00\x00\x00", message-format=0, settled=true, more=false] (131) "\x00[…]" #
Not working in >0.9.1.1:
# PN_TRACE_FRM=1 ./meow.py
[0x18aa060]: -> SASL
[0x18aa060]: <- SASL
[0x18aa060]:0 <- @sasl-mechanisms(64) [sasl-server-mechanisms=@PN_SYMBOL[:PLAIN, :ANONYMOUS]]
[0x18aa060]:0 -> @sasl-init(65) [mechanism=:PLAIN, initial-response=b"the_username\x00the_username\x00the_password"]
[0x18aa060]:0 <- @sasl-outcome(68) [code=1]
[0x18aa060]: -> EOS
#
When using >0.9.1.1 and using SSL it does the same BUT then just hangs. Should we open a seperate Jira for this?:
# PN_TRACE_FRM=1 time ./meow.py [0xa5d060]: -> SASL [0xa5d060]: <- SASL [0xa5d060]:0 <- @sasl-mechanisms(64) [sasl-server-mechanisms=@PN_SYMBOL[:PLAIN, :ANONYMOUS]] [0xa5d060]:0 -> @sasl-init(65) [mechanism=:PLAIN, initial-response=b"the_username\x00the_username\x00the_password"] [0xa5d060]:0 <- @sasl-outcome(68) [code=1] ^CTraceback (most recent call last): File "./meow.py", line 12, in <module> messenger.send() File "/usr/local/lib/python2.7/dist-packages/proton/__init__.py", line 568, in send self._check(pn_messenger_send(self._mng, n)) KeyboardInterrupt Command exited with non-zero status 1 0.08user 0.02system 0:50.69elapsed 0%CPU (0avgtext+0avgdata 12192maxresident)k 0inputs+0outputs (0major+5474minor)pagefaults 0swaps #
Attachments
Issue Links
- is related to
-
PROTON-334 SASL Implementation for Proton C
- Closed
- relates to
-
AMQ-6055 SASL PLAIN auth with AMQP doesn't take authzid into account
- Resolved
-
PROTON-995 Url fails to parse URL
- Closed