From 733cbda1e50bba8a4e6afa9e00ecd50445d9d7fa Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 9 Dec 2012 12:19:08 +0100 Subject: mod_auth_anonymous: Implement user iteration API --- plugins/mod_auth_anonymous.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/mod_auth_anonymous.lua b/plugins/mod_auth_anonymous.lua index c27057be..a327f438 100644 --- a/plugins/mod_auth_anonymous.lua +++ b/plugins/mod_auth_anonymous.lua @@ -41,6 +41,10 @@ function provider.get_sasl_handler() return new_sasl(module.host, anonymous_authentication_profile); end +function provider.users() + return next, hosts[host].sessions, nil; +end + -- datamanager callback to disable writes local function dm_callback(username, host, datastore, data) if host == module.host then -- cgit v1.2.3