Sébastien Aperghis-Tramoni > RackMan-1.17 > RackMan::Format::LDAP

Download:
RackMan-1.17.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  1
View/Report Bugs
Source   Latest Release: RackMan-1.18

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:

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

syntax highlighting: