pull in additional changes from 2.0 branch.
[monitor.git] / monitor / Rpyc / Servers / auth_server.py
diff --git a/monitor/Rpyc/Servers/auth_server.py b/monitor/Rpyc/Servers/auth_server.py
new file mode 100644 (file)
index 0000000..b13fb20
--- /dev/null
@@ -0,0 +1,19 @@
+from ServerUtils import DEFAULT_PORT, threaded_server\r
+\r
+#\r
+# define user:password pairs of your own\r
+#\r
+users = {\r
+    "johnnash" : "t3hgam3r",\r
+    "tolkien" : "1ring",\r
+    "yossarian" : "catch22",\r
+}\r
+\r
+def main(port = DEFAULT_PORT):\r
+    threaded_server(port, authenticate = True, users = users)\r
+\r
+if __name__ == "__main__":\r
+    main()\r
+\r
+\r
+\r