mod_auth_anonymous: Implement user iteration API
authorKim Alvefur <zash@zash.se>
Sun, 09 Dec 2012 12:19:08 +0100
changeset 5229 5566236f363f
parent 5228 edabb34417b7
child 5230 6f5640375358
mod_auth_anonymous: Implement user iteration API
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