Skip to content

Commit e6b3ded

Browse files
Fix sasl 'capability_missing' detection (#354)
1 parent c0ee8af commit e6b3ded

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/handlers/registration.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ const handlers = {
218218
// emit 'sasl failed' with reason 'unsupported_mechanism' and disconnect if requested
219219
handleSaslFail(handler, 'unsupported_mechanism');
220220
}
221-
} else if (handler.connection.options.account) {
221+
} else if (saslAuth || handler.connection.options.sasl_mechanism === 'EXTERNAL') {
222222
// The client provided an account for SASL auth but the server did not offer the SASL cap
223223
// emit 'sasl failed' with reason 'capability_missing' and disconnect if requested
224224
handleSaslFail(handler, 'capability_missing');

0 commit comments

Comments
 (0)