<?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 => 'de',
  ),
  'this' => 
  array (
    0 => 'book.ldap.php',
    1 => 'LDAP',
    2 => 'Lightweight Directory Access Protocol',
  ),
  'up' => 
  array (
    0 => 'refs.remote.other.php',
    1 => 'Sonstige Dienste',
  ),
  'prev' => 
  array (
    0 => 'class.gearmanexception.php',
    1 => 'GearmanException',
  ),
  'next' => 
  array (
    0 => 'ldap.setup.php',
    1 => 'Installation/Konfiguration',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'de',
    '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">Einführung</h1>
  <p class="para">
   LDAP steht für Lightweight Directory Access Protocol und ist ein Protokoll
   um auf &quot;Directory Servers&quot; - Verzeichnis-Server - zuzugreifen. Das
   Verzeichnis ist dabei eine spezielle Art einer Datenbank, das Informationen
   in einer Baumstruktur bereithält.
  </p>
  <p class="para">
   Das Konzept ist dabei ähnlich der Verzeichnisstruktur Ihrer Festplatte, mit
   der Ausnahme, dass in diesem Zusammenhang das Wurzelverzeichnis &quot;Die Welt&quot;
   ist und die Unterverzeichnisse der ersten Ebene die &quot;Länder&quot; abbilden. Die
   weiteren Verzeichnisse unterhalb der Länderebene enthalten Einträge für
   Firmen, Organisationen oder Städte. Noch tiefer geschachtelt stehen
   Verzeichniseinträge für Personen und vielleicht für Ausstattung oder
   Dokumente.
  </p>
  <p class="para">
   Um auf eine Datei in einem Unterverzeichnis auf Ihrer Festplatte zu
   verweisen, könnten Sie eine Schreibweise wie folgt verwenden
  </p>
  <pre class="literallayout">
   /usr/local/meine_daten/doku
  </pre>
  <p class="para">
   Die Schrägstriche markieren jeden Teil in diesem Verweis und die Sequenz
   wird von links nach rechts gelesen.
  </p>
  <p class="para">
   Das entsprechende Gegenstück zu einer voll qualifizierten Dateireferenz ist
   in LDAP der eindeutige Name (&quot;distinguished name&quot;), der Einfachheit halber
   als &quot;dn&quot; bezeichnet. Ein Beispiel für einen solchen dn könnte sein
  </p>
  <pre class="literallayout">
   cn=Hans Mustermann,ou=Buchhaltung,o=Meine Firma,c=DE
  </pre>
  <p class="para">
   Das Komma markiert jeden Teil in diesem Verweis und die Sequenz wird von
   rechts nach links gelesen. Diesen dn würden Sie wie folgt lesen:
  </p>
  <pre class="literallayout">
   Land = DE
   Organisation (organisation) = Meine Firma
   Organisationseinheit (organisationalUnit) = Buchhaltung
   Allgemeiner Name (commonName) = Hans Mustermann
  </pre>
  <p class="para">
   In der gleichen Weise, in der es keine allgemeinverbindlichen Regeln gibt,
   wie Sie die Verzeichnisstruktur Ihrer Festplatte organisieren, kann der
   Verwalter eines Verzeichnis-Servers jede beliebige Struktur implementieren,
   die für den Einsatzzweck sinnvoll ist. Die Botschaft ist folgende: Sie
   können keinen Code schreiben um auf einen Verzeichnis-Server zuzugreifen,
   ohne etwas über dessen Struktur zu wissen. Genauso wenig können Sie eine
   Datenbank nutzen ohne Kenntnis darüber, was in derselben vorhanden ist.
  </p>
  <p class="para">
   Weitere nützliche Informationen zu LDAP finden Sie unter
  </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> bis
     <a href="https://datatracker.ietf.org/doc/html/rfc4519" class="link external">&raquo;&nbsp;4519</a>.
    </p>
   </li>
  </ul>
  <p class="para">
   Das Netscape SDK enthält einen hilfreichen
   <a href="https://wiki.mozilla.org/Mozilla_LDAP_SDK_Programmer%27s_Guide" class="link external">&raquo;&nbsp;Programmer&#039;s Guide</a>
   im HTML-Format.
  </p>
 </div>
 

 








 





 







 






 







 








 





 





 






<ul class="chunklist chunklist_book"><li><a href="ldap.setup.php">Installation/Konfiguration</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="ldap.requirements.php">Anforderungen</a></li><li><a href="ldap.installation.php">Installation</a></li><li><a href="ldap.configuration.php">Laufzeit-Konfiguration</a></li><li><a href="ldap.resources.php">Ressource-Typen</a></li></ul></li><li><a href="ldap.constants.php">Vordefinierte Konstanten</a></li><li><a href="ldap.using.php">Die LDAP-Funktionen PHP verwenden</a></li><li><a href="ldap.controls.php">LDAP controls</a></li><li><a href="ldap.examples.php">Beispiele</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="ldap.examples-basic.php">Grundlegende Nutzung</a></li><li><a href="ldap.examples-controls.php">LDAP-Steuerbefehle</a></li></ul></li><li><a href="ref.ldap.php">LDAP Funktionen</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="function.ldap-8859-to-t61.php">ldap_8859_to_t61</a> — &Uuml;bersetzt 8859-Zeichen in t61-Zeichen</li><li><a href="function.ldap-add.php">ldap_add</a> — F&uuml;gt einem LDAP-Verzeichnis Eintr&auml;ge hinzu</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> — Anmeldung an einem LDAP-Verzeichnis</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> — Alias von ldap_unbind</li><li><a href="function.ldap-compare.php">ldap_compare</a> — Vergleicht den Wert eines Merkmals mit dem eines Eintrags</li><li><a href="function.ldap-connect.php">ldap_connect</a> — Verbindet mit einem 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> — Liefert bei einer Suche die Anzahl der Eintr&auml;ge</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> — L&ouml;scht einen Eintrag aus einem Verzeichnis</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> — Konvertiert einen DN in ein benutzerfreundliches Namensformat</li><li><a href="function.ldap-err2str.php">ldap_err2str</a> — Konvertiert eine LDAP-Fehlernummer in einen Fehlertext</li><li><a href="function.ldap-errno.php">ldap_errno</a> — Liefert die LDAP-Fehlernummer des letzten LDAP-Kommandos</li><li><a href="function.ldap-error.php">ldap_error</a> — Liefert die LDAP-Fehlermeldung des letzten LDAP-Kommandos</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> — Trennt einen DN in seine Bestandteile</li><li><a href="function.ldap-first-attribute.php">ldap_first_attribute</a> — Liefert das erste Merkmal</li><li><a href="function.ldap-first-entry.php">ldap_first_entry</a> — Liefert die Kennung des ersten Ergebnisses</li><li><a href="function.ldap-first-reference.php">ldap_first_reference</a> — Liefert die erste Referenz</li><li><a href="function.ldap-free-result.php">ldap_free_result</a> — Gibt den Ergebnisspeicher frei</li><li><a href="function.ldap-get-attributes.php">ldap_get_attributes</a> — Liefert die Merkmale eines Eintrags aus einem Suchergebnis</li><li><a href="function.ldap-get-dn.php">ldap_get_dn</a> — Liefert den DN eines Eintrags aus einem Suchergebnis</li><li><a href="function.ldap-get-entries.php">ldap_get_entries</a> — Liefert alle Eintr&auml;ge aus einem Ergebnis</li><li><a href="function.ldap-get-option.php">ldap_get_option</a> — Liefert den aktuellen Wert einer gegebenen Option</li><li><a href="function.ldap-get-values.php">ldap_get_values</a> — Liefert alle Werte eines Eintrags aus einem Ergebnis</li><li><a href="function.ldap-get-values-len.php">ldap_get_values_len</a> — Liefert alle bin&auml;ren Werte eines Eintrags aus einem Ergebnis</li><li><a href="function.ldap-list.php">ldap_list</a> — Suche in einer Ebene</li><li><a href="function.ldap-mod-add.php">ldap_mod_add</a> — F&uuml;gt Merkmalswerte zum aktuellen Eintrag hinzu</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> — L&ouml;scht Merkmalswerte des aktuellen Eintrags</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> — Ersetzt Merkmalswerte durch neue Merkmalswerte</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> — Alias von 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> — Liefert das n&auml;chste Merkmal im Ergebnis</li><li><a href="function.ldap-next-entry.php">ldap_next_entry</a> — Liefert den n&auml;chsten Eintrag eines Ergebnisses</li><li><a href="function.ldap-next-reference.php">ldap_next_reference</a> — Holt die n&auml;chste Referenz</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> — Extrahiert Informationen aus einem Referenz-Eintrag</li><li><a href="function.ldap-parse-result.php">ldap_parse_result</a> — Extrahiert Informationen aus einem Ergebnis</li><li><a href="function.ldap-read.php">ldap_read</a> — Liest einen Eintrag</li><li><a href="function.ldap-rename.php">ldap_rename</a> — &Auml;ndert den Namen eines Eintrags</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> — Sucht im LDAP-Baum</li><li><a href="function.ldap-set-option.php">ldap_set_option</a> — Setzt den Wert der gegebenen Option</li><li><a href="function.ldap-set-rebind-proc.php">ldap_set_rebind_proc</a> — Setzt einen Callback f&uuml;r erneute Bindungen bei der Verweisverfolgung</li><li><a href="function.ldap-sort.php">ldap_sort</a> — Sortiert LDAP-Ergebniseintr&auml;ge clientseitig</li><li><a href="function.ldap-start-tls.php">ldap_start_tls</a> — Startet TLS</li><li><a href="function.ldap-t61-to-8859.php">ldap_t61_to_8859</a> — &Uuml;bersetzt t61-Zeichen in 8859-Zeichen</li><li><a href="function.ldap-unbind.php">ldap_unbind</a> — L&ouml;st die Bindung zu einem LDAP-Verzeichnis</li></ul></li><li><a href="class.ldap-connection.php">LDAP\Connection</a> — Die Klasse LDAP\Connection</li><li><a href="class.ldap-result.php">LDAP\Result</a> — Die Klasse LDAP\Result</li><li><a href="class.ldap-result-entry.php">LDAP\ResultEntry</a> — Die Klasse LDAP\ResultEntry</li></ul></div><?php manual_footer($setup); ?>