summaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
authorDerrell Lipman <derrell@samba.org>2006-12-16 19:07:37 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:29:23 -0500
commitff8ef6c280a7107ce521eee57df9218b4cac0465 (patch)
treefbe240b4d3107db5c98bcd508624826d579f243c /services
parent5249de851976e274ea02fefc3b71cddb4b5ab207 (diff)
downloadsamba-ff8ef6c280a7107ce521eee57df9218b4cac0465.tar.gz
samba-ff8ef6c280a7107ce521eee57df9218b4cac0465.tar.bz2
samba-ff8ef6c280a7107ce521eee57df9218b4cac0465.zip
r20220: Apply patch from Brad Henry with some additional qooxdoo/json-rpc SWAT
functionality: basic admin console. (This used to be commit 23f8dd44cbf85e05e4b3d38de9ed7798dd21defb)
Diffstat (limited to 'services')
-rw-r--r--services/samba/adm.esp22
1 files changed, 22 insertions, 0 deletions
diff --git a/services/samba/adm.esp b/services/samba/adm.esp
new file mode 100644
index 0000000000..2fd0ec2f97
--- /dev/null
+++ b/services/samba/adm.esp
@@ -0,0 +1,22 @@
+<%
+
+jsonrpc_include("resources.esp");
+
+libinclude("base.js");
+libinclude("management.js");
+
+function _echo(params, error) {
+ var echo_string = params[0];
+ return echo_string;
+}
+jsonrpc.method.echo = _echo;
+
+function _nbt_packet_stats(params, error) {
+ var stats = nbtd_statistics();
+ stats.server_status = new Object();
+ stats.server_status = server_status("nbt");
+ return stats;
+}
+jsonrpc.method.NBTPacketStats = _nbt_packet_stats;
+
+%>