From 65825353f7f92a1a524c8d887eda2b72dc5019a6 Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Sat, 17 Nov 2007 16:28:39 +0000 Subject: [PATCH] Add user listing command --- src/main-admin.sml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main-admin.sml b/src/main-admin.sml index dbc4074..1a9ceac 100644 --- a/src/main-admin.sml +++ b/src/main-admin.sml @@ -56,6 +56,10 @@ val _ = | ["sockperm", node, uname] => OS.Process.exit (Main.requestSocketPerm {node = node, uname = uname}) | ["firewall", node, uname] => OS.Process.exit (Main.requestFirewall {node = node, uname = uname}) | ["describe", dom] => print (Domain.describe dom) + | ["users"] => + (Acl.read Config.aclFile; + app (fn s => (print s; print "\n")) (Acl.users ())) + | _ => (print "Invalid command-line arguments\n"; print "See the documentation: http://wiki.hcoop.net/wiki/DomTool/AdminProcedures\n")) handle OpenSSL.OpenSSL s => print ("OpenSSL exception: " ^ s ^ "\n") -- 2.20.1