Installation on Debian/Ubuntu with packages

LemonLDAP::NG provides these packages:

  • lemonldap-ng: meta-package, contains no file but dependencies on other packages
  • lemonldap-ng-doc: contains HTML documentation and project docs (README, etc.)
  • liblemonldap-ng-conf-perl: configuration and common files
  • liblemonldap-ng-handler-perl: Handler files
  • liblemonldap-ng-manager-perl: Manager files
  • liblemonldap-ng-portal-perl: Portal files

If you run Debian testing or unstable, the packages are directly installable:

apt-cache search lemonldap-ng
Packages from Debian repository may not be up to date. Prefer then the other solutions (see below).

You can add this repository to have recent packages:

vi /etc/apt/sources.list.d/lemonldap-ng.list
# LemonLDAP::NG repository
deb squeeze main
deb-src squeeze main

Run this to update packages cache:

apt-get update

Packages are available on the Download page.

apt-get install lemonldap-ng

Before installing the packages, install dependencies.


dpkg -i liblemonldap-ng-* lemonldap-ng*

By default, DNS domain is You can change it quick with a sed command. For example, we change it to

sed -i 's/example\.com/' /etc/lemonldap-ng/* /var/lib/lemonldap-ng/conf/lmConf-1 /var/lib/lemonldap-ng/test/

Enable LL::NG sites in Apache:

a2ensite handler-apache2.conf
a2ensite portal-apache2.conf
a2ensite manager-apache2.conf

Restart Apache:

apache2ctl configtest
apache2ctl restart

If you upgraded LL::NG, check all upgrade notes.

The upgrade process will also have migrate old configuration files into /etc/lemonldap-ng/lemonldap-ng.ini. This includes the application list which is now set in the applicationList parameter from [portal] section, for example:

applicationList={ 'Menu' => { type => 'category', 'Example' => { type => 'category', 'test1' => { type => 'application', options => { name => 'Application Test 1', uri => '', description => 'A simple application displaying authenticated user', logo => 'wheels.png', display => 'auto',  }, },'test2' => { type => 'application', options => { name => 'Application Test 2', uri => '', description => 'The same simple application displaying authenticated user', logo => 'wheels.png', display => 'auto',  }, }, },'Administration' => { type => 'category', 'manager' => { type => 'application', options => { name => 'WebSSO Manager', uri => '', description => 'Configure LemonLDAP::NG WebSSO', logo => 'tools.png', display => 'on',  }, },'sessions' => { type => 'application', options => { name => 'Sessions explorer', uri => '', description => 'Explore WebSSO sessions', logo => 'tools.png', display => 'on',  }, }, },'Documentation' => { type => 'category', 'localdoc' => { type => 'application', options => { name => 'Local documentation', uri => '', description => 'Documentation supplied with LemonLDAP::NG', logo => 'docs.png', display => 'on',  }, },'officialwebsite' => { type => 'application', options => { name => 'Offical Website', uri => '', description => 'Official LemonLDAP::NG Website', logo => 'web.png', display => 'on',  }, }, }, }, }
You should now use the Manager to configure all applications and categories, and then comment or remove the applicationList parameter from /etc/lemonldap-ng/lemonldap-ng.ini.

Configure your DNS server to resolve names with your server IP.

For tests with, launch the following :
cat /etc/lemonldap-ng/for_etc_hosts >> /etc/hosts

Follow the next steps

  • Configuration is in /etc/lemonldap-ng
  • LemonLDAP::NG configuration (edited by the Manager) is in /var/lib/lemonldap-ng/conf/
  • All Perl modules are in the VENDOR perl directory (/usr/share/perl5/)
  • All Perl scripts/pages are in /var/lib/lemonldap-ng/
  • All lemonldap-ng tools are in /usr/share/lemonldap-ng/bin/
  • All static content (examples, CSS, images, etc.) is in /usr/share/lemonldap-ng/
  • Apache configuration files are in /etc/lemonldap-ng and linked in /etc/apache2/sites-available

You can also get the LemonLDAP::NG archive and make the package yourself:

tar xzf lemonldap-ng-*.tar.gz
cd lemonldap-ng-*
make debian-packages