--- a/util/sasl/plain.lua Mon Dec 27 19:43:57 2010 +0500 +++ b/util/sasl/plain.lua Mon Dec 27 19:57:04 2010 +0500 @@ -57,10 +57,10 @@ local correct, state = false, false; if self.profile.plain then local correct_password; - correct_password, state = self.profile.plain(authentication, self.realm); + correct_password, state = self.profile.plain(self, authentication, self.realm); correct = (correct_password == password); elseif self.profile.plain_test then - correct, state = self.profile.plain_test(authentication, password, self.realm); + correct, state = self.profile.plain_test(self, authentication, password, self.realm); end self.username = authentication