A brief description on how to install it on RHEL
yum install python python-setuptools yum install wget yum install python-ldap python-netaddr python-pyasn1 python-pyasn1-modules
Optional but useful modules:
yum install python-pillow python-dns
Some required modules are not available as RHEL packages or the
packages are too old.
So we proceed here with Python setup tools which automagically download
and build the latest releases from PyPI repository.
Set proxy settings if needed:
export http_proxy="http://proxy.example.com:8080" export https_proxy="http://proxy.example.com:8080" export ftp_proxy="http://proxy.example.com:8080"
Install needed modules:
easy_install pyweblib
Optional but useful modules
easy_install pyexcelerator
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