From 0971f5fffdc624fc9345aafc42ebb65ae22b7620 Mon Sep 17 00:00:00 2001 From: Matt Tucker Date: Thu, 7 Jun 2007 17:35:26 +0000 Subject: [PATCH] Fix for SMACK-224. git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@8503 b35dd754-fafc-0310-a699-88a17e54d16e --- source/org/jivesoftware/smack/sasl/SASLPlainMechanism.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/org/jivesoftware/smack/sasl/SASLPlainMechanism.java b/source/org/jivesoftware/smack/sasl/SASLPlainMechanism.java index a21eb916e..585848a67 100644 --- a/source/org/jivesoftware/smack/sasl/SASLPlainMechanism.java +++ b/source/org/jivesoftware/smack/sasl/SASLPlainMechanism.java @@ -43,7 +43,9 @@ public class SASLPlainMechanism extends SASLMechanism { // Build the text containing the "authorization identity" + NUL char + // "authentication identity" + NUL char + "clear-text password" StringBuilder text = new StringBuilder(); - text.append(username).append("@").append(host); + // Commented out line below due to SMACK-224. This part of PLAIN auth seems to be + // optional, and just removing it should increase compatability. +// text.append(username).append("@").append(host); text.append('\0'); text.append(username); text.append('\0');