b13fb2096ef5d386328d22f433cdadb44cf70975
[monitor.git] / Rpyc / Servers / auth_server.py
1 from ServerUtils import DEFAULT_PORT, threaded_server\r
2 \r
3 #\r
4 # define user:password pairs of your own\r
5 #\r
6 users = {\r
7     "johnnash" : "t3hgam3r",\r
8     "tolkien" : "1ring",\r
9     "yossarian" : "catch22",\r
10 }\r
11 \r
12 def main(port = DEFAULT_PORT):\r
13     threaded_server(port, authenticate = True, users = users)\r
14 \r
15 if __name__ == "__main__":\r
16     main()\r
17 \r
18 \r
19 \r