summaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
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;
+
+%>