summaryrefslogtreecommitdiff
path: root/src/util/paste-kdcproxy.py
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2017-07-07 17:03:42 +0000
committerCy Schubert <cy@FreeBSD.org>2017-07-07 17:03:42 +0000
commit33a9b234e7087f573ef08cd7318c6497ba08b439 (patch)
treed0ea40ad3bf5463a3c55795977c71bcb7d781b4b /src/util/paste-kdcproxy.py
Notes
Diffstat (limited to 'src/util/paste-kdcproxy.py')
-rwxr-xr-xsrc/util/paste-kdcproxy.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/util/paste-kdcproxy.py b/src/util/paste-kdcproxy.py
new file mode 100755
index 000000000000..1e56b89542db
--- /dev/null
+++ b/src/util/paste-kdcproxy.py
@@ -0,0 +1,18 @@
+#!/usr/bin/python
+import kdcproxy
+from paste import httpserver
+import os
+import sys
+
+if len(sys.argv) > 1:
+ port = sys.argv[1]
+else:
+ port = 8443
+if len(sys.argv) > 2:
+ pem = sys.argv[2]
+else:
+ pem = '*'
+server = httpserver.serve(kdcproxy.Application(), port=port, ssl_pem=pem,
+ start_loop=False)
+os.write(sys.stdout.fileno(), 'proxy server ready\n')
+server.serve_forever()