aboutsummaryrefslogtreecommitdiffstats
path: root/util/sasl/plain.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-03-16 13:57:30 +0100
committerKim Alvefur <zash@zash.se>2023-03-16 13:57:30 +0100
commitc11d121c0635f44404e9f3e784190e898609b876 (patch)
tree296742495d49f41d8ca3378167bc713f4087a767 /util/sasl/plain.lua
parentf23ad827a3db94b4f00c6377b082eefb15ffc167 (diff)
downloadprosody-c11d121c0635f44404e9f3e784190e898609b876.tar.gz
prosody-c11d121c0635f44404e9f3e784190e898609b876.zip
util.sasl.{scram,plain}: Pass authzid to SASL profile callback
For potential future use. Used for logging into a different account than the one used for authentication.
Diffstat (limited to 'util/sasl/plain.lua')
-rw-r--r--util/sasl/plain.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/sasl/plain.lua b/util/sasl/plain.lua
index 43a66c5b..9b0341e6 100644
--- a/util/sasl/plain.lua
+++ b/util/sasl/plain.lua
@@ -69,10 +69,10 @@ local function plain(self, message)
local correct, state = false, false;
if self.profile.plain then
local correct_password;
- correct_password, state = self.profile.plain(self, authentication, self.realm);
+ correct_password, state = self.profile.plain(self, authentication, self.realm, authorization);
correct = (saslprep(correct_password) == password);
elseif self.profile.plain_test then
- correct, state = self.profile.plain_test(self, authentication, password, self.realm);
+ correct, state = self.profile.plain_test(self, authentication, password, self.realm, authorization);
end
if state == false then