web2ldap - Installation

Page last modified:

Requirements

For running this CGI-BIN you need:

For running as CGI-BIN:

For using SSL and client certificates:

Ready-to-use packages of the required software in current Linux distributions:

Documentation to get the required LDAP stuff working:

Installing

  1. Install all required software.
  2. Edit cgi-bin/web2ldap.py:
  3. Edit cgi-bin/web2ldapcnf.py:
  4. Call python sbin/compile.py and python -O sbin/compile.py for compiling all sources.
  5. Put the Python modules under pylib/ anywhere in your Python path or adjust the parameter pylibdirs in web2ldapcnf.py (recommended) to add more module directories to the Python path.
  6. For a quick start as stand-alone web gateway simply invoke the script cgi-bin/web2ldap.py. Use option -h for getting a brief help text. This will also compile all necessary modules. (Under Unix you have to be root to bind to a port below 1024.)

Usage

You can just access the gateway through the appropriate URL without any parameters. After a login screen it presents a interactive interface which covers every aspect of a regular LDAP client.

Or you want to have your own forms suitable for your special application e.g. you want to add entries for a special object class with a set of particular attributes or it is necessary to restrict the search to a special LDAP host to make usage easier for the user. You might want to use your own input form templates for adding persons, server or location entries.
No problem, the web2ldap is designed to be very flexible. Instead of using the build in search and input forms you can save the HTML code, have a closer look at it and write your own nice designed HTML forms which just call the CGI-BIN with the appropriate parameters.