Skip to content

Instantly share code, notes, and snippets.

@zeen
Created March 16, 2010 00:50
Show Gist options
  • Save zeen/333514 to your computer and use it in GitHub Desktop.
Save zeen/333514 to your computer and use it in GitHub Desktop.
diff --git a/util/sasl_cyrus.lua b/util/sasl_cyrus.lua
--- a/util/sasl_cyrus.lua
+++ b/util/sasl_cyrus.lua
@@ -97,6 +97,9 @@
local data;
if self.mechanism then
+ if self.mechanism == "PLAIN" then
+ message = (message or ""):match("(%z.*)");
+ end
err, data = cyrussasl.server_start(self.cyrus, self.mechanism, message or "")
else
err, data = cyrussasl.server_step(self.cyrus, message or "")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment