Net::LDAP::Util - Utility functions
use Net::LDAP::Util qw(ldap_error_text ldap_error_name); $mesg = $ldap->search( .... ); die "Error ",ldap_error_name($mesg->code) if $mesg->code;
Net::LDAP::Util is a collection of utility functions for use with the Net::LDAP modules.
Returns the name corresponding with the error number passed in. If the error is not known the a string in the form "LDAP error code %d(0x%02X)" is returned.
"LDAP error code %d(0x%02X)"
Returns the text from the POD description for the given error. If the error code given is unknown then undef is returned.
undef
Graham Barr <gbarr@pobox.com>
Copyright (c) 1999-2000 Graham Barr. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
$Id$
To install Net::LDAP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::LDAP
CPAN shell
perl -MCPAN -e shell install Net::LDAP
For more information on module installation, please visit the detailed CPAN module installation guide.