App::LDAP::LDIF::Host - the representation of hosts in LDAP
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
To install App::LDAP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::LDAP
CPAN shell
perl -MCPAN -e shell install App::LDAP
For more information on module installation, please visit the detailed CPAN module installation guide.