mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
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:
parent
30ca5bbd4a
commit
da61546012
1 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||||
|
|
Loading…
Add table
Reference in a new issue