diff options
| author | Michael Goulish <mgoulish@apache.org> | 2010-11-30 18:39:48 +0000 |
|---|---|---|
| committer | Michael Goulish <mgoulish@apache.org> | 2010-11-30 18:39:48 +0000 |
| commit | c81ac8cc24b35c0d9465b839936d5403d982b5c1 (patch) | |
| tree | 339de607ecf5546f2ad9d945d8bf48464ef34e21 /cpp/bindings/qpid/dotnet/examples/csharp.example.spout/csharp.example.spout.cs | |
| parent | ff04bf79f43b19094d757f78c036ff07ea50e0ce (diff) | |
| download | qpid-python-c81ac8cc24b35c0d9465b839936d5403d982b5c1.tar.gz | |
This patch was posted in JIRA QPID-2949.
It provides a way to tell SaslFactory that console
interaction is NOT ok. i.e. if the code is running
as part of a broker, or a demonized client of some
kind. Just tell it to never do interaction, and any
patch attempt to interact will be treated as an error.
This script demonstrates that all goes well if you supply enough info :
rm -rf /tmp/data_1 /tmp/data_2
mkdir /tmp/data_1 /tmp/data_2
# in window 1:
../qpidd -p 5672 --data-dir /tmp/data_1 --auth=yes --mgmt-enable=yes \
--log-enable info+ ./qpidd_1.log --log-source yes \
--sasl-config=/home/mick/trunk/qpid/cpp/src/tests/sasl_config
# in window 2:
../qpidd -p 10000 --data-dir /tmp/data_2 --auth=yes --mgmt-enable=yes \
--log-enable info+ ./qpidd_1.log --log-source yes \
--sasl-config=/home/mick/trunk/qpid/cpp/src/tests/sasl_config
# in window 3 ( from qpid dir )
./tools/src/py/qpid-route dynamic add zig/zig@localhost zig/zig@localhost:10000 qmf.default.direct
# and now view the created route
./tools/src/py/qpid-route route list localhost:5672
If you say auth=no, that works fine also.
HOWEVER PLEASE NOTE --
if you say auth=yes, but then do not supply enough into to avoid the need for interaction,
the attempted interaction will result in the connection being closed. Then the originating broker
will re-try the connection, and you will get a two-broker infinite loop until you fix it.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1040689 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/bindings/qpid/dotnet/examples/csharp.example.spout/csharp.example.spout.cs')
0 files changed, 0 insertions, 0 deletions
