home *** CD-ROM | disk | FTP | other *** search
Text File | 2000-03-23 | 56.3 KB | 1,906 lines |
-
- <HTML>
- <HEAD>
- <TITLE>Mozilla::LDAP::API - Perl methods for LDAP C API calls</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> Mozilla::LDAP::API - Perl methods for LDAP C API calls</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="#this document">THIS DOCUMENT</A></LI>
- <LI><A HREF="#creating an add/modify hash">CREATING AN ADD/MODIFY HASH</A></LI>
- <LI><A HREF="#api methods">API Methods</A></LI>
- <LI><A HREF="#credits">CREDITS</A></LI>
- <LI><A HREF="#bugs">BUGS</A></LI>
- <LI><A HREF="#see also">SEE ALSO</A></LI>
- </UL>
- <!-- INDEX END -->
-
- <HR>
- <P>
- <H1><A NAME="name">NAME</A></H1>
- <PRE>
- Mozilla::LDAP::API - Perl methods for LDAP C API calls</PRE>
- <P>
- <HR>
- <H1><A NAME="supportedplatforms">SUPPORTED PLATFORMS</A></H1>
- <UL>
- <LI>Windows</LI>
- </UL>
- <HR>
- <H1><A NAME="synopsis">SYNOPSIS</A></H1>
- <PRE>
- use Mozilla::LDAP::API;
- or
- use Mozilla::LDAP::API qw(:api :ssl :constant);
- or
- use Mozilla::LDAP::API qw(:api :ssl :apiv3 :constant);</PRE>
- <P>
- <HR>
- <H1><A NAME="description">DESCRIPTION</A></H1>
- <P>This package offers a direct interface to the LDAP C API calls from Perl.
- It is used internally by the other Mozilla::LDAP modules. It is highly
- suggested that you use the object oriented interface in
- Mozilla::LDAP::Conn and Mozilla::LDAP::Entry unless you need to use
- asynchronous calls or other functionality not available in the OO interface.</P>
- <P>
- <HR>
- <H1><A NAME="this document">THIS DOCUMENT</A></H1>
- <P>This document has a number of known errors that will be corrected in the
- next revision. Since it is not expected that users will need to use this
- interface frequently, priority was placed on other documents. You can find
- examples of how to actually use the API calls under the test_api directory.</P>
- <P>
- <HR>
- <H1><A NAME="creating an add/modify hash">CREATING AN ADD/MODIFY HASH</A></H1>
- <P>For the add and modify routines you will need to generate
- a list of attributes and values.</P>
- <P>You will do this by creating a HASH table. Each attribute in the
- hash contains associated values. These values can be one of three
- things.</P>
- <PRE>
- - SCALAR VALUE (ex. "Clayton Donley")
- - ARRAY REFERENCE (ex. ["Clayton Donley","Clay Donley"])
- - HASH REFERENCE (ex. {"r",["Clayton Donley"]}
- note: the value inside the HASH REFERENCE must currently
- be an ARRAY REFERENCE.</PRE>
- <P>The key inside the HASH REFERENCE must be one of the following for a
- modify operation:
- - ``a'' for LDAP_MOD_ADD (Add these values to the attribute)
- - ``r'' for LDAP_MOD_REPLACE (Replace these values in the attribute)
- - ``d'' for LDAP_MOD_DELETE (Delete these values from the attribute)</P>
- <P>Additionally, in add and modify operations, you may specify ``b'' if the
- attributes you are adding are BINARY (ex. ``rb'' to replace binary).</P>
- <P>Currently, it is only possible to do one operation per add/modify
- operation, meaning you can't do something like:</P>
- <PRE>
- {"d",["Clayton"],"a",["Clay"]} <-- WRONG!</PRE>
- <P>Using any combination of the above value types, you can do things like:</P>
- <P>%ldap_modifications = (
- ``cn'', ``Clayton Donley'', # Replace 'cn' values
- ``givenname'', [``Clayton'',``Clay''], # Replace 'givenname' values
- ``mail'', {``a'',[``donley\@cig.mcel.mot.com''], #Add 'mail' values
- ``jpegphoto'', {``rb'',[$jpegphotodata]}, # Replace Binary jpegPhoto
- );</P>
- <P>Then remember to call the add or modify operations with a REFERENCE to
- this HASH.</P>
- <P>
- <HR>
- <H1><A NAME="api methods">API Methods</A></H1>
- <P>The following are the available API methods for Mozilla::LDAP::API. Many
- of these items have bad examples and OUTPUT information. Other information
- should be correct.</P>
- <DL>
- <DT><STRONG><A NAME="item_ldap_abandon"><STRONG>ldap_abandon</STRONG>(ld,msgid)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Abandon an asynchronous LDAP operation</P>
- <P>INPUT:
- ld - LDAP Session Handle
- msgid - Integer</P>
- <P>OUTPUT:
- status - Integer</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_abandon($ld,$msgid);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_abandon_ext"><STRONG>ldap_abandon_ext</STRONG>(ld,msgid,serverctrls,clientctrls)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Abandon an asynchronous LDAP operation w/ Controls</P>
- <P>INPUT:
- ld - LDAP Session Handle
- msgid - Integer
- serverctrls - LDAP Control List Pointer
- clientctrls - LDAP Control List Pointer</P>
- <P>OUTPUT:
- status - Integer</P>
- <P>AVAILABILITY: V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_abandon_ext($ld,$msgid,$serverctrls,$clientctrls);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_add"><STRONG>ldap_add</STRONG>(ld,dn,attrs)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Asynchronously add a LDAP entry</P>
- <P>INPUT:
- ld - LDAP Session Handle
- dn - String
- attrs - LDAP Add/Modify Hash</P>
- <P>OUTPUT:
- status - Integer</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_add($ld,$dn,$attrs);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_add_ext"><STRONG>ldap_add_ext</STRONG>(ld,dn,attrs,serverctrls,clientctrls,msgidp)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Asynchronously add a LDAP entry w/ Controls</P>
- <P>INPUT:
- ld - LDAP Session Handle
- dn - String
- attrs - LDAP Add/Modify Hash
- serverctrls - LDAP Control List Pointer
- clientctrls - LDAP Control List Pointer
- msgidp - Integer</P>
- <P>OUTPUT:
- status - Integer
- msgidp - Integer</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_add_ext($ld,$dn,$attrs,$serverctrls,$clientctrls,$msgidp);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_add_ext_s"><STRONG>ldap_add_ext_s</STRONG>(ld,dn,attrs,serverctrls,clientctrls)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Synchronously add a LDAP entry w/ Controls</P>
- <P>INPUT:
- ld - LDAP Session Handle
- dn - String
- attrs - LDAP Add/Modify Hash
- serverctrls - LDAP Control List Pointer
- clientctrls - LDAP Control List Pointer</P>
- <P>OUTPUT:
- status - Integer</P>
- <P>AVAILABILITY: V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_add_ext_s($ld,$dn,$attrs,$serverctrls,$clientctrls);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_add_s"><STRONG>ldap_add_s</STRONG>(ld,dn,attrs)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Synchronously add a LDAP entry</P>
- <P>INPUT:
- ld - LDAP Session Handle
- dn - String
- attrs - LDAP Add/Modify Hash</P>
- <P>OUTPUT:
- status - Integer</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_add_s($ld,$dn,$attrs);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_ber_free"><STRONG>ldap_ber_free</STRONG>(ber,freebuf)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Free a BER element pointer</P>
- <P>INPUT:
- ber - BER Element Pointer
- freebuf - Integer</P>
- <P>OUTPUT:
- status - NONE</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_ber_free($ber,$freebuf);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_bind"><STRONG>ldap_bind</STRONG>(ld,dn,passwd,authmethod)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Asynchronously bind to the LDAP server</P>
- <P>INPUT:
- ld - LDAP Session Handle
- dn - String
- passwd - String
- authmethod - Integer</P>
- <P>OUTPUT:
- status - Integer</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_bind($ld,$dn,$passwd,$authmethod);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_bind_s"><STRONG>ldap_bind_s</STRONG>(ld,dn,passwd,authmethod)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Synchronously bind to a LDAP server</P>
- <P>INPUT:
- ld - LDAP Session Handle
- dn - String
- passwd - String
- authmethod - Integer</P>
- <P>OUTPUT:
- status - Integer</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_bind_s($ld,$dn,$passwd,$authmethod);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_compare"><STRONG>ldap_compare</STRONG>(ld,dn,attr,value)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Asynchronously compare an attribute/value pair and an entry</P>
- <P>INPUT:
- ld - LDAP Session Handle
- dn - String
- attr - String
- value - String</P>
- <P>OUTPUT:
- status - Integer</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_compare($ld,$dn,$attr,$value);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_compare_ext"><STRONG>ldap_compare_ext</STRONG>(ld,dn,attr,bvalue,serverctrls,clientctrls,msgidp)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Asynchronously compare an attribute/value pair and an entry w/ Controls</P>
- <P>INPUT:
- ld - LDAP Session Handle
- dn - String
- attr - String
- bvalue - Binary String
- serverctrls - LDAP Control List Pointer
- clientctrls - LDAP Control List Pointer
- msgidp - Integer</P>
- <P>OUTPUT:
- status - Integer
- msgidp - Integer</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_compare_ext($ld,$dn,$attr,$bvalue,$serverctrls,$clientctrls,$msgidp);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_compare_ext_s"><STRONG>ldap_compare_ext_s</STRONG>(ld,dn,attr,bvalue,serverctrls,clientctrls)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Synchronously compare an attribute/value pair to an entry w/ Controls</P>
- <P>INPUT:
- ld - LDAP Session Handle
- dn - String
- attr - String
- bvalue - Binary String
- serverctrls - LDAP Control List Pointer
- clientctrls - LDAP Control List Pointer</P>
- <P>OUTPUT:
- status - Integer</P>
- <P>AVAILABILITY: V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_compare_ext_s($ld,$dn,$attr,$bvalue,$serverctrls,$clientctrls);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_compare_s"><STRONG>ldap_compare_s</STRONG>(ld,dn,attr,value)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Synchronously compare an attribute/value pair to an entry</P>
- <P>INPUT:
- ld - LDAP Session Handle
- dn - String
- attr - String
- value - String</P>
- <P>OUTPUT:
- status - Integer</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_compare_s($ld,$dn,$attr,$value);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_control_free"><STRONG>ldap_control_free</STRONG>(ctrl)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Free a LDAP control pointer</P>
- <P>INPUT:
- ctrl - LDAP Control Pointer</P>
- <P>OUTPUT:
- status - NONE</P>
- <P>AVAILABILITY: V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_control_free($ctrl);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_controls_count"><STRONG>ldap_controls_count</STRONG>(ctrls)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Count the number of LDAP controls in a LDAP Control List</P>
- <P>INPUT:
- ctrls - LDAP Control List Pointer</P>
- <P>OUTPUT:
- status - Integer</P>
- <P>AVAILABILITY: V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_controls_count($ctrls);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_controls_free"><STRONG>ldap_controls_free</STRONG>(ctrls)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Free a list of LDAP controls</P>
- <P>INPUT:
- ctrls - LDAP Control List Pointer</P>
- <P>OUTPUT:
- status - NONE</P>
- <P>AVAILABILITY: V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_controls_free($ctrls);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_count_entries"><STRONG>ldap_count_entries</STRONG>(ld,result)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Count the number of LDAP entries returned</P>
- <P>INPUT:
- ld - LDAP Session Handle
- result - LDAP Message Pointer</P>
- <P>OUTPUT:
- status - Integer</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $count = ldap_count_entries($ld,$result);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_count_messages"><STRONG>ldap_count_messages</STRONG>(ld,result)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Count the number of LDAP messages returned</P>
- <P>INPUT:
- ld - LDAP Session Handle
- result - LDAP Message Pointer</P>
- <P>OUTPUT:
- status - Integer</P>
- <P>AVAILABILITY: V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_count_messages($ld,$result);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_count_references"><STRONG>ldap_count_references</STRONG>(ld,result)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Count the number of LDAP references returned</P>
- <P>INPUT:
- ld - LDAP Session Handle
- result - LDAP Message Pointer</P>
- <P>OUTPUT:
- status - Integer</P>
- <P>AVAILABILITY: V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_count_references($ld,$result);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_create_filter"><STRONG>ldap_create_filter</STRONG>(buf,buflen,pattern,prefix,suffix,attr,value,valwords)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Create a LDAP search filter</P>
- <P>INPUT:
- buf - String
- buflen - Integer
- pattern - String
- prefix - String
- suffix - String
- attr - String
- value - String
- valwords - List Reference</P>
- <P>OUTPUT:
- status - Integer</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_create_filter($buf,$buflen,$pattern,$prefix,$suffix,$attr,$value,$valwords);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_create_persistentsearch_control"><STRONG>ldap_create_persistentsearch_control</STRONG>(ld,changetypes,changesonly,return_echg_ctrls,ctrl_iscritical,ctrlp)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Create a persistent search control</P>
- <P>INPUT:
- ld - LDAP Session Handle
- changetypes - Integer
- changesonly - Integer
- return_echg_ctrls - Integer
- ctrl_iscritical - Integer
- ctrlp - LDAP Control List Pointer</P>
- <P>OUTPUT:
- status - Integer
- ctrlp - LDAP Control List Pointer</P>
- <P>AVAILABILITY: V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_create_persistentsearch_control($ld,$changetypes,$changesonly,$return_echg_ctrls,$ctrl_iscritical,$ctrlp);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_create_sort_control"><STRONG>ldap_create_sort_control</STRONG>(ld,sortKeyList,ctrl_iscritical,ctrlp)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Create a LDAP sort control</P>
- <P>INPUT:
- ld - LDAP Session Handle
- sortKeyList - Sort Key Pointer
- ctrl_iscritical - Integer
- ctrlp - LDAP Control List Pointer</P>
- <P>OUTPUT:
- status - Integer
- ctrlp - LDAP Control List Pointer</P>
- <P>AVAILABILITY: V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_create_sort_control($ld,$sortKeyList,$ctrl_iscritical,$ctrlp);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_create_sort_keylist"><STRONG>ldap_create_sort_keylist</STRONG>(sortKeyList,string_rep)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Create a list of keys to be used by a sort control</P>
- <P>INPUT:
- sortKeyList - Sort Key Pointer
- string_rep - String</P>
- <P>OUTPUT:
- status - Integer
- sortKeyList - Sort Key Pointer</P>
- <P>AVAILABILITY: V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_create_sort_keylist($sortKeyList,$string_rep);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_create_virtuallist_control"><STRONG>ldap_create_virtuallist_control</STRONG>(ld,ldvlistp,ctrlp)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Create a LDAP virtual list control</P>
- <P>INPUT:
- ld - LDAP Session Handle
- ctrlp - LDAP Control List Pointer</P>
- <P>OUTPUT:
- status - Integer
- ctrlp - LDAP Control List Pointer</P>
- <P>AVAILABILITY: V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_create_virtuallist_control($ld,$ldvlistp,$ctrlp);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_delete"><STRONG>ldap_delete</STRONG>(ld,dn)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Asynchronously delete a LDAP entry</P>
- <P>INPUT:
- ld - LDAP Session Handle
- dn - String</P>
- <P>OUTPUT:
- status - Integer</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_delete($ld,$dn);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_delete_ext"><STRONG>ldap_delete_ext</STRONG>(ld,dn,serverctrls,clientctrls,msgidp)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Asynchronously delete a LDAP entry w/ Controls</P>
- <P>INPUT:
- ld - LDAP Session Handle
- dn - String
- serverctrls - LDAP Control List Pointer
- clientctrls - LDAP Control List Pointer
- msgidp - Integer</P>
- <P>OUTPUT:
- status - Integer
- msgidp - Integer</P>
- <P>AVAILABILITY: V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_delete_ext($ld,$dn,$serverctrls,$clientctrls,$msgidp);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_delete_ext_s"><STRONG>ldap_delete_ext_s</STRONG>(ld,dn,serverctrls,clientctrls)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Synchronously delete a LDAP entry w/ Controls</P>
- <P>INPUT:
- ld - LDAP Session Handle
- dn - String
- serverctrls - LDAP Control List Pointer
- clientctrls - LDAP Control List Pointer</P>
- <P>OUTPUT:
- status - Integer</P>
- <P>AVAILABILITY: V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_delete_ext_s($ld,$dn,$serverctrls,$clientctrls);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_delete_s"><STRONG>ldap_delete_s</STRONG>(ld,dn)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Synchronously delete a LDAP entry</P>
- <P>INPUT:
- ld - LDAP Session Handle
- dn - String</P>
- <P>OUTPUT:
- status - Integer</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_delete_s($ld,$dn);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_dn2ufn"><STRONG>ldap_dn2ufn</STRONG>(dn)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Change a DN to a ``Friendly'' name</P>
- <P>INPUT:
- dn - String</P>
- <P>OUTPUT:
- status - String</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_dn2ufn($dn);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_err2string"><STRONG>ldap_err2string</STRONG>(err)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Return the string value of a LDAP error code</P>
- <P>INPUT:
- err - Integer</P>
- <P>OUTPUT:
- status - String</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_err2string($err);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_explode_dn"><STRONG>ldap_explode_dn</STRONG>(dn,notypes)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Split a given DN into its components. Setting 'notypes' to 1 returns the
- components without their type names.</P>
- <P>INPUT:
- dn - String
- notypes - Integer</P>
- <P>OUTPUT:
- status - NONE</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_explode_dn($dn,$notypes);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_explode_rdn"><STRONG>ldap_explode_rdn</STRONG>(dn,notypes)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Split a Relative DN into its components</P>
- <P>INPUT:
- dn - String
- notypes - Integer</P>
- <P>OUTPUT:
- status - NONE</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_explode_rdn($dn,$notypes);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_extended_operation"><STRONG>ldap_extended_operation</STRONG>(ld,requestoid,requestdata,serverctrls,clientctrls,msgidp)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Perform an asynchronous extended operation</P>
- <P>INPUT:
- ld - LDAP Session Handle
- requestoid - String
- requestdata - Binary String
- serverctrls - LDAP Control List Pointer
- clientctrls - LDAP Control List Pointer
- msgidp - Integer</P>
- <P>OUTPUT:
- status - Integer
- msgidp - Integer</P>
- <P>AVAILABILITY: V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_extended_operation($ld,$requestoid,$requestdata,$serverctrls,$clientctrls,$msgidp);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_extended_operation_s"><STRONG>ldap_extended_operation_s</STRONG>(ld,requestoid,requestdata,serverctrls,clientctrls,retoidp,retdatap)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Perform a synchronous extended operation</P>
- <P>INPUT:
- ld - LDAP Session Handle
- requestoid - String
- requestdata - Binary String
- serverctrls - LDAP Control List Pointer
- clientctrls - LDAP Control List Pointer
- retoidp - String</P>
- <P>OUTPUT:
- status - Integer
- retoidp - Return OID
- retdatap - Return Data</P>
- <P>AVAILABILITY: V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_extended_operation_s($ld,$requestoid,$requestdata,$serverctrls,$clientctrls,$retoidp,$retdatap);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_first_attribute"><STRONG>ldap_first_attribute</STRONG>(ld,entry,ber)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Return the first attribute returned for a LDAP entry</P>
- <P>INPUT:
- ld - LDAP Session Handle
- entry - LDAP Message Pointer
- ber - Ber Element Pointer</P>
- <P>OUTPUT:
- status - String
- ber - Ber Element Pointer</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_first_attribute($ld,$entry,$ber);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_first_entry"><STRONG>ldap_first_entry</STRONG>(ld,chain)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Return the first entry in a LDAP result chain</P>
- <P>INPUT:
- ld - LDAP Session Handle
- chain - LDAP Message Pointer</P>
- <P>OUTPUT:
- status - LDAP Message Pointer</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_first_entry($ld,$chain);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_first_message"><STRONG>ldap_first_message</STRONG>(ld,res)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Return the first message in a LDAP result</P>
- <P>INPUT:
- ld - LDAP Session Handle
- res - LDAP Message Pointer</P>
- <P>OUTPUT:
- status - LDAP Message Pointer</P>
- <P>AVAILABILITY: V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_first_message($ld,$res);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_first_reference"><STRONG>ldap_first_reference</STRONG>(ld,res)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Return the first reference in a LDAP result</P>
- <P>INPUT:
- ld - LDAP Session Handle
- res - LDAP Message Pointer</P>
- <P>OUTPUT:
- status - LDAP Message Pointer</P>
- <P>AVAILABILITY: V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_first_reference($ld,$res);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_free_friendlymap"><STRONG>ldap_free_friendlymap</STRONG>(map)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Free a LDAP friendly map pointer</P>
- <P>INPUT:
- map - Friendly Map Pointer</P>
- <P>OUTPUT:
- status - NONE</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_free_friendlymap($map);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_free_sort_keylist"><STRONG>ldap_free_sort_keylist</STRONG>(sortKeyList)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Free a LDAP sort key pointer</P>
- <P>INPUT:
- sortKeyList - Sort Key Pointer</P>
- <P>OUTPUT:
- status - NONE</P>
- <P>AVAILABILITY: V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_free_sort_keylist($sortKeyList);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_free_urldesc"><STRONG>ldap_free_urldesc</STRONG>(ludp)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Free a LDAP URL description hash reference</P>
- <P>INPUT:
- ludp - URL Description Hash Reference</P>
- <P>OUTPUT:
- status - NONE</P>
- <P>AVAILABILITY: V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_free_urldesc($ludp);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_friendly_name"><STRONG>ldap_friendly_name</STRONG>(filename,name,map)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Create a LDAP friendly name map</P>
- <P>INPUT:
- filename - String
- name - String
- map - Friendly Map Pointer</P>
- <P>OUTPUT:
- status - String</P>
- <P>AVAILABILITY: V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_friendly_name($filename,$name,$map);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_get_dn"><STRONG>ldap_get_dn</STRONG>(ld,entry)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Return the distinguished name for an entry</P>
- <P>INPUT:
- ld - LDAP Session Handle
- entry - LDAP Message Pointer</P>
- <P>OUTPUT:
- status - String</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_get_dn($ld,$entry);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_get_entry_controls"><STRONG>ldap_get_entry_controls</STRONG>(ld,entry,serverctrlsp)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Return the controls for a LDAP entry</P>
- <P>INPUT:
- ld - LDAP Session Handle
- entry - LDAP Message Pointer
- serverctrlsp - LDAP Control List Pointer</P>
- <P>OUTPUT:
- status - Integer
- serverctrlsp - LDAP Control List Pointer</P>
- <P>AVAILABILITY: V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_get_entry_controls($ld,$entry,$serverctrlsp);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_getfilter_free"><STRONG>ldap_getfilter_free</STRONG>(lfdp)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Free a LDAP filter</P>
- <P>INPUT:
- lfdp - LDAP Filter Description Pointer</P>
- <P>OUTPUT:
- status - NONE</P>
- <P>AVAILABILITY: V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_getfilter_free($lfdp);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_getfirstfilter"><STRONG>ldap_getfirstfilter</STRONG>(lfdp,tagpat,value)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Get the first generated filter</P>
- <P>INPUT:
- lfdp - LDAP Filter Description Pointer
- tagpat - String</P>
- <P>OUTPUT:
- status - LDAP Filter Information Pointer</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_getfirstfilter($lfdp,$tagpat,$value);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_get_lang_values"><STRONG>ldap_get_lang_values</STRONG>(ld,entry,target,type)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Get values for an entry</P>
- <P>INPUT:
- ld - LDAP Session Handle
- entry - LDAP Message Pointer
- target - String
- type - String</P>
- <P>OUTPUT:
- status - NONE</P>
- <P>AVAILABILITY: V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_get_lang_values($ld,$entry,$target,$type);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_get_lang_values_len"><STRONG>ldap_get_lang_values_len</STRONG>(ld,entry,target,type)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Get binary values for an entry</P>
- <P>INPUT:
- ld - LDAP Session Handle
- entry - LDAP Message Pointer
- target - String
- type - String</P>
- <P>OUTPUT:
- status - NONE</P>
- <P>AVAILABILITY: V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_get_lang_values_len($ld,$entry,$target,$type);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_get_lderrno"><STRONG>ldap_get_lderrno</STRONG>(ld,m,s)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>INPUT:
- ld - LDAP Session Handle
- m - String Reference (or undef)
- s - String Reference (or undef)</P>
- <P>OUTPUT:
- status - Integer</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_get_lderrno($ld,\$m,\$s);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_getnextfilter"><STRONG>ldap_getnextfilter</STRONG>(lfdp)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Get the next generated LDAP filter</P>
- <P>INPUT:
- lfdp - LDAP Filter Information Pointer
- </P>
- <PRE>
-
- OUTPUT:
- status - LDAP Filter Information Pointer</PRE>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_getnextfilter($lfdp);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_get_option"><STRONG>ldap_get_option</STRONG>(ld,option,optdata)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Get an option for a LDAP session</P>
- <P>INPUT:
- ld - LDAP Session Handle
- option - Integer
- optdata - Integer</P>
- <P>OUTPUT:
- status - Integer
- optdata - Integer</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_get_option($ld,$option,$optdata);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_get_values"><STRONG>ldap_get_values</STRONG>(ld,entry,target)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Get the values for a LDAP entry and attribute</P>
- <P>INPUT:
- ld - LDAP Session Handle
- entry - LDAP Message Pointer
- target - String</P>
- <P>OUTPUT:
- status - NONE</P>
- <P>AVAILABILITY: V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_get_values($ld,$entry,$target);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_get_values_len"><STRONG>ldap_get_values_len</STRONG>(ld,entry,target)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Get the binary values for a LDAP entry and attribute</P>
- <P>INPUT:
- ld - LDAP Session Handle
- entry - LDAP Message Pointer
- target - String</P>
- <P>OUTPUT:
- status - NONE</P>
- <P>AVAILABILITY: V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_get_values_len($ld,$entry,$target);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_init"><STRONG>ldap_init</STRONG>(host,port)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Initialize a LDAP session</P>
- <P>INPUT:
- host - String
- port - Integer</P>
- <P>OUTPUT:
- status - LDAP Session Handle</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_init($host,$port);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_init_getfilter"><STRONG>ldap_init_getfilter</STRONG>(fname)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Initialize the LDAP filter generation routines to a filename</P>
- <P>INPUT:
- fname - Filename String</P>
- <P>OUTPUT:
- status - LDAP Filter Description Pointer</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_init_getfilter($fname);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_init_getfilter_buf"><STRONG>ldap_init_getfilter_buf</STRONG>(buf,buflen)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Initialize the LDAP filter generation routines to a buffer</P>
- <P>INPUT:
- buf - String
- buflen - Integer</P>
- <P>OUTPUT:
- status - LDAP Filter Description Pointer</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_init_getfilter_buf($buf,$buflen);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_is_ldap_url"><STRONG>ldap_is_ldap_url</STRONG>(url)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Return 1 if an the argument is a valid LDAP URL</P>
- <P>INPUT:
- url - String</P>
- <P>OUTPUT:
- status - Integer</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_is_ldap_url($url);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_memcache_destroy"><STRONG>ldap_memcache_destroy</STRONG>(cache)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Destroy a memory cache</P>
- <P>INPUT:
- cache - LDAP Memory Cache Pointer</P>
- <P>OUTPUT:
- status - NONE</P>
- <P>AVAILABILITY: V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_memcache_destroy($cache);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_memcache_flush"><STRONG>ldap_memcache_flush</STRONG>(cache,dn,scope)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Flush a specific DN from the memory cache</P>
- <P>INPUT:
- cache - LDAP Memory Cache Pointer
- dn - String
- scope - Integer</P>
- <P>OUTPUT:
- status - NONE</P>
- <P>AVAILABILITY: V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_memcache_flush($cache,$dn,$scope);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_memcache_get"><STRONG>ldap_memcache_get</STRONG>(ld,cachep)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Get the memory cache for a LDAP session</P>
- <P>INPUT:
- ld - LDAP Session Handle
- cachep - LDAP Memory Cache Pointer</P>
- <P>OUTPUT:
- status - Integer
- cachep - LDAP Memory Cache Pointer</P>
- <P>AVAILABILITY: V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_memcache_get($ld,$cachep);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_memcache_init"><STRONG>ldap_memcache_init</STRONG>(ttl,size,baseDNs,cachep)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Initialize a LDAP memory cache</P>
- <P>INPUT:
- ttl - Integer
- size - Integer
- baseDNs - List Reference
- cachep - LDAP Memory Cache Pointer</P>
- <P>OUTPUT:
- status - Integer
- cachep - LDAP Memory Cache Pointer</P>
- <P>AVAILABILITY: V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_memcache_init($ttl,$size,$baseDNs,$cachep);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_memcache_set"><STRONG>ldap_memcache_set</STRONG>(ld,cache)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Set the LDAP memory cache for the session</P>
- <P>INPUT:
- ld - LDAP Session Handle
- cache - LDAP Memory Cache Pointer</P>
- <P>OUTPUT:
- status - Integer</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_memcache_set($ld,$cache);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_memcache_update"><STRONG>ldap_memcache_update</STRONG>(cache)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Update the specified memory cache</P>
- <P>INPUT:
- cache - LDAP Memory Cache Pointer</P>
- <P>OUTPUT:
- status - NONE</P>
- <P>AVAILABILITY: V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_memcache_update($cache);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_memfree"><STRONG>ldap_memfree</STRONG>(p)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Free memory allocated by the LDAP C API</P>
- <P>INPUT:
- p - Pointer</P>
- <P>OUTPUT:
- status - NONE</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_memfree($p);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_modify"><STRONG>ldap_modify</STRONG>(ld,dn,mods)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Asynchronously modify a LDAP entry</P>
- <P>INPUT:
- ld - LDAP Session Handle
- dn - String
- mods - LDAP Add/Modify Hash</P>
- <P>OUTPUT:
- status - Integer</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_modify($ld,$dn,$mods);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_modify_ext"><STRONG>ldap_modify_ext</STRONG>(ld,dn,mods,serverctrls,clientctrls,msgidp)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Asynchronously modify a LDAP entry w/ Controls</P>
- <P>INPUT:
- ld - LDAP Session Handle
- dn - String
- mods - LDAP Add/Modify Hash
- serverctrls - LDAP Control List Pointer
- clientctrls - LDAP Control List Pointer
- msgidp - Integer</P>
- <P>OUTPUT:
- status - Integer
- msgidp - Integer</P>
- <P>AVAILABILITY: V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_modify_ext($ld,$dn,$mods,$serverctrls,$clientctrls,$msgidp);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_modify_ext_s"><STRONG>ldap_modify_ext_s</STRONG>(ld,dn,mods,serverctrls,clientctrls)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Synchronously modify a LDAP entry w/ Controls</P>
- <P>INPUT:
- ld - LDAP Session Handle
- dn - String
- mods - LDAP Add/Modify Hash
- serverctrls - LDAP Control List Pointer
- clientctrls - LDAP Control List Pointer</P>
- <P>OUTPUT:
- status - Integer</P>
- <P>AVAILABILITY: V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_modify_ext_s($ld,$dn,$mods,$serverctrls,$clientctrls);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_modify_s"><STRONG>ldap_modify_s</STRONG>(ld,dn,mods)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Synchronously modify a LDAP entry</P>
- <P>INPUT:
- ld - LDAP Session Handle
- dn - String
- mods - LDAP Add/Modify Hash</P>
- <P>OUTPUT:
- status - Integer</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_modify_s($ld,$dn,$mods);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_modrdn"><STRONG>ldap_modrdn</STRONG>(ld,dn,newrdn)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Asynchronously modify the relative distinguished name of an entry</P>
- <P>INPUT:
- ld - LDAP Session Handle
- dn - String
- newrdn - String</P>
- <P>OUTPUT:
- status - Integer</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_modrdn($ld,$dn,$newrdn);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_modrdn_s"><STRONG>ldap_modrdn_s</STRONG>(ld,dn,newrdn)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Synchronously modify the relative distinguished name of an entry</P>
- <P>INPUT:
- ld - LDAP Session Handle
- dn - String
- newrdn - String</P>
- <P>OUTPUT:
- status - Integer</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_modrdn_s($ld,$dn,$newrdn);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_modrdn2"><STRONG>ldap_modrdn2</STRONG>(ld,dn,newrdn,deleteoldrdn)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Asynchronously modify the relative distinguished name of an entry.</P>
- <P>INPUT:
- ld - LDAP Session Handle
- dn - String
- newrdn - String
- deleteoldrdn - Integer</P>
- <P>OUTPUT:
- status - Integer</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_modrdn2($ld,$dn,$newrdn,$deleteoldrdn);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_modrdn2_s"><STRONG>ldap_modrdn2_s</STRONG>(ld,dn,newrdn,deleteoldrdn)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Synchronously modify the relative distinguished name of an entry.</P>
- <P>INPUT:
- ld - LDAP Session Handle
- dn - String
- newrdn - String
- deleteoldrdn - Integer</P>
- <P>OUTPUT:
- status - Integer</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_modrdn2_s($ld,$dn,$newrdn,$deleteoldrdn);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_msgfree"><STRONG>ldap_msgfree</STRONG>(lm)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Free memory allocated by a LDAP Message</P>
- <P>INPUT:
- lm - LDAP Message Pointer</P>
- <P>OUTPUT:
- status - Integer</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_msgfree($lm);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_msgid"><STRONG>ldap_msgid</STRONG>(lm)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Get the message id number from a LDAP message</P>
- <P>INPUT:
- lm - LDAP Message Pointer</P>
- <P>OUTPUT:
- status - Integer</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_msgid($lm);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_msgtype"><STRONG>ldap_msgtype</STRONG>(lm)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Get the message type of a LDAP message</P>
- <P>INPUT:
- lm - LDAP Message Pointer</P>
- <P>OUTPUT:
- status - Integer</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_msgtype($lm);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_multisort_entries"><STRONG>ldap_multisort_entries</STRONG>(ld,chain,attr)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Sort entries by multiple keys</P>
- <P>INPUT:
- ld - LDAP Session Handle
- chain - LDAP Message Pointer
- attr - List Reference</P>
- <P>OUTPUT:
- status - Integer
- chain - LDAP Message Pointer</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_multisort_entries($ld,$chain,$attr);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_next_attribute"><STRONG>ldap_next_attribute</STRONG>(ld,entry,ber)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Get the next attribute for a LDAP entry</P>
- <P>INPUT:
- ld - LDAP Session Handle
- entry - LDAP Message Pointer
- ber - Ber Element Pointer</P>
- <P>OUTPUT:
- status - String
- ber - BER Element Pointer</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_next_attribute($ld,$entry,$ber);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_next_entry"><STRONG>ldap_next_entry</STRONG>(ld,entry)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Get the next entry in the result chain</P>
- <P>INPUT:
- ld - LDAP Session Handle
- entry - LDAP Message Pointer</P>
- <P>OUTPUT:
- status - LDAP Message Pointer</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_next_entry($ld,$entry);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_next_message"><STRONG>ldap_next_message</STRONG>(ld,msg)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Get the next message in the result chain</P>
- <P>INPUT:
- ld - LDAP Session Handle
- msg - LDAP Message Pointer</P>
- <P>OUTPUT:
- status - LDAP Message Pointer</P>
- <P>AVAILABILITY: V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_next_message($ld,$msg);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_next_reference"><STRONG>ldap_next_reference</STRONG>(ld,ref)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Get the next reference in the result chain</P>
- <P>INPUT:
- ld - LDAP Session Handle
- ref - LDAP Message Pointer</P>
- <P>OUTPUT:
- status - LDAP Message Pointer</P>
- <P>AVAILABILITY: V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_next_reference($ld,$ref);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_parse_entrychange_control"><STRONG>ldap_parse_entrychange_control</STRONG>(ld,ctrls,chgtypep,prevdnp,chgnumpresentp,chgnump)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Parse a LDAP entry change control</P>
- <P>INPUT:
- ld - LDAP Session Handle
- ctrls - LDAP Control List Pointer
- chgtypep - Integer
- prevdnp - String
- chgnumpresentp - Integer
- chgnump - Integer</P>
- <P>OUTPUT:
- status - Integer
- chgtypep - Integer
- prevdnp - String
- chgnumpresentp - Integer
- chgnump - Integer</P>
- <P>AVAILABILITY: V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_parse_entrychange_control($ld,$ctrls,$chgtypep,$prevdnp,$chgnumpresentp,$chgnump);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_parse_extended_result"><STRONG>ldap_parse_extended_result</STRONG>(ld,res,retoidp,retdatap,freeit)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Parse a LDAP extended result</P>
- <P>INPUT:
- ld - LDAP Session Handle
- res - LDAP Message Pointer
- retoidp - String
- freeit - Integer</P>
- <P>OUTPUT:
- status - Integer
- retoidp - String
- retdatap - Binary List Reference</P>
- <P>AVAILABILITY: V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_parse_extended_result($ld,$res,$retoidp,$retdatap,$freeit);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_parse_reference"><STRONG>ldap_parse_reference</STRONG>(ld,ref,referalsp,serverctrlsp,freeit)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Parse a LDAP Reference</P>
- <P>INPUT:
- ld - LDAP Session Handle
- ref - LDAP Message Pointer
- referalsp - List Reference
- serverctrlsp - LDAP Control List Pointer
- freeit - Integer</P>
- <P>OUTPUT:
- status - Integer
- referalsp - List Reference
- serverctrlsp - LDAP Control List Pointer</P>
- <P>AVAILABILITY: V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_parse_reference($ld,$ref,$referalsp,$serverctrlsp,$freeit);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_parse_result"><STRONG>ldap_parse_result</STRONG>(ld,res,errcodep,matcheddnp,errmsgp,referralsp,serverctrlsp,freeit)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Parse a LDAP result</P>
- <P>INPUT:
- ld - LDAP Session Handle
- res - LDAP Message Pointer
- errcodep - Integer
- matcheddnp - String
- errmsgp - String
- referralsp - List Reference
- serverctrlsp - LDAP Control List Pointer
- freeit - Integer</P>
- <P>OUTPUT:
- status - Integer
- errcodep - Integer
- matcheddnp - String
- errmsgp - String
- referralsp - List Reference
- serverctrlsp - LDAP Control List Pointer</P>
- <P>AVAILABILITY: V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_parse_result($ld,$res,$errcodep,$matcheddnp,$errmsgp,$referralsp,$serverctrlsp,$freeit);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_parse_sasl_bind_result"><STRONG>ldap_parse_sasl_bind_result</STRONG>(ld,res,servercredp,freeit)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Parse the results of an SASL bind operation</P>
- <P>INPUT:
- ld - LDAP Session Handle
- res - LDAP Message Pointer
- freeit - Integer</P>
- <P>OUTPUT:
- status - Integer
- servercredp -</P>
- <P>AVAILABILITY: V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_parse_sasl_bind_result($ld,$res,$servercredp,$freeit);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_parse_sort_control"><STRONG>ldap_parse_sort_control</STRONG>(ld,ctrls,result,attribute)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Parse a LDAP sort control</P>
- <P>INPUT:
- ld - LDAP Session Handle
- ctrls - LDAP Control List Pointer
- result - LDAP Message Pointer
- attribute - String</P>
- <P>OUTPUT:
- status - Integer
- result - LDAP Message Pointer
- attribute - String</P>
- <P>AVAILABILITY: V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_parse_sort_control($ld,$ctrls,$result,$attribute);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_parse_virtuallist_control"><STRONG>ldap_parse_virtuallist_control</STRONG>(ld,ctrls,target_posp,list_sizep,errcodep)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Parse a LDAP virtual list control</P>
- <P>INPUT:
- ld - LDAP Session Handle
- ctrls - LDAP Control List Pointer
- target_posp - Integer
- list_sizep - Integer
- errcodep - Integer</P>
- <P>OUTPUT:
- status - Integer
- target_posp - Integer
- list_sizep - Integer
- errcodep - Integer</P>
- <P>AVAILABILITY: V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_parse_virtuallist_control($ld,$ctrls,$target_posp,$list_sizep,$errcodep);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_perror"><STRONG>ldap_perror</STRONG>(ld,s)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Print a LDAP error message</P>
- <P>INPUT:
- ld - LDAP Session Handle
- s - String</P>
- <P>OUTPUT:
- status - NONE</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_perror($ld,$s);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_rename"><STRONG>ldap_rename</STRONG>(ld,dn,newrdn,newparent,deleteoldrdn,serverctrls,clientctrls,msgidp)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Asynchronously rename a LDAP entry</P>
- <P>INPUT:
- ld - LDAP Session Handle
- dn - String
- newrdn - String
- newparent - String
- deleteoldrdn - Integer
- serverctrls - LDAP Control List Pointer
- clientctrls - LDAP Control List Pointer
- msgidp - Integer</P>
- <P>OUTPUT:
- status - Integer
- msgidp - Integer</P>
- <P>AVAILABILITY: V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_rename($ld,$dn,$newrdn,$newparent,$deleteoldrdn,$serverctrls,$clientctrls,$msgidp);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_rename_s"><STRONG>ldap_rename_s</STRONG>(ld,dn,newrdn,newparent,deleteoldrdn,serverctrls,clientctrls)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Synchronously rename a LDAP entry</P>
- <P>INPUT:
- ld - LDAP Session Handle
- dn - String
- newrdn - String
- newparent - String
- deleteoldrdn - Integer
- serverctrls - LDAP Control List Pointer
- clientctrls - LDAP Control List Pointer</P>
- <P>OUTPUT:
- status - Integer</P>
- <P>AVAILABILITY: V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_rename_s($ld,$dn,$newrdn,$newparent,$deleteoldrdn,$serverctrls,$clientctrls);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_result"><STRONG>ldap_result</STRONG>(ld,msgid,all,timeout,result)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Get the result for an asynchronous LDAP operation</P>
- <P>INPUT:
- ld - LDAP Session Handle
- msgid - Integer
- all - Integer
- timeout - Time in Seconds
- result - LDAP Message Pointer</P>
- <P>OUTPUT:
- status - Integer
- result - LDAP Message Pointer</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_result($ld,$msgid,$all,$timeout,$result);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_result2error"><STRONG>ldap_result2error</STRONG>(ld,r,freeit)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Get the error number for a given result</P>
- <P>INPUT:
- ld - LDAP Session Handle
- r - LDAP Message Pointer
- freeit - Integer</P>
- <P>OUTPUT:
- status - Integer</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_result2error($ld,$r,$freeit);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_sasl_bind"><STRONG>ldap_sasl_bind</STRONG>(ld,dn,mechanism,cred,serverctrls,clientctrls,msgidp)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Asynchronously bind to the LDAP server using a SASL mechanism</P>
- <P>INPUT:
- ld - LDAP Session Handle
- dn - String
- mechanism - String
- cred - Binary String
- serverctrls - LDAP Control List Pointer
- clientctrls - LDAP Control List Pointer
- msgidp - Integer</P>
- <P>OUTPUT:
- status - Integer
- msgidp - Integer</P>
- <P>AVAILABILITY: V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_sasl_bind($ld,$dn,$mechanism,$cred,$serverctrls,$clientctrls,$msgidp);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_sasl_bind_s"><STRONG>ldap_sasl_bind_s</STRONG>(ld,dn,mechanism,cred,serverctrls,clientctrls,servercredp)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Synchronously bind to a LDAP server using a SASL mechanism</P>
- <P>INPUT:
- ld - LDAP Session Handle
- dn - String
- mechanism - String
- cred - Binary String
- serverctrls - LDAP Control List Pointer
- clientctrls - LDAP Control List Pointer</P>
- <P>OUTPUT:
- status - Integer
- servercredp -</P>
- <P>AVAILABILITY: V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_sasl_bind_s($ld,$dn,$mechanism,$cred,$serverctrls,$clientctrls,$servercredp);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_search"><STRONG>ldap_search</STRONG>(ld,base,scope,filter,attrs,attrsonly)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Asynchronously search the LDAP server</P>
- <P>INPUT:
- ld - LDAP Session Handle
- base - String
- scope - Integer
- filter - String
- attrs - List Reference
- attrsonly - Integer</P>
- <P>OUTPUT:
- status - Integer</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_search($ld,$base,$scope,$filter,$attrs,$attrsonly);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_search_ext"><STRONG>ldap_search_ext</STRONG>(ld,base,scope,filter,attrs,attrsonly,serverctrls,clientctrls,timeoutp,sizelimit,msgidp)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Asynchronously search the LDAP server w/ Controls</P>
- <P>INPUT:
- ld - LDAP Session Handle
- base - String
- scope - Integer
- filter - String
- attrs - List Reference
- attrsonly - Integer
- serverctrls - LDAP Control List Pointer
- clientctrls - LDAP Control List Pointer
- timeoutp - Time in Seconds
- sizelimit - Integer
- msgidp - Integer</P>
- <P>OUTPUT:
- status - Integer
- msgidp - Integer</P>
- <P>AVAILABILITY: V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_search_ext($ld,$base,$scope,$filter,$attrs,$attrsonly,$serverctrls,$clientctrls,$timeoutp,$sizelimit,$msgidp);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_search_ext_s"><STRONG>ldap_search_ext_s</STRONG>(ld,base,scope,filter,attrs,attrsonly,serverctrls,clientctrls,timeoutp,sizelimit,res)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Synchronously search the LDAP server w/ Controls</P>
- <P>INPUT:
- ld - LDAP Session Handle
- base - String
- scope - Integer
- filter - String
- attrs - List Reference
- attrsonly - Integer
- serverctrls - LDAP Control List Pointer
- clientctrls - LDAP Control List Pointer
- timeoutp - Time in Seconds
- sizelimit - Integer
- res - LDAP Message Pointer</P>
- <P>OUTPUT:
- status - Integer
- res - LDAP Message Pointer</P>
- <P>AVAILABILITY: V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_search_ext_s($ld,$base,$scope,$filter,$attrs,$attrsonly,$serverctrls,$clientctrls,$timeoutp,$sizelimit,$res);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_search_s"><STRONG>ldap_search_s</STRONG>(ld,base,scope,filter,attrs,attrsonly,res)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Synchronously search the LDAP server</P>
- <P>INPUT:
- ld - LDAP Session Handle
- base - String
- scope - Integer
- filter - String
- attrs - List Reference
- attrsonly - Integer
- res - LDAP Message Pointer</P>
- <P>OUTPUT:
- status - Integer
- res - LDAP Message Pointer</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_search_s($ld,$base,$scope,$filter,$attrs,$attrsonly,$res);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_search_st"><STRONG>ldap_search_st</STRONG>(ld,base,scope,filter,attrs,attrsonly,timeout,res)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Synchronously search the LDAP server w/ Timeout</P>
- <P>INPUT:
- ld - LDAP Session Handle
- base - String
- scope - Integer
- filter - String
- attrs - List Reference
- attrsonly - Integer
- timeout - Time in Seconds
- res - LDAP Message Pointer</P>
- <P>OUTPUT:
- status - Integer
- res - LDAP Message Pointer</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_search_st($ld,$base,$scope,$filter,$attrs,$attrsonly,$timeout,$res);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_set_filter_additions"><STRONG>ldap_set_filter_additions</STRONG>(lfdp,prefix,suffix)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Add a prefix and suffix for filter generation</P>
- <P>INPUT:
- lfdp - LDAP Filter Description Pointer
- prefix - String
- suffix - String</P>
- <P>OUTPUT:
- status - Integer</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_set_filter_additions($lfdp,$prefix,$suffix);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_set_lderrno"><STRONG>ldap_set_lderrno</STRONG>(ld,e,m,s)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Set the LDAP error structure</P>
- <P>INPUT:
- ld - LDAP Session Handle
- e - Integer
- m - String
- s - String</P>
- <P>OUTPUT:
- status - Integer</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_set_lderrno($ld,$e,$m,$s);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_set_option"><STRONG>ldap_set_option</STRONG>(ld,option,optdata)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Set a LDAP session option</P>
- <P>INPUT:
- ld - LDAP Session Handle
- option - Integer
- optdata - Integer</P>
- <P>OUTPUT:
- status - Integer</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_set_option($ld,$option,$optdata);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_set_rebind_proc"><STRONG>ldap_set_rebind_proc</STRONG>(ld,rebindproc)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Set the LDAP rebind process</P>
- <P>INPUT:
- ld - LDAP Session Handle</P>
- <P>OUTPUT:
- status - NONE</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_set_rebind_proc($ld,$rebindproc);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_simple_bind"><STRONG>ldap_simple_bind</STRONG>(ld,who,passwd)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Asynchronously bind to the LDAP server using simple authentication</P>
- <P>INPUT:
- ld - LDAP Session Handle
- who - String
- passwd - String</P>
- <P>OUTPUT:
- status - Integer</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_simple_bind($ld,$who,$passwd);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_simple_bind_s"><STRONG>ldap_simple_bind_s</STRONG>(ld,who,passwd)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Synchronously bind to the LDAP server using simple authentication</P>
- <P>INPUT:
- ld - LDAP Session Handle
- who - String
- passwd - String</P>
- <P>OUTPUT:
- status - Integer</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_simple_bind_s($ld,$who,$passwd);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_sort_entries"><STRONG>ldap_sort_entries</STRONG>(ld,chain,attr)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Sort the results of a LDAP search</P>
- <P>INPUT:
- ld - LDAP Session Handle
- chain - LDAP Message Pointer
- attr - String</P>
- <P>OUTPUT:
- status - Integer
- chain - LDAP Message Pointer</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_sort_entries($ld,$chain,$attr);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_unbind"><STRONG>ldap_unbind</STRONG>(ld)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Asynchronously unbind from the LDAP server</P>
- <P>INPUT:
- ld - LDAP Session Handle</P>
- <P>OUTPUT:
- status - Integer</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_unbind($ld);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_unbind_s"><STRONG>ldap_unbind_s</STRONG>(ld)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Synchronously unbind from a LDAP server</P>
- <P>INPUT:
- ld - LDAP Session Handle</P>
- <P>OUTPUT:
- status - Integer</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_unbind_s($ld);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_url_parse"><STRONG>ldap_url_parse</STRONG>(url)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Parse a LDAP URL, returning a HASH of its components</P>
- <P>INPUT:
- url - String</P>
- <P>OUTPUT:
- status -</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_url_parse($url);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_url_search"><STRONG>ldap_url_search</STRONG>(ld,url,attrsonly)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Asynchronously search using a LDAP URL</P>
- <P>INPUT:
- ld - LDAP Session Handle
- url - String
- attrsonly - Integer</P>
- <P>OUTPUT:
- status - Integer</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_url_search($ld,$url,$attrsonly);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_url_search_s"><STRONG>ldap_url_search_s</STRONG>(ld,url,attrsonly,res)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Synchronously search using a LDAP URL</P>
- <P>INPUT:
- ld - LDAP Session Handle
- url - String
- attrsonly - Integer
- res - LDAP Message Pointer</P>
- <P>OUTPUT:
- status - Integer
- res - LDAP Message Pointer</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_url_search_s($ld,$url,$attrsonly,$res);</PRE>
- <P></P>
- <DT><STRONG><A NAME="item_ldap_url_search_st"><STRONG>ldap_url_search_st</STRONG>(ld,url,attrsonly,timeout,res)</A></STRONG><BR>
- <DD>
- DESCRIPTION:
- <P>Synchronously search using a LDAP URL w/ timeout</P>
- <P>INPUT:
- ld - LDAP Session Handle
- url - String
- attrsonly - Integer
- timeout - Time in Seconds
- res - LDAP Message Pointer</P>
- <P>OUTPUT:
- status - Integer
- res - LDAP Message Pointer</P>
- <P>AVAILABILITY: V2/V3</P>
- <P>EXAMPLE:</P>
- <PRE>
- $status = ldap_url_search_st($ld,$url,$attrsonly,$timeout,$res);</PRE>
- <P></P></DL>
- <P>
- <HR>
- <H1><A NAME="credits">CREDITS</A></H1>
- <P>Most of the Perl API module was written by Clayton Donley to interface with
- C API routines from Netscape Communications Corp., Inc.</P>
- <P>
- <HR>
- <H1><A NAME="bugs">BUGS</A></H1>
- <P>Documentation needs much work.
- LDAPv3 calls not tested or supported in this version.
- NT can not use Perl Rebind processes, must use 'ldap_set_default_rebindproc'.
- Possible memory leak in ldap_search* is being investigated.</P>
- <P>
- <HR>
- <H1><A NAME="see also">SEE ALSO</A></H1>
- <P><A HREF="../../../../site/lib/Mozilla/LDAP/Conn.html">the Mozilla::LDAP::Conn manpage</A>, <A HREF="../../../../site/lib/Mozilla/LDAP/Entry.html">the Mozilla::LDAP::Entry manpage</A>, and <EM>Perl</EM></P>
- <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
- <TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
- <STRONG><P CLASS=block> Mozilla::LDAP::API - Perl methods for LDAP C API calls</P></STRONG>
- </TD></TR>
- </TABLE>
-
- </BODY>
-
- </HTML>
-