perl-ldap-backend

Description

perl-ldap-backend is a kit that facilitates the building of simple light-weight dynamic backends to the openldap slapd server.

The server is initialized by reading a simply skeletal LDAP structure in ldif format. As each LDAP objectclass is parsed, the server attempts to locate and load a matching perl module. The perl module can extend the skeletal structure and add further constant and dynamic attributes. Each objectclass has an associated date stamp and dynamic objectclasses have an associated update frequency.

Requirements

This software has been developed and tested on RedHat Linux version 6.2

Requires openldap version 1.x. Use of referrals requires the perl-ldap module, see http://perl-ldap.sourceforge.net/. An RPM for this is available in the RedHat CPAN distribution.

Download

A Source distribution and an RPM are available from http://www.hep.grid.ac.uk/download/development/

Example of Use

Consider the example configuration file (in ./demos/etc/hostinfo.txt)

The configuration file contains the following:

	dn: hn=localhost
	objectclass: top
 
	dn: in=hardware,hn=localhost
	objectclass: cpuinfo
	updatefreq: 5
 
	dn: in=software,hn=localhost
	objectclass: rpmlist
	updatefreq: 60        

The first objectclass is purely structural, but the others result in the perl modules cpuinfo.pm and rpmlist.pm (contained in ./demos/lib) being loaded. These modules collect information about the host's CPU and RPM packages installed on the system respectively. The attribute "updatefreq" specifies the refresh rate in seconds.

(To run this demo read the file ./demos/etc/README)


Last modified Wed 26 November 2003 . View page history
Switch to HTTPS . Website Help . Print View . Built with GridSite 1.4.3
For more about GridPP please contact Neasan O'Neill