Note that this installation description is always for the released version you can download here. It likely won't apply to older releases.
See also separate install receipts for specific platforms:
web2ldap is running persistent as a multi-threaded server process under Win32 and Unix platforms:
Run mode | Start script | Web server |
---|---|---|
stand-alone | sbin/web2ldap.py |
Python standard lib |
CGI-BIN | cgi-bin/web2ldap.fcgi |
Any web server with CGI support and cgi-fcgi wrapper from FastCGI dev kit installed |
FastCGI server | fcgi/web2ldap.py |
Any web server with FastCGI support |
For running web2ldap you need several modules.
You can check them with script sbin/checkinst.py
.
Package | Required | Description |
---|---|---|
Python 2.6+ (2.7.3+ recommended, Python 3.x not supported!) | mandatory | The programming language needed to run. |
PyWebLib 1.3.8+ | mandatory | Module package for web application programming. |
python-ldap 2.4.0+ (2.4.10+ recommended) | mandatory | A wrapper module for accessing the OpenLDAP libs from Python and other LDAP-related modules. |
OpenLDAP 2.4.11+ client libs (2.4.30+ recommended) | mandatory | Required to build python-ldap. |
pyasn1 and pyasn1-modules | mandatory | Two separate module packages for processing ASN.1 data directly. |
fcgi.py | optional | For running as FastCGI server process |
PyDNS (2.3.5+ recommended) | optional | If you want to make use of SRV RR's to automatically locate your LDAP server for a given dc-style DN you have to install this DNS module. |
M2Crypto | optional | For displaying short overview of X.509 certificates. |
Python Imaging Library (PIL) | optional | For automatically converting image data to required format (e.g. JPEGImage syntax). |
pyExcelerator | optional | For Excel data export. |
python [web2ldapdir]/sbin/compile.py
or
python -O [web2ldapdir]/sbin/compile.py
for compiling
all Python sources.
[web2ldapdir]/sbin/web2ldap.py
[web2ldapdir]/sbin/web2ldap.py
.
cgi-bin/web2ldap.fcgi
to
CGI-BIN directory of web server.
etc/httpd/sample-mod_fastcgi.conf
.
etc/httpd/sample-mod_fcgid.conf
.