home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2000 May
/
Chip_2000-05_cd1.bin
/
zkuste
/
Perl
/
ActivePerl-5.6.0.613.msi
/
䆊䌷䈹䈙䏵-䞅䞆䞀㡆䞃䄦䠥
/
_0bd9105ce5eb8056a8bb51f33c26238a
< prev
next >
Wrap
Text File
|
2000-03-23
|
4KB
|
130 lines
<HTML>
<HEAD>
<TITLE>URI::URL::ldap - LDAP Uniform Resource Locators</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> URI::URL::ldap - LDAP Uniform Resource Locators</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="#methods">METHODS</A></LI>
<LI><A HREF="#see also">SEE ALSO</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>URI::URL::ldap - LDAP Uniform Resource Locators</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 URI::URL::ldap;
</PRE>
<PRE>
$url = URI::URL::ldap->new($url_string);</PRE>
<PRE>
$dn = $url->dn;
$filter = $url->filter;
@attr = $url->attributes;
$scope = $url->scope;
%extn = $url->extensions;</PRE>
<PRE>
$url = URI::URL::ldap->new;</PRE>
<PRE>
$url->host("ldap.itd.umich.edu");
$url->dn("o=University of Michigan,c=US");
$url->attributes(qw(postalAddress));
$url->scope('sub');
$url->filter('(cn=Babs Jensen)');
print $url->as_string,"\n";</PRE>
<P>
<HR>
<H1><A NAME="description">DESCRIPTION</A></H1>
<P><CODE>URI::URL::ldap</CODE> provides an interface to parse an LDAP URL in its
constituent parts and also build a URL as described in
<EM>RFC-2255</EM></P>
<P>
<HR>
<H1><A NAME="methods">METHODS</A></H1>
<P><CODE>URI::URL::ldap</CODE> support all methods defined by <A HREF="../../../site/lib/URI/URL.html">the URI::URL manpage</A>, plus the
following.</P>
<P>Each of the methods can be used to set or get the value in the URL. If arguments
are given then a new value will be set for the given part of the URL.</P>
<DL>
<DT><STRONG><A NAME="item_dn">dn</A></STRONG><BR>
<DD>
Set or get the DN part of the URL
<P></P>
<DT><STRONG><A NAME="item_attributes">attributes</A></STRONG><BR>
<DD>
Set or get the list of attribute names which will be returned by the search.
<P></P>
<DT><STRONG><A NAME="item_scope">scope</A></STRONG><BR>
<DD>
Set or get the scope that the search will use. The value can be one of
<CODE>base</CODE>, <CODE>one</CODE> or <A HREF="../../../lib/Pod/perlfunc.html#item_sub"><CODE>sub</CODE></A>. If none is given the it will default to <CODE>base</CODE>
<P></P>
<DT><STRONG><A NAME="item_filter">filter</A></STRONG><BR>
<DD>
Set or get the filter that the search will use.
<P></P>
<DT><STRONG><A NAME="item_extensions">extensions</A></STRONG><BR>
<DD>
Set or get the extensions used for the search. The list passed should be in the
form type1, value1, type2, value2 ... This is also the form of list that
will be returned.
<P></P></DL>
<P>
<HR>
<H1><A NAME="see also">SEE ALSO</A></H1>
<P><EM>RFC-2255</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) 1998 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> URI::URL::ldap - LDAP Uniform Resource Locators</P></STRONG>
</TD></TR>
</TABLE>
</BODY>
</HTML>