RackMan::Format::LDAP - Generate the LDAP definition for a given RackObject
use RackMan::Format::LDAP; RackMan::Format::LDAP->write({ rackdev => $rackdev, # a RackMan::Device instance rackman => $rackman, # a RackMan instance });
This module generates a LDAP definition file (LDIF) to import basic information about the given RackObject in GOsa2.
Generate the file.
Arguments
Arguments are expected as a hashref with the following keys:
rackdev - (mandatory) a RackMan::Device instance
rackdev
rackman - (mandatory) a RackMan instance
rackman
verbose - (optional) boolean, set to true to be verbose
verbose
Generate the LDIF content of the given RackMan::Device
RackMan::Device
Example:
my $ldif = make_ldif($rackdev);
This module gets its configuration from the [format:ldap] section of the main rack.conf, with the following parameters:
[format:ldap]
Path of the directory to store the generated files.
Base DN to create the canonical name of the object
base_dn = ou=servers,ou=systems,dc=company,dc=com
Specify the SCM tool to use for versionning generated files.
Sebastien Aperghis-Tramoni
To install RackMan, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RackMan
CPAN shell
perl -MCPAN -e shell install RackMan
For more information on module installation, please visit the detailed CPAN module installation guide.