mod_sasl2_fast: Add flag to FAST sasl_handler for easier identification
Other code that looks at session.sasl_handler can now detect if a client used
FAST to authenticate.
--- a/mod_sasl2_fast/mod_sasl2_fast.lua Wed Mar 29 16:12:15 2023 +0100
+++ b/mod_sasl2_fast/mod_sasl2_fast.lua Wed Mar 29 16:13:00 2023 +0100
@@ -112,6 +112,7 @@
end
local sasl_handler = get_sasl_handler(username);
if not sasl_handler then return; end
+ sasl_handler.fast_auth = true; -- For informational purposes
-- Copy channel binding info from primary SASL handler
sasl_handler.profile.cb = session.sasl_handler.profile.cb;
sasl_handler.userdata = session.sasl_handler.userdata;