# HG changeset patch # User Kim Alvefur # Date 1355051948 -3600 # Node ID 5566236f363fc727f9bb4bba636eaba066fdc144 # Parent edabb34417b72da9b9fe16ecd8fe9d890f42e49f mod_auth_anonymous: Implement user iteration API diff -r edabb34417b7 -r 5566236f363f plugins/mod_auth_anonymous.lua --- a/plugins/mod_auth_anonymous.lua Sun Dec 09 11:50:09 2012 +0100 +++ b/plugins/mod_auth_anonymous.lua Sun Dec 09 12:19:08 2012 +0100 @@ -41,6 +41,10 @@ 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