mod_auth_ldap: reflect SASL API changes in latest Metronome.

The session state should always be passed in the profile as util.sasl functioning now relies on it
This commit is contained in:
Marco Cirillo 2018-09-28 21:37:41 +02:00 committed by Alexandre Aubin
parent 30ca5bbd4a
commit da61546012

View file

@ -56,8 +56,9 @@ function new_default_provider(host)
return nil, "Account creation/modification not available with LDAP."; return nil, "Account creation/modification not available with LDAP.";
end end
function provider.get_sasl_handler() function provider.get_sasl_handler(session)
local testpass_authentication_profile = { local testpass_authentication_profile = {
session = session,
plain_test = function(sasl, username, password, realm) plain_test = function(sasl, username, password, realm)
return provider.test_password(username, password), true; return provider.test_password(username, password), true;
end, end,