svn: /phpdoc/de/trunk/reference/ldap/ examples.xml functions/ldap-add.xml functions/ldap-bind.xml functions/ldap-compare.xml functions/ldap-delete.xml functions/ldap-list.xml functions/ldap-mod-add.xml

[email protected] (Christoph Michael Becker)
Newsgroups php.doc.de
Message-ID <[email protected]>
cmb                                      Mon, 10 Dec 2018 22:49:51 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=346288

Log:
Sync with EN

Changed paths:
    U   phpdoc/de/trunk/reference/ldap/examples.xml
    U   phpdoc/de/trunk/reference/ldap/functions/ldap-add.xml
    U   phpdoc/de/trunk/reference/ldap/functions/ldap-bind.xml
    U   phpdoc/de/trunk/reference/ldap/functions/ldap-compare.xml
    U   phpdoc/de/trunk/reference/ldap/functions/ldap-delete.xml
    U   phpdoc/de/trunk/reference/ldap/functions/ldap-list.xml
    U   phpdoc/de/trunk/reference/ldap/functions/ldap-mod-add.xml
svn-diffs-346288.txt (text/x-diff, 19 KB)
Modified: phpdoc/de/trunk/reference/ldap/examples.xml
===================================================================
--- phpdoc/de/trunk/reference/ldap/examples.xml	2018-12-10 20:35:45 UTC (rev 346287)
+++ phpdoc/de/trunk/reference/ldap/examples.xml	2018-12-10 22:49:51 UTC (rev 346288)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 346192 Maintainer: hholzgra Status: ready -->
+<!-- EN-Revision: 346204 Maintainer: hholzgra Status: ready -->

 <chapter xml:id="ldap.examples" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
  &reftitle.examples;
@@ -79,23 +79,23 @@
 $ds = ldap_connect('ldap://localhost');

 if ($ds) {
-  $r = ldap_bind_ext($ds, $user, $passwd, [['oid' => LDAP_CONTROL_PASSWORDPOLICYREQUEST]]);
+    $r = ldap_bind_ext($ds, $user, $passwd, [['oid' => LDAP_CONTROL_PASSWORDPOLICYREQUEST]]);

-  if (ldap_parse_result($ds, $r, $errcode, $matcheddn, $errmsg, $referrals, $ctrls)) {
-    if ($errcode != 0) {
-      die("Fehler: $errmsg ($errcode)");
+    if (ldap_parse_result($ds, $r, $errcode, $matcheddn, $errmsg, $referrals, $ctrls)) {
+        if ($errcode != 0) {
+            die("Fehler: $errmsg ($errcode)");
+        }
+        if (isset($ctrls[LDAP_CONTROL_PASSWORDPOLICYRESPONSE])) {
+            $value = $ctrls[LDAP_CONTROL_PASSWORDPOLICYRESPONSE]['value'];
+            echo "Verfällt in: ".$value['expire']." Sekunden\n";
+            echo "Anzahl der verfügbaren Authentifizierungsversuche: ".$value['grace']."\n";
+            if (isset($value['error'])) {
+                echo "Ppolicy Fehlercode: ".$value['error'];
+            }
+        }
     }
-    if (isset($ctrls[LDAP_CONTROL_PASSWORDPOLICYRESPONSE])) {
-      $value = $ctrls[LDAP_CONTROL_PASSWORDPOLICYRESPONSE]['value'];
-      echo "Verfällt in: ".$value['expire']." Sekunden\n";
-      echo "Anzahl der verfügbaren Authentifizierungsversuche: ".$value['grace']."\n";
-      if (isset($value['error'])) {
-        echo "Ppolicy Fehlercode: ".$value['error'];
-      }
-    }
-  }
 } else {
-  die("Verbindung mit dem LDAP-Server nicht möglich");
+    die("Verbindung mit dem LDAP-Server nicht möglich");
 }
 ?>
 ]]>
@@ -107,22 +107,22 @@
    <programlisting role="php">
 <![CDATA[
 <?php
-  // $link ist eine LDAP-Verbindung
+// $link ist eine LDAP-Verbindung

-  $result = ldap_mod_replace_ext(
+$result = ldap_mod_replace_ext(
     $link,
     'o=test,dc=example,dc=com',
     ['description' => 'New description'],
     [
-      [
-        'oid'         => LDAP_CONTROL_ASSERT,
-        'iscritical'  => TRUE,
-        'value'       => ['filter' => '(!(description=*))']
-      ]
+        [
+            'oid'         => LDAP_CONTROL_ASSERT,
+            'iscritical'  => TRUE,
+            'value'       => ['filter' => '(!(description=*))']
+        ]
     ]
-  );
+);

-  // Nun ist ldap_parse_result zu verwenden
+// Nun ist ldap_parse_result zu verwenden
 ?>
 ]]>
    </programlisting>
@@ -133,21 +133,21 @@
    <programlisting role="php">
 <![CDATA[
 <?php
-  // $link ist eine LDAP-Verbindung
+// $link ist eine LDAP-Verbindung

-  $result = ldap_delete_ext(
+$result = ldap_delete_ext(
     $link,
     'o=test,dc=example,dc=com',
     [
-      [
-        'oid'         => LDAP_CONTROL_PRE_READ,
-        'iscritical'  => TRUE,
-        'value'       => ['attrs' => ['o', 'description']]
-      ]
+        [
+            'oid'         => LDAP_CONTROL_PRE_READ,
+            'iscritical'  => TRUE,
+            'value'       => ['attrs' => ['o', 'description']]
+        ]
     ]
-  );
+);

-  // Nun ist ldap_parse_result zu verwenden
+// Nun ist ldap_parse_result zu verwenden
 ?>
 ]]>
    </programlisting>
@@ -158,17 +158,17 @@
    <programlisting role="php">
 <![CDATA[
 <?php
-  // $link ist eine LDAP-Verbindung
+// $link ist eine LDAP-Verbindung

-  // Ohne den Steuerbefehl würde der referenzierte Knoten gelöscht.
-  // Der Steuerbefehl muss als kritisch markiert werden, um dies zu vermeiden.
-  $result = ldap_delete_ext(
+// Ohne den Steuerbefehl würde der referenzierte Knoten gelöscht.
+// Der Steuerbefehl muss als kritisch markiert werden, um dies zu vermeiden.
+$result = ldap_delete_ext(
     $link,
     'cn=reference,dc=example,dc=com',
     [['oid' => LDAP_CONTROL_MANAGEDSAIT, 'iscritical' => TRUE]]
-  );
+);

-  // Nun ist ldap_parse_result zu verwenden
+// Nun ist ldap_parse_result zu verwenden
 ?>
 ]]>
    </programlisting>
@@ -179,29 +179,29 @@
    <programlisting role="php">
 <![CDATA[
 <?php
-  // $link ist eine LDAP-Verbindung
+// $link ist eine LDAP-Verbindung

-  $cookie = '';
+$cookie = '';

-  do {
+do {
     $result = ldap_search(
-      $link, 'dc=example,dc=base', '(cn=*)', ['cn'], 0, 0, 0, LDAP_DEREF_NEVER,
-      [['oid' => LDAP_CONTROL_PAGEDRESULTS, 'value' => ['size' => 2, 'cookie' => $cookie]]]
+        $link, 'dc=example,dc=base', '(cn=*)', ['cn'], 0, 0, 0, LDAP_DEREF_NEVER,
+        [['oid' => LDAP_CONTROL_PAGEDRESULTS, 'value' => ['size' => 2, 'cookie' => $cookie]]]
     );
     ldap_parse_result($link, $result, $errcode , $matcheddn , $errmsg , $referrals, $controls);
     // Um das Beispiel übersichtlich zu halten, wird nicht auf Fehler geprüft
     $entries = ldap_get_entries($link, $result);
     foreach ($entries as $entry) {
-      echo "cn: ".$entry['cn'][0]."\n";
+        echo "cn: ".$entry['cn'][0]."\n";
     }
     if (isset($controls[LDAP_CONTROL_PAGEDRESULTS]['value']['cookie'])) {
-      // Das Cookie des letzten Aufrufs muss an den Folgenden übergeben werden
-      $cookie = $controls[LDAP_CONTROL_PAGEDRESULTS]['value']['cookie'];
+        // Das Cookie des letzten Aufrufs muss an den Folgenden übergeben werden
+        $cookie = $controls[LDAP_CONTROL_PAGEDRESULTS]['value']['cookie'];
     } else {
-      $cookie = '';
+        $cookie = '';
     }
     // Ein leeres Cookie bedeutet die letzte Seite
-  } while (!empty($cookie));
+} while (!empty($cookie));
 ?>
 ]]>
    </programlisting>

Modified: phpdoc/de/trunk/reference/ldap/functions/ldap-add.xml
===================================================================
--- phpdoc/de/trunk/reference/ldap/functions/ldap-add.xml	2018-12-10 20:35:45 UTC (rev 346287)
+++ phpdoc/de/trunk/reference/ldap/functions/ldap-add.xml	2018-12-10 22:49:51 UTC (rev 346288)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 343898 Maintainer: nobody Status: ready -->
+<!-- EN-Revision: 346169 Maintainer: nobody Status: ready -->

 <refentry xml:id="function.ldap-add" xmlns="http://docbook.org/ns/docbook">
  <refnamediv>
@@ -15,7 +15,7 @@
    <methodparam><type>resource</type><parameter>link_identifier</parameter></methodparam>
    <methodparam><type>string</type><parameter>dn</parameter></methodparam>
    <methodparam><type>array</type><parameter>entry</parameter></methodparam>
-   <methodparam choice="opt"><type>array</type><parameter>serverctrls</parameter></methodparam>
+   <methodparam choice="opt"><type>array</type><parameter>serverctrls</parameter><initializer>array()</initializer></methodparam>
   </methodsynopsis>
   <para>
    Füge Einträge in ein LDAP Verzeichnis ein.
@@ -65,6 +65,15 @@
       </para>
      </listitem>
     </varlistentry>
+    <varlistentry>
+     <term><parameter>serverctrls</parameter></term>
+     <listitem>
+      <para>
+       Array von <link linkend="ldap.controls">LDAP-Steuerbefehlen</link>,
+       die mit der Anfrage versendet werden sollen.
+      </para>
+     </listitem>
+    </varlistentry>
    </variablelist>
   </para>
  </refsect1>
@@ -76,6 +85,30 @@
   </para>
  </refsect1>

+ <refsect1 role="changelog">
+  &reftitle.changelog;
+  <para>
+   <informaltable>
+    <tgroup cols="2">
+     <thead>
+      <row>
+       <entry>&Version;</entry>
+       <entry>&Description;</entry>
+      </row>
+     </thead>
+     <tbody>
+      <row>
+       <entry>7.3</entry>
+       <entry>
+        Unterstützung für <parameter>serverctrls</parameter> hinzugefügt.
+       </entry>
+      </row>
+     </tbody>
+    </tgroup>
+   </informaltable>
+  </para>
+ </refsect1>
+
  <refsect1 role="examples">
   &reftitle.examples;
   <para>
@@ -119,6 +152,7 @@
   &reftitle.seealso;
   <para>
    <simplelist>
+    <member><function>ldap_add_ext</function></member>
     <member><function>ldap_delete</function></member>
    </simplelist>
   </para>

Modified: phpdoc/de/trunk/reference/ldap/functions/ldap-bind.xml
===================================================================
--- phpdoc/de/trunk/reference/ldap/functions/ldap-bind.xml	2018-12-10 20:35:45 UTC (rev 346287)
+++ phpdoc/de/trunk/reference/ldap/functions/ldap-bind.xml	2018-12-10 22:49:51 UTC (rev 346288)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 345039 Maintainer: nobody Status: ready -->
+<!-- EN-Revision: 346167 Maintainer: nobody Status: ready -->

 <refentry xml:id="function.ldap-bind" xmlns="http://docbook.org/ns/docbook">
  <refnamediv>
@@ -137,6 +137,7 @@
   &reftitle.seealso;
   <para>
    <simplelist>
+    <member><function>ldap_bind_ext</function></member>
     <member><function>ldap_unbind</function></member>
    </simplelist>
   </para>

Modified: phpdoc/de/trunk/reference/ldap/functions/ldap-compare.xml
===================================================================
--- phpdoc/de/trunk/reference/ldap/functions/ldap-compare.xml	2018-12-10 20:35:45 UTC (rev 346287)
+++ phpdoc/de/trunk/reference/ldap/functions/ldap-compare.xml	2018-12-10 22:49:51 UTC (rev 346288)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 343898 Maintainer: nobody Status: ready -->
+<!-- EN-Revision: 346169 Maintainer: nobody Status: ready -->

 <refentry xml:id="function.ldap-compare" xmlns="http://docbook.org/ns/docbook">
  <refnamediv>
@@ -19,7 +19,7 @@
    <methodparam><type>string</type><parameter>dn</parameter></methodparam>
    <methodparam><type>string</type><parameter>attribute</parameter></methodparam>
    <methodparam><type>string</type><parameter>value</parameter></methodparam>
-   <methodparam choice="opt"><type>array</type><parameter>serverctrls</parameter></methodparam>
+   <methodparam choice="opt"><type>array</type><parameter>serverctrls</parameter><initializer>array()</initializer></methodparam>
   </methodsynopsis>
   <para>
    Vergleiche den Wert (<parameter>value</parameter>) des Merkmals
@@ -64,6 +64,15 @@
       </para>
      </listitem>
     </varlistentry>
+    <varlistentry>
+     <term><parameter>serverctrls</parameter></term>
+     <listitem>
+      <para>
+       Array von <link linkend="ldap.controls">LDAP-Steuerbefehlen</link>,
+       die mit der Anfrage versendet werden sollen.
+      </para>
+     </listitem>
+    </varlistentry>
    </variablelist>
   </para>
  </refsect1>
@@ -76,6 +85,30 @@
   </para>
  </refsect1>

+ <refsect1 role="changelog">
+  &reftitle.changelog;
+  <para>
+   <informaltable>
+    <tgroup cols="2">
+     <thead>
+      <row>
+       <entry>&Version;</entry>
+       <entry>&Description;</entry>
+      </row>
+     </thead>
+     <tbody>
+      <row>
+       <entry>7.3</entry>
+       <entry>
+        Unterstützung für <parameter>serverctrls</parameter> hinzugefügt.
+       </entry>
+      </row>
+     </tbody>
+    </tgroup>
+   </informaltable>
+  </para>
+ </refsect1>
+
  <refsect1 role="examples">
   &reftitle.examples;
   <para>

Modified: phpdoc/de/trunk/reference/ldap/functions/ldap-delete.xml
===================================================================
--- phpdoc/de/trunk/reference/ldap/functions/ldap-delete.xml	2018-12-10 20:35:45 UTC (rev 346287)
+++ phpdoc/de/trunk/reference/ldap/functions/ldap-delete.xml	2018-12-10 22:49:51 UTC (rev 346288)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 343898 Maintainer: nobody Status: ready -->
+<!-- EN-Revision: 346169 Maintainer: nobody Status: ready -->

 <refentry xml:id="function.ldap-delete" xmlns="http://docbook.org/ns/docbook">
  <refnamediv>
@@ -14,7 +14,7 @@
    <type>bool</type><methodname>ldap_delete</methodname>
    <methodparam><type>resource</type><parameter>link_identifier</parameter></methodparam>
    <methodparam><type>string</type><parameter>dn</parameter></methodparam>
-   <methodparam choice="opt"><type>array</type><parameter>serverctrls</parameter></methodparam>
+   <methodparam choice="opt"><type>array</type><parameter>serverctrls</parameter><initializer>array()</initializer></methodparam>
   </methodsynopsis>
   <para>
    Löscht einen bestimmten Eintrag aus einem LDAP-Verzeichnis.
@@ -41,6 +41,15 @@
       </para>
      </listitem>
     </varlistentry>
+    <varlistentry>
+     <term><parameter>serverctrls</parameter></term>
+     <listitem>
+      <para>
+       Array von <link linkend="ldap.controls">LDAP-Steuerbefehlen</link>,
+       die mit der Anfrage versendet werden sollen.
+      </para>
+     </listitem>
+    </varlistentry>
    </variablelist>
   </para>
  </refsect1>
@@ -52,10 +61,35 @@
   </para>
  </refsect1>

+ <refsect1 role="changelog">
+  &reftitle.changelog;
+  <para>
+   <informaltable>
+    <tgroup cols="2">
+     <thead>
+      <row>
+       <entry>&Version;</entry>
+       <entry>&Description;</entry>
+      </row>
+     </thead>
+     <tbody>
+      <row>
+       <entry>7.3</entry>
+       <entry>
+        Unterstützung für <parameter>serverctrls</parameter> hinzugefügt.
+       </entry>
+      </row>
+     </tbody>
+    </tgroup>
+   </informaltable>
+  </para>
+ </refsect1>
+
  <refsect1 role="seealso">
   &reftitle.seealso;
   <para>
    <simplelist>
+    <member><function>ldap_delete_ext</function></member>
     <member><function>ldap_add</function></member>
    </simplelist>
   </para>

Modified: phpdoc/de/trunk/reference/ldap/functions/ldap-list.xml
===================================================================
--- phpdoc/de/trunk/reference/ldap/functions/ldap-list.xml	2018-12-10 20:35:45 UTC (rev 346287)
+++ phpdoc/de/trunk/reference/ldap/functions/ldap-list.xml	2018-12-10 22:49:51 UTC (rev 346288)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 343898 Maintainer: nobody Status: ready -->
+<!-- EN-Revision: 346169 Maintainer: nobody Status: ready -->

 <refentry xml:id="function.ldap-list" xmlns="http://docbook.org/ns/docbook">
  <refnamediv>
@@ -14,12 +14,12 @@
    <methodparam><type>resource</type><parameter>link_identifier</parameter></methodparam>
    <methodparam><type>string</type><parameter>base_dn</parameter></methodparam>
    <methodparam><type>string</type><parameter>filter</parameter></methodparam>
-   <methodparam choice="opt"><type>array</type><parameter>attributes</parameter></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>attrsonly</parameter></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>sizelimit</parameter></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>timelimit</parameter></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>deref</parameter></methodparam>
-   <methodparam choice="opt"><type>array</type><parameter>serverctrls</parameter></methodparam>
+   <methodparam choice="opt"><type>array</type><parameter>attributes</parameter><initializer>array("*")</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>attrsonly</parameter><initializer>0</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>sizelimit</parameter><initializer>-1</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>timelimit</parameter><initializer>-1</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>deref</parameter><initializer>LDAP_DEREF_NEVER</initializer></methodparam>
+   <methodparam choice="opt"><type>array</type><parameter>serverctrls</parameter><initializer>array()</initializer></methodparam>
   </methodsynopsis>
   <para>
    Führt eine Suche für einen angegeben <parameter>filter</parameter>
@@ -162,6 +162,15 @@
       </para>
      </listitem>
     </varlistentry>
+    <varlistentry>
+     <term><parameter>serverctrls</parameter></term>
+     <listitem>
+      <para>
+       Array von <link linkend="ldap.controls">LDAP-Steuerbefehlen</link>,
+       die mit der Anfrage versendet werden sollen.
+      </para>
+     </listitem>
+    </varlistentry>
    </variablelist>
   </para>
  </refsect1>
@@ -186,6 +195,12 @@
      </thead>
      <tbody>
       <row>
+       <entry>7.3</entry>
+       <entry>
+        Unterstützung für <parameter>serverctrls</parameter> hinzugefügt.
+       </entry>
+      </row>
+      <row>
        <entry>4.0.5</entry>
        <entry>
         Unterstützung für parallele Suchen wurde hinzugefügt. Siehe

Modified: phpdoc/de/trunk/reference/ldap/functions/ldap-mod-add.xml
===================================================================
--- phpdoc/de/trunk/reference/ldap/functions/ldap-mod-add.xml	2018-12-10 20:35:45 UTC (rev 346287)
+++ phpdoc/de/trunk/reference/ldap/functions/ldap-mod-add.xml	2018-12-10 22:49:51 UTC (rev 346288)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 343898 Maintainer: nobody Status: ready -->
+<!-- EN-Revision: 346169 Maintainer: nobody Status: ready -->

 <refentry xml:id="function.ldap-mod-add" xmlns="http://docbook.org/ns/docbook">
  <refnamediv>
@@ -15,7 +15,7 @@
    <methodparam><type>resource</type><parameter>link_identifier</parameter></methodparam>
    <methodparam><type>string</type><parameter>dn</parameter></methodparam>
    <methodparam><type>array</type><parameter>entry</parameter></methodparam>
-   <methodparam choice="opt"><type>array</type><parameter>serverctrls</parameter></methodparam>
+   <methodparam choice="opt"><type>array</type><parameter>serverctrls</parameter><initializer>array()</initializer></methodparam>
   </methodsynopsis>
   <para>
    Fügt ein oder mehrere Merkmalswerte zum angegebenen <parameter>dn</parameter>
@@ -55,6 +55,15 @@
       </para>
      </listitem>
     </varlistentry>
+    <varlistentry>
+     <term><parameter>serverctrls</parameter></term>
+     <listitem>
+      <para>
+       Array von <link linkend="ldap.controls">LDAP-Steuerbefehlen</link>,
+       die mit der Anfrage versendet werden sollen.
+      </para>
+     </listitem>
+    </varlistentry>
    </variablelist>
   </para>
  </refsect1>
@@ -66,6 +75,30 @@
   </para>
  </refsect1>

+ <refsect1 role="changelog">
+  &reftitle.changelog;
+  <para>
+   <informaltable>
+    <tgroup cols="2">
+     <thead>
+      <row>
+       <entry>&Version;</entry>
+       <entry>&Description;</entry>
+      </row>
+     </thead>
+     <tbody>
+      <row>
+       <entry>7.3</entry>
+       <entry>
+        Unterstützung für <parameter>serverctrls</parameter> hinzugefügt.
+       </entry>
+      </row>
+     </tbody>
+    </tgroup>
+   </informaltable>
+  </para>
+ </refsect1>
+
  <refsect1 role="notes">
   &reftitle.notes;
   &note.bin-safe;
@@ -75,6 +108,7 @@
   &reftitle.seealso;
   <para>
    <simplelist>
+    <member><function>ldap_mod_add_ext</function></member>
     <member><function>ldap_mod_del</function></member>
     <member><function>ldap_mod_replace</function></member>
     <member><function>ldap_modify_batch</function></member>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.