Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 8667

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Introduction</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="book.ldap.html">LDAP</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="ldap.setup.html">Installing/Configuring</a></div>
 <div class="up"><a href="book.ldap.html">LDAP</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="intro.ldap" class="preface">
  <h1 class="title">Introduction</h1>
  <p class="para">
   LDAP is the Lightweight Directory Access Protocol, and is a
   protocol used to access &quot;Directory Servers&quot;. The Directory is a
   special kind of database that holds information in a tree
   structure.  
  </p>
  <p class="para"> 
   The concept is similar to your hard disk directory structure,
   except that in this context, the root directory is &quot;The world&quot;
   and the first level subdirectories are &quot;countries&quot;. Lower levels
   of the directory structure contain entries for companies,
   organisations or places, while yet lower still we find directory
   entries for people, and perhaps equipment or documents.
  </p>
  <p class="para">
   To refer to a file in a subdirectory on your hard disk, you might
   use something like:
  </p>
  <pre class="literallayout">
   /usr/local/myapp/docs
  </pre>
  <p class="para">
   The forwards slash marks each division in the reference, and the
   sequence is read from left to right.
  </p>
  <p class="para"> 
   The equivalent to the fully qualified file reference in LDAP is
   the &quot;distinguished name&quot;, referred to simply as &quot;dn&quot;. An example
   dn might be:
  </p>
  <pre class="literallayout">
   cn=John Smith,ou=Accounts,o=My Company,c=US
  </pre>
  <p class="para">
   The comma marks each division in the reference, and the sequence
   is read from right to left. You would read this dn as:
  </p>
  <pre class="literallayout">
   country = US
   organization = My Company
   organizationalUnit = Accounts
   commonName = John Smith
  </pre>
  <p class="para">
   In the same way as there are no hard rules about how you organise
   the directory structure of a hard disk, a directory server
   manager can set up any structure that is meaningful for the
   purpose. However, there are some conventions that are used. The
   message is that you can not write code to access a directory
   server unless you know something about its structure, any more
   than you can use a database without some knowledge of what is
   available.
  </p>
  <p class="para">
   Lots of information about LDAP can be found at
  </p>

  <ul class="itemizedlist">
   <li class="listitem">
    <p class="para">
     <a href="http://www.mozilla.org/directory/" class="link external">&raquo;&nbsp;Mozilla</a>
    </p>
   </li>
   <li class="listitem">
    <p class="para">
     <a href="http://www.openldap.org/" class="link external">&raquo;&nbsp;OpenLDAP Project</a>
    </p>
   </li>
  </ul>

  <p class="para">    
   The Netscape SDK contains a helpful
   <a href="http://www.mozilla.org/directory/csdk-docs/" class="link external">&raquo;&nbsp;Programmer&#039;s Guide</a> in
   HTML format.
  </p>
 </div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="book.ldap.html">LDAP</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="ldap.setup.html">Installing/Configuring</a></div>
 <div class="up"><a href="book.ldap.html">LDAP</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>