From: Adam Chlipala Date: Sat, 17 Nov 2007 16:28:39 +0000 (+0000) Subject: Add user listing command X-Git-Tag: release_2010-11-19~141 X-Git-Url: https://git.hcoop.net/hcoop/domtool2.git/commitdiff_plain/65825353f7f92a1a524c8d887eda2b72dc5019a6?ds=sidebyside Add user listing command --- 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")