File: ldaptor-twisted-web.py

package info (click to toggle)
ldaptor 0.0.43%2Bdebian1-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 2,168 kB
  • ctags: 3,592
  • sloc: python: 18,670; xml: 787; makefile: 147; sh: 88
file content (20 lines) | stat: -rw-r--r-- 418 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# -*- python -*-

"""
If you are using moshez's experimental twisted-web Debian package,
try copying this file as

	/etc/twisted-web/local.d/ldaptor.py

editing to suite (the example assumes your LDAP server is running on
localhost, and serves the DN dc=example,dc=com), and browsing

	http://localhost/ldap/

"""

from ldaptor.apps.webui import main

resource = main.getResource()

default.putChild('ldap', resource)