<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->

<chapter xml:id="ldap.using" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
 <title>Using the PHP LDAP calls</title>
 <para>
  Before you can use the LDAP calls you will need to know ..
  <itemizedlist>
   <listitem>
    <para>
     The name or address of the directory server you will use
    </para>
   </listitem>
   <listitem>
    <para>
     The "base dn" of the server (the part of the world directory
     that is held on this server, which could be "o=My
     Company,c=US")
    </para>
   </listitem>
   <listitem>
    <para>
     Whether you need a password to access the server (many servers
     will provide read access for an "anonymous bind" but require a
     password for anything else)
    </para>
   </listitem>
  </itemizedlist>
 </para>

 <para>
  The typical sequence of LDAP calls you will make in an
  application will follow this pattern:
<literallayout>
  ldap_connect()    // establish connection to server
     |
  ldap_bind()       // anonymous or authenticated "login"
     |
  do something like search or update the directory
  and display the results
     |
  ldap_close()      // "logout"
</literallayout>
 </para>
</chapter>

<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->