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

Modify your /etc/hosts file to include:
127.0.0.2       auth.example.com
127.0.0.3       test.example.com
127.0.0.4       manager.example.com

Now you have to edit configuration to set your LDAP settings. You can either use : If you don't set managerDn and managerPassword, Lemonldap::NG will use an anonymous bind to find user dn.

Warnings: Next, restart Apache and use your prefered browser and try to connect to http://test.example.com/. You'll be redirect to auth.example.com. Try to authenticate yourself with a valid account and the protected page will appear.