A brief description on how to install it on openSUSE 13.1 or newer
Some required modules are not available as main openSUSE packages or the packages are too old (especially python-ldap). So we have to add the separate openSUSE repository devel:languages:python.
export SUSE_RELEASE="$(grep VERSION /etc/SuSE-release|cut -d ' ' -f3)" zypper addrepo http://download.opensuse.org/repositories/devel:/languages:/python/openSUSE_${SUSE_RELEASE}/devel:languages:python.repo
Install required packages:
zypper install python python-xml python-pyweblib python-ldap python-pyasn1 python-pyasn1-modules python-pyweblib python-netaddr
Install optional but useful modules:
zypper install python-pydns python-Pillow python-pyexcelerator python-m2crypto python-paramiko
Grab web2ldap source, extract anywhere and it move to /opt/web2ldap:
wget https://www.web2ldap.de/download/web2ldap-1.2.71.tar.gz tar xzf web2ldap-1.2.71.tar.gz --no-same-owner mv web2ldap-1.2.71 /opt/web2ldap
Check whether all software is installed - watch out for errors and warnings:
python /opt/web2ldap/sbin/checkinst.py
Relax the IP restrictions by editing bind_address and access_allowed in file /opt/web2ldap/etc/web2ldap/web2ldapcnf/standalone.py if you want to make web2ldap accessible by others over network.
For testing start built-in HTTP server listening on all interfaces:
python /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):
Enable mod_fcgid by editing APACHE_MODULES in file /etc/sysconfig/apache2.
cp /opt/web2ldap/etc/httpd/sample-mod_fcgid-2.4.conf /etc/apache2/conf.d/web2ldap-fcgid.conf $EDITOR /etc/sysconfig/apache2 $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/TLS enabled:
https://your-server-hostname-or-address-here/web2ldap