Important notes in advance:
Some required modules are not available as openSUSE packages or the packages are too old (especially python-ldap). So we have to add the separate openSUSE repository devel:languages:python.
zypper addrepo http://download.opensuse.org/repositories/devel:/languages:/python/openSUSE_version/devel:languages:python.repo
Install required packages:
zypper install python python-ldap python-pyasn1 python-pyasn1-modules python-pyweblib python-ipaddr
Install optional but useful modules:
zypper install python-pydns python-imaging python-pyexcelerator python-m2crypto
Grab web2ldap source, extract anywhere and it move to /opt/web2ldap:
wget http://www.web2ldap.de/download/web2ldap-version.tar.gz tar xzf web2ldap-version.tar.gz mv web2ldap-version.tar.gz /opt/web2ldap
Check whether all software is installed - watch out for errors and warnings:
python2.7 /opt/web2ldap/sbin/checkinst.py
Relax the IP restrictions by editing web2ldap-version/etc/web2ldap/web2ldapcnf/standalone.py
For testing start built-in HTTP server listening on all interfaces:
python2.7 /opt/web2ldap/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
Install packages for running as FastCGI server:
zypper install apache2-mod_fcgid python-fcgi
Enable FastCGI in Apache by adding fcgid to APACHE_MODULES in file /etc/sysconfig/apache2.
Copy sample web2ldap's configuration and edit to suit your needs (e.g. allowed IP addresses):
cp /opt/web2ldap/etc/httpd/sample-mod_fcgid.conf /etc/apache2/conf.d/web2ldap-fcgid.conf $EDITOR /etc/apache2/conf.d/web2ldap-fcgid.conf rcapache2 restart
Access it with your browser (takes a bit longer the first time):
http://your-server-hostname-or-address-here/web2ldap
or if your server already is configured with SSL enabled:
https://your-server-hostname-or-address-here/web2ldap