Gordon,
thank you.
I added Both Anonymous and PLAIN. Here's the steps to add them from
the httpManagement console:
-Double click "Broker" folder. Go to "Authentication Providers", and click add.
-Fill the current information:
Name: anonymous
Type: Anonymous
-Then did it again for Plain:
Name: PLAIN
Type: Plain
and added a user guest:guest
Now, went to "Broker >> Ports >> AMQP", Then " >> Edit" I changed the
"Authorization Provider", once for PLAIN and for Anonymous.
With PLAIN and client side credentials "guest:guest", I am getting on
the broker:
2015-06-11 18:22:35,527 INFO [IoReceiver - /127.0.0.1:33637]
(stats.StatisticsCounter) - Resetting statistics for counter:
messages-delivered-1-13
2015-06-11 18:22:35,527 INFO [IoReceiver - /127.0.0.1:33637]
(stats.StatisticsCounter) - Resetting statistics for counter:
data-delivered-1-14
2015-06-11 18:22:35,527 INFO [IoReceiver - /127.0.0.1:33637]
(stats.StatisticsCounter) - Resetting statistics for counter:
messages-received-1-15
2015-06-11 18:22:35,527 INFO [IoReceiver - /127.0.0.1:33637]
(stats.StatisticsCounter) - Resetting statistics for counter:
data-received-1-16
2015-06-11 18:22:35,527 DEBUG [IoReceiver - /127.0.0.1:33637] (FRM) -
SEND[/127.0.0.1:33637|0] :
SaslMechanisms{saslServerMechanisms=[CRAM-MD5]}
2015-06-11 18:22:35,528 DEBUG [IoReceiver - /127.0.0.1:33637] (RAW) -
SEND[/127.0.0.1:33637] :
\x00\x00\x00\x1b\x02\x01\x00\x00\x00S@\xc0\x0e\x01\xe0\x0b\x01\xa3\x08CRAM-MD5
2015-06-11 18:22:35,528 DEBUG [IoReceiver - /127.0.0.1:33637] (RAW) -
RECV[/127.0.0.1:33637] : AMQP\x03\x01\x00\x00
2015-06-11 18:22:35,528 DEBUG [IoReceiver - /127.0.0.1:33637] (RAW) -
RECV[/127.0.0.1:33637] :
\x00\x00\x00)\x02\x01\x00\x00\x00SA\xd0\x00\x00\x00\x19\x00\x00\x00\x02\xa3\x05PLAIN\xa0\x0c\x00guest\x00guest
2015-06-11 18:22:35,528 DEBUG [IoReceiver - /127.0.0.1:33637] (FRM) -
RECV[/127.0.0.1:33637|0] :
SaslInit{mechanism=PLAIN,initialResponse=\x00guest\x00guest}
2015-06-11 18:22:35,528 DEBUG [IoReceiver - /127.0.0.1:33637] (FRM) -
SEND[/127.0.0.1:33637|0] : SaslOutcome{code=auth}
2015-06-11 18:22:35,529 DEBUG [IoReceiver - /127.0.0.1:33637] (RAW) -
SEND[/127.0.0.1:33637] :
\x00\x00\x00\x10\x02\x01\x00\x00\x00SD\xc0\x03\x01P\x01
2015-06-11 18:22:35,529 DEBUG [IoReceiver - /127.0.0.1:33637] (FRM) -
RECV[/127.0.0.1:33637|-1] : Underlying connection closed
And this on the client:
python2.7:
/tmp/pip_build_root/python-qpid-proton/build/bundled/qpid-proton/proton-c/src/transport/transport.c:1599:
transport_consume: Assertion `n == (-1)' failed.
Aborted
For Anonymous:
I get this on the broker "with localhost:5672" and no username:password
2015-06-11 18:24:07,789 DEBUG [IoReceiver - /127.0.0.1:33641]
(protocol.MultiVersionProtocolEngine) - Unsupported protocol version
requested, replying with: AMQP_1_0
This is on the server:
mansour@localhost ~/workspace/qpid-proton-0.9.1-rc1/examples/python $
./helloworld_blocking.py
Traceback (most recent call last):
File "./helloworld_blocking.py", line 25, in <module>
conn = BlockingConnection("localhost:5672")
File "/usr/lib64/python2.7/site-packages/proton/utils.py", line 200,
in __init__
msg="Opening connection")
File "/usr/lib64/python2.7/site-packages/proton/utils.py", line 231, in wait
self.container.process()
File "/usr/lib64/python2.7/site-packages/proton/reactor.py", line
143, in process
self._check_errors()
File "/usr/lib64/python2.7/site-packages/proton/__init__.py", line
3737, in dispatch
ev.dispatch(self.handler)
File "/usr/lib64/python2.7/site-packages/proton/__init__.py", line
3662, in dispatch
result = dispatch(handler, type.method, self)
File "/usr/lib64/python2.7/site-packages/proton/__init__.py", line
3551, in dispatch
return m(*args)
File "/usr/lib64/python2.7/site-packages/proton/utils.py", line 257,
in on_transport_tail_closed
self.on_transport_closed(event)
File "/usr/lib64/python2.7/site-packages/proton/utils.py", line 261,
in on_transport_closed
raise ConnectionException("Connection %s disconnected" % self.url);
proton.ConnectionException: Connection amqp://localhost:5672 disconnected
While we are on this subject, I went back and tried to reinstall
python-qpid-proton, getting an error when installing it. The installer
reports a success. However, there are some errors installing
python-qpid-proton:
===============================================
localhost qpid-broker # pip install python-qpid-proton
Downloading/unpacking python-qpid-proton
Downloading python-qpid-proton-0.9.1.zip (90kB): 90kB downloaded
Running setup.py
(path:/tmp/pip_build_root/python-qpid-proton/setup.py) egg_info for
package python-qpid-proton
Installing collected packages: python-qpid-proton
Running setup.py install for python-qpid-proton
Did not find libqpid-proton via pkg-config:
Using bundled libqpid-proton
fetching
http://www.apache.org/dist/qpid/proton/0.9.1/qpid-proton-0.9.1.tar.gz
into build/bundled
Using openssl (found via pkg-config).
cc -c /tmp/clock_getttimeuwm6XO.c -o
build/temp.linux-x86_64-2.7/tmp/clock_getttimeuwm6XO.o
cc build/temp.linux-x86_64-2.7/tmp/clock_getttimeuwm6XO.o -o
build/temp.linux-x86_64-2.7/a.out
build/temp.linux-x86_64-2.7/tmp/clock_getttimeuwm6XO.o: In function `main':
clock_getttimeuwm6XO.c:(.text+0x15): undefined reference to `clock_getttime'
collect2: error: ld returned 1 exit status
building 'libqpid-proton' extension
x86_64-pc-linux-gnu-gcc -pthread -fPIC -Ibuild/include
-I/tmp/pip_build_root/python-qpid-proton/build/bundled/qpid-proton/proton-c/src
-I/tmp/pip_build_root/python-qpid-proton/build/bundled/qpid-proton/proton-c/include
-I/usr/include/python2.7 -c /tmp/pip_build
_root/python-qpid-proton/build/bundled/qpid-proton/proton-c/src/object/record.c
-o
build/temp.linux-x86_64-2.7/tmp/pip_build_root/python-qpid-proton/build/bundled/qpid-proton/proton-c/src/object/record.o
-std=gnu99 -Dqpid_proton_EXPORTS -DUSE_ATOLL -DUSE_CLOCK_GETT
IME -DUSE_STRERROR_R -DUSE_UUID_GENERATE
x86_64-pc-linux-gnu-gcc -pthread -fPIC -Ibuild/include
-I/tmp/pip_build_root/python-qpid-proton/build/bundled/qpid-proton/proton-c/src
-I/tmp/pip_build_root/python-qpid-proton/build/bundled/qpid-proton/proton-c/include
-I/usr/include/python2.7 -c /tmp/pip_build
_root/python-qpid-proton/build/bundled/qpid-proton/proton-c/src/object/string.c
-o
build/temp.linux-x86_64-2.7/tmp/pip_build_root/python-qpid-proton/build/bundled/qpid-proton/proton-c/src/object/string.o
-std=gnu99 -Dqpid_proton_EXPORTS -DUSE_ATOLL -DUSE_CLOCK_GETT
IME -DUSE_STRERROR_R -DUSE_UUID_GENERATE
......
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]