plugins/mod_saslauth.lua
changeset 12645 e9865b0cfb89
parent 12598 29685403be32
child 12722 27a4a7e64831
--- a/plugins/mod_saslauth.lua	Wed Jun 15 11:37:09 2022 +0100
+++ b/plugins/mod_saslauth.lua	Wed Jun 15 11:47:39 2022 +0100
@@ -52,7 +52,7 @@
 		module:fire_event("authentication-failure", { session = session, condition = ret, text = err_msg });
 		session.sasl_handler = session.sasl_handler:clean_clone();
 	elseif status == "success" then
-		local ok, err = sm_make_authenticated(session, session.sasl_handler.username, session.sasl_handler.scope);
+		local ok, err = sm_make_authenticated(session, session.sasl_handler.username, session.sasl_handler.role);
 		if ok then
 			module:fire_event("authentication-success", { session = session });
 			session.sasl_handler = nil;