view @ 3097:a94959a2aae7

Some python-ldap packages may not be built with TLS support. Let's make sure ldap.TLS_AVAIL exists before we try to use it. Add a configuration directive to only do one bind to the LDAP server. This is useful if you bind as the user the first time. In my case I was unable to bind as a user to the DN that contained the users' email, givenname, etc. fields.
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 23 Feb 2008 02:10:14 +0100
parents ccf6d7ffb310
children 79f850129782
line wrap: on
line source

#!/usr/bin/env python
    Start script for the standalone Wiki server.

    @copyright: 2007 MoinMoin:ForrestVoight
    @license: GNU GPL, see COPYING for details.

import sys
import os

from MoinMoin.script import MoinScript

# Path to MoinMoin package, needed if you installed with --prefix=PREFIX
# or if you did not use
#sys.path.insert(0, 'PREFIX/lib/python2.3/site-packages')

moinpath = os.path.abspath(os.path.normpath(os.path.dirname(sys.argv[0])))
sys.path.insert(0, moinpath)

if __name__ == '__main__':
    sys.argv = ["", "server", "standalone"]