<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/refs.remote.other.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'tr',
  ),
  'this' => 
  array (
    0 => 'book.ldap.php',
    1 => 'LDAP',
    2 => 'Lightweight Directory Access Protocol',
  ),
  'up' => 
  array (
    0 => 'refs.remote.other.php',
    1 => 'Diğer Hizmetler',
  ),
  'prev' => 
  array (
    0 => 'class.gearmanexception.php',
    1 => 'GearmanException',
  ),
  'next' => 
  array (
    0 => 'ldap.setup.php',
    1 => 'Yapılandırma/Kurulum',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/ldap/book.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/book.ldap.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="book.ldap" class="book">
 
 <h1 class="title">Lightweight Directory Access Protocol</h1>
 

 
 <div id="intro.ldap" class="preface">
  <h1 class="title">Giriş</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="https://wiki.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>
   <li class="listitem">
    <p class="para">
     Internet Engineering Taskforce RFCs
     <a href="https://datatracker.ietf.org/doc/html/rfc4510" class="link external">&raquo;&nbsp;4510</a> through <a href="https://datatracker.ietf.org/doc/html/rfc4519" class="link external">&raquo;&nbsp;4519</a>.
    </p>
   </li>
  </ul>

  <p class="para">
   The Netscape SDK contains a helpful
   <a href="https://wiki.mozilla.org/Mozilla_LDAP_SDK_Programmer%27s_Guide" class="link external">&raquo;&nbsp;Programmer&#039;s Guide</a> in
   HTML format.
  </p>
 </div>
 

 







 




 








 






 







 







 



 



 




<ul class="chunklist chunklist_book"><li><a href="ldap.setup.php">Yapılandırma/Kurulum</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="ldap.requirements.php">Gereksinimler</a></li><li><a href="ldap.installation.php">Kurulum</a></li><li><a href="ldap.configuration.php">&Ccedil;alışma Anı Yapılandırması</a></li><li><a href="ldap.resources.php">&Ouml;zkaynak T&uuml;rleri</a></li></ul></li><li><a href="ldap.constants.php">&Ouml;ntanımlı Sabitler</a></li><li><a href="ldap.using.php">Using the PHP LDAP calls</a></li><li><a href="ldap.controls.php">LDAP controls</a></li><li><a href="ldap.examples.php">&Ouml;rnekler</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="ldap.examples-basic.php">Basic usage</a></li><li><a href="ldap.examples-controls.php">LDAP Controls</a></li></ul></li><li><a href="ref.ldap.php">LDAP İşlevleri</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="function.ldap-8859-to-t61.php">ldap_8859_to_t61</a> — Translate 8859 characters to t61 characters</li><li><a href="function.ldap-add.php">ldap_add</a> — Add entries to LDAP directory</li><li><a href="function.ldap-add-ext.php">ldap_add_ext</a> — Add entries to LDAP directory</li><li><a href="function.ldap-bind.php">ldap_bind</a> — Bind to LDAP directory</li><li><a href="function.ldap-bind-ext.php">ldap_bind_ext</a> — Bind to LDAP directory</li><li><a href="function.ldap-close.php">ldap_close</a> — Takma Adı: ldap_unbind</li><li><a href="function.ldap-compare.php">ldap_compare</a> — Compare value of attribute found in entry specified with DN</li><li><a href="function.ldap-connect.php">ldap_connect</a> — Connect to an LDAP server</li><li><a href="function.ldap-connect-wallet.php">ldap_connect_wallet</a> — Connect to an LDAP server</li><li><a href="function.ldap-control-paged-result.php">ldap_control_paged_result</a> — Send LDAP pagination control</li><li><a href="function.ldap-control-paged-result-response.php">ldap_control_paged_result_response</a> — Retrieve the LDAP pagination cookie</li><li><a href="function.ldap-count-entries.php">ldap_count_entries</a> — Count the number of entries in a search</li><li><a href="function.ldap-count-references.php">ldap_count_references</a> — Counts the number of references in a search result</li><li><a href="function.ldap-delete.php">ldap_delete</a> — Delete an entry from a directory</li><li><a href="function.ldap-delete-ext.php">ldap_delete_ext</a> — Delete an entry from a directory</li><li><a href="function.ldap-dn2ufn.php">ldap_dn2ufn</a> — Convert DN to User Friendly Naming format</li><li><a href="function.ldap-err2str.php">ldap_err2str</a> — Convert LDAP error number into string error message</li><li><a href="function.ldap-errno.php">ldap_errno</a> — Return the LDAP error number of the last LDAP command</li><li><a href="function.ldap-error.php">ldap_error</a> — Return the LDAP error message of the last LDAP command</li><li><a href="function.ldap-escape.php">ldap_escape</a> — Escape a string for use in an LDAP filter or DN</li><li><a href="function.ldap-exop.php">ldap_exop</a> — Performs an extended operation</li><li><a href="function.ldap-exop-passwd.php">ldap_exop_passwd</a> — PASSWD extended operation helper</li><li><a href="function.ldap-exop-refresh.php">ldap_exop_refresh</a> — Refresh extended operation helper</li><li><a href="function.ldap-exop-sync.php">ldap_exop_sync</a> — Performs an extended operation</li><li><a href="function.ldap-exop-whoami.php">ldap_exop_whoami</a> — WHOAMI extended operation helper</li><li><a href="function.ldap-explode-dn.php">ldap_explode_dn</a> — Splits DN into its component parts</li><li><a href="function.ldap-first-attribute.php">ldap_first_attribute</a> — Return first attribute</li><li><a href="function.ldap-first-entry.php">ldap_first_entry</a> — Return first result id</li><li><a href="function.ldap-first-reference.php">ldap_first_reference</a> — Return first reference</li><li><a href="function.ldap-free-result.php">ldap_free_result</a> — Free result memory</li><li><a href="function.ldap-get-attributes.php">ldap_get_attributes</a> — Get attributes from a search result entry</li><li><a href="function.ldap-get-dn.php">ldap_get_dn</a> — Get the DN of a result entry</li><li><a href="function.ldap-get-entries.php">ldap_get_entries</a> — Get all result entries</li><li><a href="function.ldap-get-option.php">ldap_get_option</a> — Get the current value for given option</li><li><a href="function.ldap-get-values.php">ldap_get_values</a> — Get all values from a result entry</li><li><a href="function.ldap-get-values-len.php">ldap_get_values_len</a> — Get all binary values from a result entry</li><li><a href="function.ldap-list.php">ldap_list</a> — Single-level search</li><li><a href="function.ldap-mod-add.php">ldap_mod_add</a> — Add attribute values to current attributes</li><li><a href="function.ldap-mod_add-ext.php">ldap_mod_add_ext</a> — Add attribute values to current attributes</li><li><a href="function.ldap-mod-del.php">ldap_mod_del</a> — Delete attribute values from current attributes</li><li><a href="function.ldap-mod_del-ext.php">ldap_mod_del_ext</a> — Delete attribute values from current attributes</li><li><a href="function.ldap-mod-replace.php">ldap_mod_replace</a> — Replace attribute values with new ones</li><li><a href="function.ldap-mod_replace-ext.php">ldap_mod_replace_ext</a> — Replace attribute values with new ones</li><li><a href="function.ldap-modify.php">ldap_modify</a> — Takma Adı: ldap_mod_replace</li><li><a href="function.ldap-modify-batch.php">ldap_modify_batch</a> — Batch and execute modifications on an LDAP entry</li><li><a href="function.ldap-next-attribute.php">ldap_next_attribute</a> — Get the next attribute in result</li><li><a href="function.ldap-next-entry.php">ldap_next_entry</a> — Get next result entry</li><li><a href="function.ldap-next-reference.php">ldap_next_reference</a> — Get next reference</li><li><a href="function.ldap-parse-exop.php">ldap_parse_exop</a> — Parse result object from an LDAP extended operation</li><li><a href="function.ldap-parse-reference.php">ldap_parse_reference</a> — Extract information from reference entry</li><li><a href="function.ldap-parse-result.php">ldap_parse_result</a> — Extract information from result</li><li><a href="function.ldap-read.php">ldap_read</a> — Read an entry</li><li><a href="function.ldap-rename.php">ldap_rename</a> — Modify the name of an entry</li><li><a href="function.ldap-rename-ext.php">ldap_rename_ext</a> — Modify the name of an entry</li><li><a href="function.ldap-sasl-bind.php">ldap_sasl_bind</a> — Bind to LDAP directory using SASL</li><li><a href="function.ldap-search.php">ldap_search</a> — Search LDAP tree</li><li><a href="function.ldap-set-option.php">ldap_set_option</a> — Set the value of the given option</li><li><a href="function.ldap-set-rebind-proc.php">ldap_set_rebind_proc</a> — Set a callback function to do re-binds on referral chasing</li><li><a href="function.ldap-sort.php">ldap_sort</a> — Sort LDAP result entries on the client side</li><li><a href="function.ldap-start-tls.php">ldap_start_tls</a> — Start TLS</li><li><a href="function.ldap-t61-to-8859.php">ldap_t61_to_8859</a> — Translate t61 characters to 8859 characters</li><li><a href="function.ldap-unbind.php">ldap_unbind</a> — Unbind from LDAP directory</li></ul></li><li><a href="class.ldap-connection.php">LDAP\Connection</a> — The LDAP\Connection class</li><li><a href="class.ldap-result.php">LDAP\Result</a> — The LDAP\Result class</li><li><a href="class.ldap-result-entry.php">LDAP\ResultEntry</a> — The LDAP\ResultEntry class</li></ul></div><?php manual_footer($setup); ?>