NAME
Net::LDAP::BER -- BER encoding for LDAP
SYNOPSIS
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 = []
]
]
]
);
DESCRIPTION
Net::LDAP::BER
is a sub-class of Convert::BER and inherits all its methods from Convert::BER. It defines the following tags
- REQ_BIND
-
[APPLICATION 0] SEQUENCE
- REQ_UNBIND
-
[APPLICATION 2] NULL
- REQ_SEARCH
-
[APPLICATION 3] SEQUENCE
- REQ_MODIFY
-
[APPLICATION 6] SEQUENCE
- REQ_ADD
-
[APPLICATION 8] SEQUENCE
- REQ_DELETE
-
[APPLICATION 10] STRING
- REQ_MODDN
-
[APPLICATION 12] SEQUENCE
- REQ_COMPARE
-
[APPLICATION 15] SEQUENCE
- REQ_ABANDON
-
[APPLICATION 16] INTEGER
- REQ_EXTEND
-
[APPLICATION 17] SEQUENCE
- RES_BIND
-
[APPLICATION 1] SEQUENCE
- RES_SEARCH_ENTRY
-
[APPLICATION 4] SEQUENCE
- RES_SEARCH_RESULT
-
[APPLICATION 5] SEQUENCE
- RES_SEARCH_REF
-
[APPLICATION 19] SEQUENCE
- RES_MODIFY
-
[APPLICATION 7] SEQUENCE
- RES_ADD
-
[APPLICATION 9] SEQUENCE
- RES_DELETE
-
[APPLICATION 11] SEQUENCE
- RES_MODDN
-
[APPLICATION 13] SEQUENCE
- RES_COMPARE
-
[APPLICATION 15] SEQUENCE
- RES_EXTEND
-
[APPLICATION 24] SEQUENCE
- AUTH_NONE
-
[CONTEXT 0] STRING
- AUTH_SIMPLE
-
[CONTEXT 0] STRING
- AUTH_KRBV41
-
[CONTEXT 1] STRING
- AUTH_KRBV42
-
[CONTEXT 2] STRING
- AUTH_SASL
-
[CONTEXT 3] SEQUENCE
- SASL_CREDENTIALS
-
[CONTEXT 7] STRING
- SASL_MECHANISM
-
STRING
- FILTER_AND
-
[CONTEXT 0] SEQUENCE
- FILTER_OR
-
[CONTEXT 1] SEQUENCE
- FILTER_NOT
-
[CONTEXT 2] SEQUENCE
- FILTER_EQ
-
[CONTEXT 3] SEQUENCE
- FILTER_SUBSTRS
-
[CONTEXT 4] SEQUENCE
- FILTER_GE
-
[CONTEXT 5] SEQUENCE
- FILTER_LE
-
[CONTEXT 6] SEQUENCE
- FILTER_PRESENT
-
[CONTEXT 7] STRING
- FILTER_APPROX
-
[CONTEXT 8] SEQUENCE
- SUBSTR_INITIAL
-
[CONTEXT 0] STRING
- SUBSTR_ANY
-
[CONTEXT 1] STRING
- SUBSTR_FINAL
-
[CONTEXT 2] STRING
- LDAPDN
-
STRING
- LDAPOID
-
STRING
- LDAP_CONTROLS
-
[CONTEXT 0] SEQUENCE
- LDAP_REFERRAL
-
[CONTEXT 3] SEQUENCE
- EXTEND_REQ_NAME
-
[CONTEXT 0] STRING
- EXTEND_REQ_VALUE
-
[CONTEXT 1] STRING
- MOD_SUPERIOR
-
[CONTEXT 0] STRING
SEE ALSO
ACKNOWLEDGEMENTS
This document is based on a document originally written by Russell Fulton <r.fulton@auckland.ac.nz>.
AUTHOR
Graham Barr <gbarr@pobox.com>.
Please report any bugs, or post any suggestions, to the perl-ldap mailing list <perl-ldap@mail.med.cornell.edu>.
COPYRIGHT
Copyright (c) 1997-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.