# HG changeset patch # User Matthew Wild # Date 1580925404 0 # Node ID 417eadd0f567feebddc79eeee2199e0f0e398587 # Parent de90b2f5da8c8c1689dc3444c5d72c52a6b2c611 mod_saslauth: Pass through any auth scope from the SASL handler to sessionmanager.make_authenticated() diff -r de90b2f5da8c -r 417eadd0f567 plugins/mod_saslauth.lua --- a/plugins/mod_saslauth.lua Wed Feb 05 17:56:20 2020 +0000 +++ b/plugins/mod_saslauth.lua Wed Feb 05 17:56:44 2020 +0000 @@ -49,7 +49,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); + local ok, err = sm_make_authenticated(session, session.sasl_handler.username, session.sasl_handler.scope); if ok then module:fire_event("authentication-success", { session = session }); session.sasl_handler = nil;