home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2000 May
/
Chip_2000-05_cd1.bin
/
zkuste
/
Perl
/
ActivePerl-5.6.0.613.msi
/
䆊䌷䈹䈙䏵-䞅䞆䞀㡆䞃䄦䠥
/
_56d168ac9da6a2b1fb7be27d506d177f
< prev
next >
Wrap
Text File
|
2000-03-23
|
8KB
|
293 lines
<HTML>
<HEAD>
<TITLE>Net::LDAP::BER -- BER encoding for LDAP</TITLE>
<LINK REL="stylesheet" HREF="../../../../Active.css" TYPE="text/css">
<LINK REV="made" HREF="mailto:">
</HEAD>
<BODY>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
<TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
<STRONG><P CLASS=block> Net::LDAP::BER -- BER encoding for LDAP</P></STRONG>
</TD></TR>
</TABLE>
<A NAME="__index__"></A>
<!-- INDEX BEGIN -->
<UL>
<LI><A HREF="#name">NAME</A></LI><LI><A HREF="#supportedplatforms">SUPPORTED PLATFORMS</A></LI>
<LI><A HREF="#synopsis">SYNOPSIS</A></LI>
<LI><A HREF="#description">DESCRIPTION</A></LI>
<LI><A HREF="#see also">SEE ALSO</A></LI>
<LI><A HREF="#acknowledgements">ACKNOWLEDGEMENTS</A></LI>
<LI><A HREF="#author">AUTHOR</A></LI>
<LI><A HREF="#copyright">COPYRIGHT</A></LI>
</UL>
<!-- INDEX END -->
<HR>
<P>
<H1><A NAME="name">NAME</A></H1>
<P>Net::LDAP::BER -- BER encoding for LDAP</P>
<P>
<HR>
<H1><A NAME="supportedplatforms">SUPPORTED PLATFORMS</A></H1>
<UL>
<LI>Linux</LI>
<LI>Solaris</LI>
<LI>Windows</LI>
</UL>
<HR>
<H1><A NAME="synopsis">SYNOPSIS</A></H1>
<PRE>
use Net::LDAP::BER;
</PRE>
<PRE>
$ber = Net::LDAP::BER->new;</PRE>
<PRE>
$ber->encode( # A bind encode
SEQUENCE => [
INTEGER => $mesg->mesg_id,
REQ_BIND => [
INTEGER => $version,
LDAPDN => $dn || "",
$auth_type => $passwd
],
OPTIONAL => [ BER => $ctrl ]
]
);</PRE>
<PRE>
$ber->decode( # The decode in Net::LDAP::Message
$self->result_tag => [
ENUM => \$code,
STRING => \$dn,
STRING => \$error,
OPTIONAL => [
LDAP_REFERRAL => [
STRING => $referral = []
]
]
]
);</PRE>
<P>
<HR>
<H1><A NAME="description">DESCRIPTION</A></H1>
<P><CODE>Net::LDAP::BER</CODE> is a sub-class of <A HREF="../../../../site/lib/Convert/BER.html">the Convert::BER manpage</A> and inherits all its
methods from <A HREF="../../../../site/lib/Convert/BER.html">the Convert::BER manpage</A>. It defines the following tags</P>
<DL>
<DT><STRONG><A NAME="item_REQ_BIND">REQ_BIND</A></STRONG><BR>
<DD>
[APPLICATION 0] SEQUENCE
<P></P>
<DT><STRONG><A NAME="item_REQ_UNBIND">REQ_UNBIND</A></STRONG><BR>
<DD>
[APPLICATION 2] NULL
<P></P>
<DT><STRONG><A NAME="item_REQ_SEARCH">REQ_SEARCH</A></STRONG><BR>
<DD>
[APPLICATION 3] SEQUENCE
<P></P>
<DT><STRONG><A NAME="item_REQ_MODIFY">REQ_MODIFY</A></STRONG><BR>
<DD>
[APPLICATION 6] SEQUENCE
<P></P>
<DT><STRONG><A NAME="item_REQ_ADD">REQ_ADD</A></STRONG><BR>
<DD>
[APPLICATION 8] SEQUENCE
<P></P>
<DT><STRONG><A NAME="item_REQ_DELETE">REQ_DELETE</A></STRONG><BR>
<DD>
[APPLICATION 10] STRING
<P></P>
<DT><STRONG><A NAME="item_REQ_MODDN">REQ_MODDN</A></STRONG><BR>
<DD>
[APPLICATION 12] SEQUENCE
<P></P>
<DT><STRONG><A NAME="item_REQ_COMPARE">REQ_COMPARE</A></STRONG><BR>
<DD>
[APPLICATION 15] SEQUENCE
<P></P>
<DT><STRONG><A NAME="item_REQ_ABANDON">REQ_ABANDON</A></STRONG><BR>
<DD>
[APPLICATION 16] INTEGER
<P></P>
<DT><STRONG><A NAME="item_REQ_EXTEND">REQ_EXTEND</A></STRONG><BR>
<DD>
[APPLICATION 17] SEQUENCE
<P></P>
<DT><STRONG><A NAME="item_RES_BIND">RES_BIND</A></STRONG><BR>
<DD>
[APPLICATION 1] SEQUENCE
<P></P>
<DT><STRONG><A NAME="item_RES_SEARCH_ENTRY">RES_SEARCH_ENTRY</A></STRONG><BR>
<DD>
[APPLICATION 4] SEQUENCE
<P></P>
<DT><STRONG><A NAME="item_RES_SEARCH_RESULT">RES_SEARCH_RESULT</A></STRONG><BR>
<DD>
[APPLICATION 5] SEQUENCE
<P></P>
<DT><STRONG><A NAME="item_RES_SEARCH_REF">RES_SEARCH_REF</A></STRONG><BR>
<DD>
[APPLICATION 19] SEQUENCE
<P></P>
<DT><STRONG><A NAME="item_RES_MODIFY">RES_MODIFY</A></STRONG><BR>
<DD>
[APPLICATION 7] SEQUENCE
<P></P>
<DT><STRONG><A NAME="item_RES_ADD">RES_ADD</A></STRONG><BR>
<DD>
[APPLICATION 9] SEQUENCE
<P></P>
<DT><STRONG><A NAME="item_RES_DELETE">RES_DELETE</A></STRONG><BR>
<DD>
[APPLICATION 11] SEQUENCE
<P></P>
<DT><STRONG><A NAME="item_RES_MODDN">RES_MODDN</A></STRONG><BR>
<DD>
[APPLICATION 13] SEQUENCE
<P></P>
<DT><STRONG><A NAME="item_RES_COMPARE">RES_COMPARE</A></STRONG><BR>
<DD>
[APPLICATION 15] SEQUENCE
<P></P>
<DT><STRONG><A NAME="item_RES_EXTEND">RES_EXTEND</A></STRONG><BR>
<DD>
[APPLICATION 24] SEQUENCE
<P></P>
<DT><STRONG><A NAME="item_AUTH_NONE">AUTH_NONE</A></STRONG><BR>
<DD>
[CONTEXT 0] STRING
<P></P>
<DT><STRONG><A NAME="item_AUTH_SIMPLE">AUTH_SIMPLE</A></STRONG><BR>
<DD>
[CONTEXT 0] STRING
<P></P>
<DT><STRONG><A NAME="item_AUTH_KRBV41">AUTH_KRBV41</A></STRONG><BR>
<DD>
[CONTEXT 1] STRING
<P></P>
<DT><STRONG><A NAME="item_AUTH_KRBV42">AUTH_KRBV42</A></STRONG><BR>
<DD>
[CONTEXT 2] STRING
<P></P>
<DT><STRONG><A NAME="item_AUTH_SASL">AUTH_SASL</A></STRONG><BR>
<DD>
[CONTEXT 3] SEQUENCE
<P></P>
<DT><STRONG><A NAME="item_SASL_CREDENTIALS">SASL_CREDENTIALS</A></STRONG><BR>
<DD>
[CONTEXT 7] STRING
<P></P>
<DT><STRONG><A NAME="item_SASL_MECHANISM">SASL_MECHANISM</A></STRONG><BR>
<DD>
STRING
<P></P>
<DT><STRONG><A NAME="item_FILTER_AND">FILTER_AND</A></STRONG><BR>
<DD>
[CONTEXT 0] SEQUENCE
<P></P>
<DT><STRONG><A NAME="item_FILTER_OR">FILTER_OR</A></STRONG><BR>
<DD>
[CONTEXT 1] SEQUENCE
<P></P>
<DT><STRONG><A NAME="item_FILTER_NOT">FILTER_NOT</A></STRONG><BR>
<DD>
[CONTEXT 2] SEQUENCE
<P></P>
<DT><STRONG><A NAME="item_FILTER_EQ">FILTER_EQ</A></STRONG><BR>
<DD>
[CONTEXT 3] SEQUENCE
<P></P>
<DT><STRONG><A NAME="item_FILTER_SUBSTRS">FILTER_SUBSTRS</A></STRONG><BR>
<DD>
[CONTEXT 4] SEQUENCE
<P></P>
<DT><STRONG><A NAME="item_FILTER_GE">FILTER_GE</A></STRONG><BR>
<DD>
[CONTEXT 5] SEQUENCE
<P></P>
<DT><STRONG><A NAME="item_FILTER_LE">FILTER_LE</A></STRONG><BR>
<DD>
[CONTEXT 6] SEQUENCE
<P></P>
<DT><STRONG><A NAME="item_FILTER_PRESENT">FILTER_PRESENT</A></STRONG><BR>
<DD>
[CONTEXT 7] STRING
<P></P>
<DT><STRONG><A NAME="item_FILTER_APPROX">FILTER_APPROX</A></STRONG><BR>
<DD>
[CONTEXT 8] SEQUENCE
<P></P>
<DT><STRONG><A NAME="item_SUBSTR_INITIAL">SUBSTR_INITIAL</A></STRONG><BR>
<DD>
[CONTEXT 0] STRING
<P></P>
<DT><STRONG><A NAME="item_SUBSTR_ANY">SUBSTR_ANY</A></STRONG><BR>
<DD>
[CONTEXT 1] STRING
<P></P>
<DT><STRONG><A NAME="item_SUBSTR_FINAL">SUBSTR_FINAL</A></STRONG><BR>
<DD>
[CONTEXT 2] STRING
<P></P>
<DT><STRONG><A NAME="item_LDAPDN">LDAPDN</A></STRONG><BR>
<DD>
STRING
<P></P>
<DT><STRONG><A NAME="item_LDAP_CONTROLS">LDAP_CONTROLS</A></STRONG><BR>
<DD>
[CONTEXT 0] SEQUENCE
<P></P>
<DT><STRONG><A NAME="item_LDAP_REFERRAL">LDAP_REFERRAL</A></STRONG><BR>
<DD>
[CONTEXT 3] SEQUENCE
<P></P>
<DT><STRONG><A NAME="item_EXTEND_REQ_NAME">EXTEND_REQ_NAME</A></STRONG><BR>
<DD>
[CONTEXT 0] STRING
<P></P>
<DT><STRONG><A NAME="item_EXTEND_REQ_VALUE">EXTEND_REQ_VALUE</A></STRONG><BR>
<DD>
[CONTEXT 1] STRING
<P></P>
<DT><STRONG><A NAME="item_MOD_SUPERIOR">MOD_SUPERIOR</A></STRONG><BR>
<DD>
[CONTEXT 0] STRING
<P></P></DL>
<P>
<HR>
<H1><A NAME="see also">SEE ALSO</A></H1>
<P><A HREF="../../../../site/lib/Net/LDAP.html">the Net::LDAP manpage</A>, <A HREF="../../../../site/lib/Convert/BER.html">the Convert::BER manpage</A></P>
<P>
<HR>
<H1><A NAME="acknowledgements">ACKNOWLEDGEMENTS</A></H1>
<P>This document is based on a document originally written by Russell Fulton
<<EM><A HREF="mailto:r.fulton@auckland.ac.nz">r.fulton@auckland.ac.nz</A></EM>>.</P>
<P>
<HR>
<H1><A NAME="author">AUTHOR</A></H1>
<P>Graham Barr <<EM><A HREF="mailto:gbarr@pobox.com">gbarr@pobox.com</A></EM>>.</P>
<P>
<HR>
<H1><A NAME="copyright">COPYRIGHT</A></H1>
<P>Copyright (c) 1997-1999 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.</P>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
<TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
<STRONG><P CLASS=block> Net::LDAP::BER -- BER encoding for LDAP</P></STRONG>
</TD></TR>
</TABLE>
</BODY>
</HTML>