From ea4a294b84254fb19b2edd24683fa6501970d049 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Fri, 6 Jun 2008 17:35:32 +0000 Subject: Initial import --- slapd-pivot.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 slapd-pivot.py (limited to 'slapd-pivot.py') diff --git a/slapd-pivot.py b/slapd-pivot.py new file mode 100644 index 0000000..7eb1dab --- /dev/null +++ b/slapd-pivot.py @@ -0,0 +1,18 @@ +#!/usr/bin/env python + +import sys +import Backend, Pivot + +def run_server(): + Backend.debug = True + server = Backend.Server("/tmp/pivot-slapd.sock", Pivot.Database) + + try: + server.serve_forever() + except KeyboardInterrupt: + sys.exit(0) + + +if __name__ == '__main__': + run_server() + -- cgit v1.2.3