mod_saslauth: Pass through any auth scope from the SASL handler to sessionmanager.make_authenticated()

vault/master
Matthew Wild 6 years ago
parent dae152e58f
commit 6839acc859
  1. 2
      plugins/mod_saslauth.lua

@ -49,7 +49,7 @@ local function handle_status(session, status, ret, err_msg)
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;

Loading…
Cancel
Save