NAME

RackMan::Format::LDAP - Generate the LDAP definition for a given RackObject

SYNOPSIS

use RackMan::Format::LDAP;

RackMan::Format::LDAP->write({
    rackdev => $rackdev,  # a RackMan::Device instance
    rackman => $rackman,  # a RackMan instance
});

DESCRIPTION

This module generates a LDAP definition file (LDIF) to import basic information about the given RackObject in GOsa2.

METHODS

write

Generate the file.

Arguments

Arguments are expected as a hashref with the following keys:

  • rackdev - (mandatory) a RackMan::Device instance

  • rackman - (mandatory) a RackMan instance

  • verbose - (optional) boolean, set to true to be verbose

FUNCTIONS

make_ldif

Generate the LDIF content of the given RackMan::Device

Arguments

1. a RackMan::Device object

Example:

my $ldif = make_ldif($rackdev);

CONFIGURATION

This module gets its configuration from the [format:ldap] section of the main rack.conf, with the following parameters:

path

Path of the directory to store the generated files.

base_dn

Base DN to create the canonical name of the object

base_dn = ou=servers,ou=systems,dc=company,dc=com

scm

Specify the SCM tool to use for versionning generated files.

AUTHOR

Sebastien Aperghis-Tramoni