Installation on RedHat/CentOS
- RPMs organization
- Get the packages
- Build your packages
- Install packages with yum
- Install packages with rpm
- Install just one component
- File location
- Change default DNS domain
RPMs organization
LemonLDAP::NG provides many RPMs :- lemonldap-ng: meta-package, contains no file but dependencies on other packages
- lemonldap-ng-doc: contains HTML documentation and project docs (README, etc.)
- lemonldap-ng-conf: contains default configuration (DNS domain: example.com)
- lemonldap-ng-test: containts sampel CGI test page
- lemonldap-ng-handler: contains Apache Handler implementation (agent)
- lemonldap-ng-manager: contains administration interface and session explorer
- lemonldap-ng-portal: contains authentication portal and menu
- perl-Lemonldap-NG-Common: CPAN - Shared modules
- perl-Lemonldap-NG-Handler: CPAN - Handler modules
- perl-Lemonldap-NG-Manager: CPAN - Manager modules
- perl-Lemonldap-NG-Portal: CPAN - Portal modules

Get the packages
For now, RPMS are only available in the download section of lemonldap project on OW2 forge. The first RPMS came with version 0.9.3.Build your packages
Download the source RPM, and install it:
# rpm -Uvh lemonldap-ng-VERSION-RELEASE.DIST.src.rpm
Rebuild:
# rpmbuild -ba /usr/src/redhat/SPECS/lemonldap-ng.spec
Install packages with yum
If the packages are stored in a yum repository:
# yum install lemonldap-ng
Install packages with rpm
Before installing the packages, install dependencies.
You have then to install all the downloaded packages:
# rpm -Uvh lemonldap-ng-* perl-Lemonldap-NG-*
Install just one component
You can choose to install only one component by choosing the package lemonldap-ng-portal, lemonldap-ng-handler or lemonldap-ng-manager. Install the package lemonldap-ng-conf only on the server which stores configuration.
File location
- 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
- All Perl scripts/pages are in /var/lib/lemonldap-ng/
- All static content (examples, CSS, images, etc.) is in /usr/share/lemonldap-ng/
Change default DNS domain
By default, DNS domain is "example.com". You can change it quick with a sed command. For example, we change it to ow2.org:
# sed -i 's/example.com/ow2.org/g' /etc/lemonldap-ng/apache2.conf /etc/lemonldap-ng/apps-list.xml /var/lib/lemonldap-ng/conf/lmConf-1 /etc/lemonldap-ng/apply.conf /var/lib/lemonldap-ng/test/index.pl