These packages are required for compiling/installing python-ldap via Python's setuptools (see easy_install below):
apt-get install gcc (maybe more related packages) apt-get install libsasl2-dev apt-get install libldap-dev apt-get install python2.6-dev apt-get install python-setuptools
For automagically converting jpegPhoto attribute values:
apt-get install python-imaging
For running under control of Apache/mod_fcgid:
apt-get install libapache2-mod-fcgid
Some required modules are not available as Debian packages or the
Debian packages are too old (especially python-ldap).
So we proceed here with Python setup tools which automagically downloads
and build the latest releases from PyPI repository.
easy_install python-ldap easy_install pyweblib easy_install pyasn1 easy_install pyasn1_modules
Optional but useful modules
easy_install pydns easy_install pyexcelerator
Grab web2ldap source and extract anywhere.
wget http://www.web2ldap.de/download/web2ldap-version.tar.gz tar xzf web2ldap-version.tar.gz python2.6 web2ldap-version/sbin/checkinst.py [..lots of output..watch for errors..]
Relax the IP restrictions by editing parameters bind_address and access_allowed in web2ldap-version/etc/web2ldap/web2ldapcnf/standalone.py
Start built-in HTTP server listening on all interfaces:
python2.6 web2ldap-version/sbin/web2ldap.py -l 0.0.0.0:1760 -d off
Access it with your browser:
http://your-server-hostname-or-address-here:1760/web2ldap
FIXME: Write Debian-specific FastCGI docs here!
Access it with your browser:
http://your-server-hostname-or-address-here/web2ldap