Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
None
-
None
-
None
-
Windows XP SP 3, VC++ 9.0
Description
If a client offers any non-empty auth mechanism (e.g., "PLAIN"), the windows C++ broker will fail to start/tune the connection with "Selected mechanism not supported" eventhough it has authorization disabled ("--auth=no").
void ConnectionHandler::start(const FieldTable& /serverProps/, const Array& mechanisms, const Array& /locales/)
{
checkState(NOT_STARTED, INVALID_STATE_START);
setState(NEGOTIATING);
sasl = SaslFactory::getInstance().create(*this);
std::string mechlist;
bool chosenMechanismSupported = mechanism.empty();
for (Array::const_iterator i = mechanisms.begin(); i != mechanisms.end(); ++i) {
if (!mechanism.empty() && mechanism == (*i)->get<std::string>())
else
{ if (i != mechanisms.begin()) mechlist += SPACE; mechlist += (*i)->get<std::string>(); }}
if (!chosenMechanismSupported)
{ fail("Selected mechanism not supported: " + mechanism); }Attachments
Attachments
Issue Links
- is duplicated by
-
QPID-2979 The following SASL mechanisms [PLAIN] specified by the client are not supported by the broker
- Closed