Installation of the provided example
The proposed example use a protected site named test.example.com. Non authenticated users are redirected to auth.example.com.Form the tarball
First follow the tarball installation instruction. Then run:$ make example
From Debian packages
First follow the debian installation procedure. The example is provided with the package, nothing left to do.
Configuration
After build, you have a new file named example/apache.conf. You just have to include this file in Apache configuration:
# Apache-1.3: add this to httpd.conf
include /path/to/lemonldap-ng/source/example/apache.conf
# Apache-2.x:
include /path/to/lemonldap-ng/source/example/apache2.conf
# Debian Apache-1.3
ln -s /usr/share/doc/lemonldap-ng/example/apache.conf /etc/apache/conf.d/test.conf
# or with Apache-2.x
ln -s /usr/share/doc/lemonldap-ng/example/apache2.conf /etc/apache2/sites-enabled/test.conf
127.0.0.2 auth.example.com 127.0.0.3 test.example.com 127.0.0.4 manager.example.com
- the manager interface: restart Apache and connect to http://manager.example.com/
- edit /path/to/lemonldap-ng/source/example/lmConfig-1 and specify your LDAP settings (Debian users: /usr/share/doc/lemonldap-ng/example/conf/lmConfig-1).
- only few parameters can be set by hand in the configuration file. You have to use the manager to change configuration, but since the example is yet configured, you can edit directly the file,
- if you use the File backend to store configuration, you have to check the rights of the directory to allow apache process (eg www-data user) to read/write on it,
- each new configuration is saved by the manager in a new file (or a new record with DBI) so you can recover an old configuration by removing the new one.