許家瑋
and 1 contributors

NAME

App::LDAP::LDIF::Host - the representation of hosts in LDAP

SYNOPSIS

    my $host = App::LDAP::LDIF::Host->new(
        base         => $base,               # the OU (organization unit) which the host belongs to
        cn           => [$name1, $name2],    # the host name
        ipHostNumber => $ipHostNumber,       # the ip of this host
    );

    my $entry = $host->entry;
    # get the host as a instance of Net::Ldap::Entry

    my $host = App::LDAP::LDIF::Host->new($entry)
    # new from a Net::LDAP::Entry instance