Net::LDAP::BER -- BER encoding for LDAP
use Net::LDAP::BER; $ber = Net::LDAP::BER->new; $ber->encode( # A bind encode SEQUENCE => [ INTEGER => $mesg->mesg_id, REQ_BIND => [ INTEGER => $version, LDAPDN => $dn || "", $auth_type => $passwd ], OPTIONAL => [ BER => $ctrl ] ] ); $ber->decode( # The decode in Net::LDAP::Message $self->result_tag => [ ENUM => \$code, STRING => \$dn, STRING => \$error, OPTIONAL => [ LDAP_REFERRAL => [ STRING => $referral = [] ] ] ] );
Net::LDAP::BER is a sub-class of Convert::BER and inherits all its methods from Convert::BER. It defines the following tags
Net::LDAP::BER
[APPLICATION 0] SEQUENCE
[APPLICATION 2] NULL
[APPLICATION 3] SEQUENCE
[APPLICATION 6] SEQUENCE
[APPLICATION 8] SEQUENCE
[APPLICATION 10] STRING
[APPLICATION 12] SEQUENCE
[APPLICATION 15] SEQUENCE
[APPLICATION 16] INTEGER
[APPLICATION 17] SEQUENCE
[APPLICATION 1] SEQUENCE
[APPLICATION 4] SEQUENCE
[APPLICATION 5] SEQUENCE
[APPLICATION 19] SEQUENCE
[APPLICATION 7] SEQUENCE
[APPLICATION 9] SEQUENCE
[APPLICATION 11] SEQUENCE
[APPLICATION 13] SEQUENCE
[APPLICATION 24] SEQUENCE
[CONTEXT 0] STRING
[CONTEXT 1] STRING
[CONTEXT 2] STRING
[CONTEXT 3] SEQUENCE
[CONTEXT 7] STRING
STRING
[CONTEXT 0] SEQUENCE
[CONTEXT 1] SEQUENCE
[CONTEXT 2] SEQUENCE
[CONTEXT 4] SEQUENCE
[CONTEXT 5] SEQUENCE
[CONTEXT 6] SEQUENCE
[CONTEXT 8] SEQUENCE
Net::LDAP, Convert::BER
This document is based on a document originally written by Russell Fulton <r.fulton@auckland.ac.nz>
Graham Barr <gbarr@pobox.com>
Copyright (c) 1997-8 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.
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.