summaryrefslogtreecommitdiff
path: root/slapd-pivot.py
blob: 7eb1dab4082d6e0c1f7683f1aa24bdbc55dc829a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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()