cvs: phpdoc-fr /reference/ldap configure.xml constants.xml ini.xml reference.xml /reference/ldap/functions ldap-8859-to-t61.xml ldap-add.xml
ldap-bind.xml ldap-close.xml ldap-compare.xml ldap-connect.xml ldap-count-entries.xml ldap-delete.xml ldap-dn2ufn.xml ldap-err2str.xml ldap-errno.xml
ldap-error.xml ldap-explode-dn.xml ldap-first-attribute.xml ldap-first-entry.xml ldap-first-reference.xml ldap-free-result.xml ldap-get-attributes.xml
ldap-get-dn.xml ldap-get-entries.xml ldap-get-option.xml ldap-get-values-len.xml ldap-get-values.xml ldap-list.xml ldap-mod-add.xml ldap-mod-del.xml
ldap-mod-replace.xml ldap-modify.xml ldap-next-attribute.xml ldap-next-entry.xml ldap-next-reference.xml ldap-parse-reference.xml
ldap-parse-result.xml ldap-read.xml ldap-rename.xml ldap-search.xml ldap-set-option.xml ldap-set-rebind-proc.xml ldap-sort.xml ldap-start-tls.xml
ldap-t61-to-8859.xml ldap-unbind.xml
| From: | Yannick TORRES | Date: | Mon, 03 May 2004 11:59:56 +0000 |
| Subject: | cvs: phpdoc-fr /reference/ldap configure.xml constants.xml ini.xml reference.xml /reference/ldap/functions ldap-8859-to-t61.xml ldap-add.xml ldap-bind.xml ldap-close.xml ldap-compare.xml ldap-connect.xml ldap-count-entries.xml ldap-delete.xml ldap-dn2ufn.xml ldap-err2str.xml ldap-errno.xml ldap-error.xml ldap-explode-dn.xml ldap-first-attribute.xml ldap-first-entry.xml ldap-first-reference.xml ldap-free-result.xml ldap-get-attributes.xml ldap-get-dn.xml ldap-get-entries.xml ldap-get-option.xml ldap-get-values-len.xml ldap-get-values.xml ldap-list.xml ldap-mod-add.xml ldap-mod-del.xml ldap-mod-replace.xml ldap-modify.xml ldap-next-attribute.xml ldap-next-entry.xml ldap-next-reference.xml ldap-parse-reference.xml ldap-parse-result.xml ldap-read.xml ldap-rename.xml ldap-search.xml ldap-set-option.xml ldap-set-rebind-proc.xml ldap-sort.xml ldap-start-tls.xml ldap-t61-to-8859.xml ldap-unbind.xml |
||
| Groups: | php.doc.fr | ||
| Request: | Send a blank email to doc-fr+get-2400@lists.php.net to get a copy of this message | ||
yannick Mon May 3 07:59:56 2004 EDT
Modified files:
/phpdoc-fr/reference/ldap/functions ldap-8859-to-t61.xml
ldap-add.xml ldap-bind.xml
ldap-close.xml ldap-compare.xml
ldap-connect.xml
ldap-count-entries.xml
ldap-delete.xml ldap-dn2ufn.xml
ldap-err2str.xml ldap-errno.xml
ldap-error.xml
ldap-explode-dn.xml
ldap-first-attribute.xml
ldap-first-entry.xml
ldap-first-reference.xml
ldap-free-result.xml
ldap-get-attributes.xml
ldap-get-dn.xml
ldap-get-entries.xml
ldap-get-option.xml
ldap-get-values-len.xml
ldap-get-values.xml
ldap-list.xml ldap-mod-add.xml
ldap-mod-del.xml
ldap-modify.xml
ldap-mod-replace.xml
ldap-next-attribute.xml
ldap-next-entry.xml
ldap-next-reference.xml
ldap-parse-reference.xml
ldap-parse-result.xml
ldap-read.xml ldap-rename.xml
ldap-search.xml
ldap-set-option.xml
ldap-set-rebind-proc.xml
ldap-sort.xml
ldap-start-tls.xml
ldap-t61-to-8859.xml
ldap-unbind.xml
/phpdoc-fr/reference/ldap configure.xml constants.xml ini.xml
reference.xml
Log:
synch with EN Revision
http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-8859-to-t61.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-8859-to-t61.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-8859-to-t61.xml:1.4 phpdoc-fr/reference/ldap/functions/ldap-8859-to-t61.xml:1.5 --- phpdoc-fr/reference/ldap/functions/ldap-8859-to-t61.xml:1.4 Wed Feb 25 07:37:25 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-8859-to-t61.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.39 --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.ldap-8859-to-t61"> <refnamediv> <refname>ldap_8859_to_t61</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-add.xml?r1=1.11&r2=1.12&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-add.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-add.xml:1.11 phpdoc-fr/reference/ldap/functions/ldap-add.xml:1.12 --- phpdoc-fr/reference/ldap/functions/ldap-add.xml:1.11 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-add.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.11 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.2 --> +<!-- $Revision: 1.12 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.ldap-add"> <refnamediv> <refname>ldap_add</refname> @@ -15,23 +14,26 @@ <methodparam><type>string</type><parameter>dn</parameter></methodparam> <methodparam><type>array</type><parameter>entry</parameter></methodparam> </methodsynopsis> + <para> + &return.success; + </para> <para> <function>ldap_add</function> sert à ajouter une entrée dans un dossier LDAP. <parameter>dn</parameter> est l'identification complète de l'entrée qui sera ajoutée, et <parameter>entry</parameter> est un tableau avec les informations sur la nouvelle entrée. - &return.success; Ces valeurs sont indexées individuellement. En + Ces valeurs sont indexées individuellement. En cas de valeurs multiples pour un attribut, elle sont indexées numériquement, à partir de 0. </para> <example> <title>Exemple de tableau pour ajouter une entrée LDAP</title> - <programlisting> + <programlisting role="php"> <![CDATA[ <?php - $entree["attribut1"] = "valeur"; - $entree["attribut2"][0] = "valeur1"; - $entree["attribut2"][1] = "valeur2"; +$entree["attribut1"] = "valeur"; +$entree["attribut2"][0] = "valeur1"; +$entree["attribut2"][1] = "valeur2"; ?> ]]> </programlisting> @@ -45,20 +47,20 @@ if ($ds) { // Connexion avec une identitée qui permet les modifications - $r=ldap_bind($ds,"cn=root, o=Ma Compagnie, c=FR", "secret"); + $r=ldap_bind($ds, "cn=root, o=Ma Compagnie, c=FR", "secret"); // prepare les données - $info["cn"]="Jean Dupont"; - $info["sn"]="Jean"; - $info["mail"]="jeand@serveur.mail.com"; - $info["objectclass"]="personne"; + $info["cn"]='Jean Dupont'; + $info["sn"]='Jean'; + $info["mail"]='jeand@serveur.mail.com'; + $info["objectclass"]='personne'; // Ajoute les données au dossier $r=ldap_add($ds, "cn=Jean Dupont, o=Ma Compagnie, c=FR", $info); ldap_close($ds); } else { - echo "Impossible de se connecter au serveur LDAP"; + echo 'Impossible de se connecter au serveur LDAP'; } ?> ]]> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-bind.xml?r1=1.7&r2=1.8&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-bind.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-bind.xml:1.7 phpdoc-fr/reference/ldap/functions/ldap-bind.xml:1.8 --- phpdoc-fr/reference/ldap/functions/ldap-bind.xml:1.7 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-bind.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.2 --> +<!-- $Revision: 1.8 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="function.ldap-bind"> <refnamediv> <refname>ldap_bind</refname> @@ -25,7 +24,7 @@ <function>ldap_bind</function> effecute une opération de bind avec le serveur. <parameter>bind_rdn</parameter> et <parameter>bind_password</parameter> sont optionnels. S'ils - sont omis, une tentative de connexion anonyme est tentée. + sont omis, une connexion anonyme est tentée. </para> <example> <title>Identification avec LDAP</title> @@ -43,7 +42,7 @@ if ($ldapconn) { - //Connexion au serveur LDAP + //Connexion au serveur LDAP $ldapbind = ldap_bind($ldapconn, $ldaprdn, $ldappass); // Identification @@ -77,9 +76,9 @@ $ldapbind = ldap_bind($ldapconn); if ($ldapbind) { - echo "Connexion LDAP anonmye réussie"; + echo 'Connexion LDAP anonmye réussie'; } else { - echo "Connexion LDAP anonmye échouée"; + echo 'Connexion LDAP anonmye échouée'; } } http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-close.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-close.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-close.xml:1.5 phpdoc-fr/reference/ldap/functions/ldap-close.xml:1.6 --- phpdoc-fr/reference/ldap/functions/ldap-close.xml:1.5 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-close.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.2 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.ldap-close"> <refnamediv> <refname>ldap_close</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-compare.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-compare.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-compare.xml:1.5 phpdoc-fr/reference/ldap/functions/ldap-compare.xml:1.6 --- phpdoc-fr/reference/ldap/functions/ldap-compare.xml:1.5 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-compare.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.12 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.3 Maintainer: nobody Status: partial --> <refentry id="function.ldap-compare"> <refnamediv> <refname>ldap_compare</refname> @@ -41,7 +40,7 @@ if ($ds) { // identification - if(ldap_bind($ds)) { + if (ldap_bind($ds)) { // preparation des données $dn = "cn=Matti Meikku, ou=Mon Service, o=Ma Compagnie, c=FR"; http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-connect.xml?r1=1.8&r2=1.9&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-connect.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-connect.xml:1.8 phpdoc-fr/reference/ldap/functions/ldap-connect.xml:1.9 --- phpdoc-fr/reference/ldap/functions/ldap-connect.xml:1.8 Tue Feb 24 13:11:03 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-connect.xml Mon May 3 07:59:55 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/ldap.xml, last change in rev 1.10 --> -<!-- last change to 'ldap-connect' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.9 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.ldap-connect"> <refnamediv> <refname>ldap_connect</refname> @@ -21,8 +18,8 @@ LDAP en cas de succès, ou bien &false; en cas d'erreur. </para> <para> - <function>ldap_connect</function> établit une connexion avec un serveur. - Le serveur LDAP situé sur l'hôte <parameter>hostname</parameter> et + <function>ldap_connect</function> établit une connexion avec un serveur + LDAP situé sur l'hôte <parameter>hostname</parameter> et <parameter>port</parameter>. Les deux arguments sont optionnels. Sans argument, l'identifiant de la dernière connexion ouverte sera retournée. Si seul <parameter>hostname</parameter> est spécifié, le port par http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-count-entries.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-count-entries.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-count-entries.xml:1.5 phpdoc-fr/reference/ldap/functions/ldap-count-entries.xml:1.6 --- phpdoc-fr/reference/ldap/functions/ldap-count-entries.xml:1.5 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-count-entries.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.2 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.ldap-count-entries"> <refnamediv> <refname>ldap_count_entries</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-delete.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-delete.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-delete.xml:1.5 phpdoc-fr/reference/ldap/functions/ldap-delete.xml:1.6 --- phpdoc-fr/reference/ldap/functions/ldap-delete.xml:1.5 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-delete.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.2 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.ldap-delete"> <refnamediv> <refname>ldap_delete</refname> @@ -15,7 +14,8 @@ <methodparam><type>string</type><parameter>dn</parameter></methodparam> </methodsynopsis> <para> - &return.success;</para> + &return.success; + </para> <para> <function>ldap_delete</function> efface l'entrée identifiée par son <parameter>dn</parameter> sur le serveur identifié http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-dn2ufn.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-dn2ufn.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-dn2ufn.xml:1.5 phpdoc-fr/reference/ldap/functions/ldap-dn2ufn.xml:1.6 --- phpdoc-fr/reference/ldap/functions/ldap-dn2ufn.xml:1.5 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-dn2ufn.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.2 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.ldap-dn2ufn"> <refnamediv> <refname>ldap_dn2ufn</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-err2str.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-err2str.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-err2str.xml:1.5 phpdoc-fr/reference/ldap/functions/ldap-err2str.xml:1.6 --- phpdoc-fr/reference/ldap/functions/ldap-err2str.xml:1.5 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-err2str.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.12 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="function.ldap-err2str"> <refnamediv> <refname>ldap_err2str</refname> @@ -16,7 +15,7 @@ <methodparam><type>int</type><parameter>errno</parameter></methodparam> </methodsynopsis> <para> - <function>ldap_err2str</function> retourne un message d'erreur + <function>ldap_err2str</function> retourne un message d'erreur. </para> <para> <function>ldap_err2str</function> retourne le message lisible expliquant @@ -32,9 +31,9 @@ <programlisting role="php"> <![CDATA[ <?php - for($i=0; $i<100; $i++) { +for($i=0; $i<100; $i++) { printf("Erreur numéro $i : %s<br>\n", ldap_err2str($i)); - } +} ?> ]]> </programlisting> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-errno.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-errno.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-errno.xml:1.6 phpdoc-fr/reference/ldap/functions/ldap-errno.xml:1.7 --- phpdoc-fr/reference/ldap/functions/ldap-errno.xml:1.6 Tue Feb 24 13:11:03 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-errno.xml Mon May 3 07:59:55 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/ldap.xml, last change in rev 1.4 --> -<!-- last change to 'ldap-errno' in en/ tree in rev 1.12 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="function.ldap-errno"> <refnamediv> <refname>ldap_errno</refname> @@ -24,7 +21,7 @@ </para> <para> <function>ldap_errno</function> retourne le numéro d'erreur - standard, généré par la dernière commande + standart, généré par la dernière commande LDAP, pour la connexion <parameter>link_identifier</parameter>. Ce numéro peut être converti en message textuel avec <function>ldap_err2str</function>. @@ -32,7 +29,7 @@ <para> A moins que vous n'abaissiez suffisamment le niveau d'erreur dans &php.ini; (ou <filename>php3.ini</filename>), ou que - vous ne préfixiez vos commandes LDAP avec <literal>@</literal> + vous ne préfixiez vos commandes LDAP avec <literal>@</literal> (at) pour supprimer les affichages, les erreurs LDAP s'afficheront aussi dans le code PHP. <example> @@ -47,12 +44,12 @@ // must be "objectclass=*" to work. $res = @ldap_search($ld, "o=Myorg, c=DE", "objectclass"); if (!$res) { - printf("LDAP-Errno: %s<br>\n", ldap_errno($ld)); - printf("LDAP-Error: %s<br>\n", ldap_error($ld)); - die("Argh!<br>\n"); + echo "LDAP-Errno: " . ldap_errno($ld) . "<br />\n"; + echo "LDAP-Error: " . ldap_error($ld) . "<br />\n"; + die("Argh!<br />\n"); } $info = ldap_get_entries($ld, $res); -printf("%d entrees trouvées.<br>\n", $info["count"]); +echo $info["count"] . " matching entries.<br />\n"; ?> ]]> </programlisting> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-error.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-error.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-error.xml:1.6 phpdoc-fr/reference/ldap/functions/ldap-error.xml:1.7 --- phpdoc-fr/reference/ldap/functions/ldap-error.xml:1.6 Tue Feb 24 13:11:03 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-error.xml Mon May 3 07:59:55 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/ldap.xml, last change in rev 1.4 --> -<!-- last change to 'ldap-error' in en/ tree in rev 1.12 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.ldap-error"> <refnamediv> <refname>ldap_error</refname> @@ -31,7 +28,7 @@ <para> A moins que vous n'abaissiez suffisamment le niveau d'erreur dans &php.ini; (ou <filename>php3.ini</filename>), ou que vous ne - préfixiez vos commandes LDAP avec <literal>@</literal> pour supprimer + préfixiez vos commandes LDAP avec <literal>@</literal> pour supprimer les affichages, les erreurs LDAP s'afficheront aussi dans le code PHP. </para> <para> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-explode-dn.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-explode-dn.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-explode-dn.xml:1.5 phpdoc-fr/reference/ldap/functions/ldap-explode-dn.xml:1.6 --- phpdoc-fr/reference/ldap/functions/ldap-explode-dn.xml:1.5 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-explode-dn.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.2 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.ldap-explode-dn"> <refnamediv> <refname>ldap_explode_dn</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-first-attribute.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-first-attribute.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-first-attribute.xml:1.6 phpdoc-fr/reference/ldap/functions/ldap-first-attribute.xml:1.7 --- phpdoc-fr/reference/ldap/functions/ldap-first-attribute.xml:1.6 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-first-attribute.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.2 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.ldap-first-attribute"> <refnamediv> <refname>ldap_first_attribute</refname> @@ -21,8 +20,8 @@ <parameter>link_identifier</parameter>, ou &false; en cas d'erreur. </para> <para> - Similairement à la lecture des entrées, les attributs sont lis - les uns après les auters, pour une entrée. + Similairement à la lecture des entrées, les attributs sont lus + les uns après les autres, pour une entrée. <function>ldap_first_attribute</function> retourne le premier attribut de l'entrée représentée par <parameter>result_entry_identifier</parameter>. http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-first-entry.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-first-entry.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-first-entry.xml:1.5 phpdoc-fr/reference/ldap/functions/ldap-first-entry.xml:1.6 --- phpdoc-fr/reference/ldap/functions/ldap-first-entry.xml:1.5 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-first-entry.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.2 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="function.ldap-first-entry"> <refnamediv> <refname>ldap_first_entry</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-first-reference.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-first-reference.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-first-reference.xml:1.4 phpdoc-fr/reference/ldap/functions/ldap-first-reference.xml:1.5 --- phpdoc-fr/reference/ldap/functions/ldap-first-reference.xml:1.4 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-first-reference.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.39 --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.ldap-first-reference"> <refnamediv> <refname>ldap_first_reference</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-free-result.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-free-result.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-free-result.xml:1.6 phpdoc-fr/reference/ldap/functions/ldap-free-result.xml:1.7 --- phpdoc-fr/reference/ldap/functions/ldap-free-result.xml:1.6 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-free-result.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.2 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.ldap-free-result"> <refnamediv> <refname>ldap_free_result</refname> @@ -14,7 +13,8 @@ <methodparam><type>resource</type><parameter>result_identifier</parameter></methodparam> </methodsynopsis> <para> - &return.success;</para> + &return.success; + </para> <para> <function>ldap_free_result</function> libère toute la mémoire allouée en interne pour stocker le résultat <parameter>result_identifier</parameter>. http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-get-attributes.xml?r1=1.7&r2=1.8&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-get-attributes.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-get-attributes.xml:1.7 phpdoc-fr/reference/ldap/functions/ldap-get-attributes.xml:1.8 --- phpdoc-fr/reference/ldap/functions/ldap-get-attributes.xml:1.7 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-get-attributes.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.2 --> +<!-- $Revision: 1.8 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="function.ldap-get-attributes"> <refnamediv> <refname>ldap_get_attributes</refname> @@ -65,10 +64,11 @@ $attrs = ldap_get_attributes($ds, $entry); -echo $attrs["count"]." attributs dans cette entrée :<p>"; +echo $attrs["count"] . " attributs dans cette entrée :<p>"; -for ($i=0; $i<$attrs["count"]; $i++) - echo $attrs[$i]."<br>"; +for ($i=0; $i<$attrs["count"]; $i++) { + echo $attrs[$i]."<br />"; +} ?> ]]> </programlisting> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-get-dn.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-get-dn.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-get-dn.xml:1.5 phpdoc-fr/reference/ldap/functions/ldap-get-dn.xml:1.6 --- phpdoc-fr/reference/ldap/functions/ldap-get-dn.xml:1.5 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-get-dn.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.2 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.ldap-get-dn"> <refnamediv> <refname>ldap_get_dn</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-get-entries.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-get-entries.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-get-entries.xml:1.6 phpdoc-fr/reference/ldap/functions/ldap-get-entries.xml:1.7 --- phpdoc-fr/reference/ldap/functions/ldap-get-entries.xml:1.6 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-get-entries.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.2 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="function.ldap-get-entries"> <refnamediv> <refname>ldap_get_entries</refname> @@ -17,20 +16,20 @@ <para> <function>ldap_get_entries</function> retourne toutes les entrées du résulat <parameter>result_identifier</parameter>, sous la forme - d'un tableau multi-dimensionnel, ou &false; en casd d'erreur. + d'un tableau multi-dimensionnel, ou &false; en cas d'erreur. </para> <para> <function>ldap_get_entries</function> sert à simplifier la lecture des entrées dans un résultat, ainsi que celle des attributs - correspondants. La structure du tableau retourné la suivante : + correspondants. La structure du tableau retourné est la suivante : </para> <para> L'index d'attribut est converti en minuscules (les attributs sont sensibles à la casse pour les serveurs de dossiers, mais ne le sont pas lorsqu'ils sont utilisés comme index de tableaux. <example> - <title>Structure du tableau retourné par <function>ldap_get_entries</function></title> -<programlisting> + <title>Structure du tableau retourné par <function>ldap_get_entries</function></title> + <programlisting> <![CDATA[ return_value["count"] = nombre d'entrées dans le résultat return_value[0] : se réfère au détails de la première entrée @@ -43,10 +42,10 @@ return_value[n]["attribute"]["count"] = nombre de valeur des attributs de la i-ième entrée return_value[n]["attribute"][m] = m-ième valeur de la n-ième entrée ]]> -</programlisting> - </example></para> - - <para> + </programlisting> + </example> + </para> + <para> Voir aussi <function>ldap_first_entry</function> et <function>ldap_next_entry</function>. http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-get-option.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-get-option.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-get-option.xml:1.5 phpdoc-fr/reference/ldap/functions/ldap-get-option.xml:1.6 --- phpdoc-fr/reference/ldap/functions/ldap-get-option.xml:1.5 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-get-option.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.17 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.ldap-get-option"> <refnamediv> <refname>ldap_get_option</refname> @@ -19,7 +18,7 @@ <function>ldap_get_option</function> modifie la valeur de l'option <parameter>option</parameter> à la valeur <parameter>retval</parameter> pour la connexion <parameter>link_identifier</parameter>. - &return.success;. + &return.success; </para> <para> Le paramètre <parameter>option</parameter> peut prendre l'une des valeurs suivantes : @@ -41,16 +40,17 @@ <title>Vérification de la version du protocole avec <function>ldap_get_option</function></title> <programlisting role="php"> <![CDATA[ +<?php // $ds doit être une ressource de connexion valide if (ldap_get_option($ds, LDAP_OPT_PROTOCOL_VERSION, $version)) echo "Nous utilisons le protocole version $version"; else - echo "Impossible de déterminer la version du protocole."; + echo 'Impossible de déterminer la version du protocole.'; +?> ]]> </programlisting> </example> </para> - <para> Voir aussi <function>ldap_set_option</function>. http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-get-values-len.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-get-values-len.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-get-values-len.xml:1.5 phpdoc-fr/reference/ldap/functions/ldap-get-values-len.xml:1.6 --- phpdoc-fr/reference/ldap/functions/ldap-get-values-len.xml:1.5 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-get-values-len.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.2 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.ldap-get-values-len"> <refnamediv> <refname>ldap_get_values_len</refname> @@ -23,15 +22,15 @@ <para> <function>ldap_get_values_len</function> sert à lire toutes les valeurs de l'attribut <parameter>attribute</parameter> dans le résultat - <parameter>result_entry_identifier</parameter>. L'entré utilisée - et l'entrée courante du résultat de recherche LDAP + <parameter>result_entry_identifier</parameter>. L'entrée utilisée + est l'entrée courante du résultat de recherche LDAP <parameter>result_entry_identifier</parameter>. Le nombre de valeurs retournées est disponibles à l'index 'count' du tableau retourné. Les valeurs sont accessibles individuellement, avec les - index numérique du tableau. L'indexation commence à 0. + index numériques du tableau. L'indexation commence à 0. </para> <para> - Cette fonction d'utilise exactement comme + Cette fonction s'utilise exactement comme <function>ldap_get_values</function>, hormis le fait qu'elle gère les données binaires, et non pas les chaînes de caractères. </para> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-get-values.xml?r1=1.7&r2=1.8&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-get-values.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-get-values.xml:1.7 phpdoc-fr/reference/ldap/functions/ldap-get-values.xml:1.8 --- phpdoc-fr/reference/ldap/functions/ldap-get-values.xml:1.7 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-get-values.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.2 --> +<!-- $Revision: 1.8 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="function.ldap-get-values"> <refnamediv> <refname>ldap_get_values</refname> @@ -46,17 +45,18 @@ "mail" : <example> <title>Structure du tableau retourné par <function>ldap_get_values</function></title> - <programlisting> + <programlisting> return_value["count"] = nombre de valeur de l'attribut return_value[0] = première valeur de l'attribut return_value[i] = n-ième valeur de l'attribut -</programlisting> + </programlisting> </example> <example> <title>Liste toutes les valeurs de l'attribut "mail" d'une entrée</title> -<programlisting role="php"> + <programlisting role="php"> <![CDATA[ +<?php // $ds doit être une ressource de connexion valide // $sr doit être une ressource de résultat valide, obtenue avec une des fonctions de @@ -67,15 +67,16 @@ $values = ldap_get_values($ds, $entry,"mail"); -echo $values["count"]." adresses email pour cette entrée.<p>"; +echo $values["count"] . " adresses email pour cette entrée.<br />"; -for ($i=0; $i < $values["count"]; $i++) - echo $values[$i]."<br>"; +for ($i=0; $i < $values["count"]; $i++) { + echo $values[$i] . "<br />"; +} +?> ]]> -</programlisting> + </programlisting> </example> </para> - </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-list.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-list.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-list.xml:1.5 phpdoc-fr/reference/ldap/functions/ldap-list.xml:1.6 --- phpdoc-fr/reference/ldap/functions/ldap-list.xml:1.5 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-list.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.2 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="function.ldap-list"> <refnamediv> <refname>ldap_list</refname> @@ -21,7 +20,7 @@ <methodparam choice="opt"><type>int</type><parameter>deref</parameter></methodparam> </methodsynopsis> <para> - <function>ldap_list</function> retourne un identfiant de résultat + <function>ldap_list</function> retourne un identifiant de résultat ou bien &false; en cas d'erreur. </para> <para> @@ -57,16 +56,16 @@ <?php // $ds doit être une ressource de connexion valide - $basedn = "o=Ma Compagnie, c=FR"; - $justthese = array("ou"); +$basedn = "o=Ma Compagnie, c=FR"; +$justthese = array("ou"); - $sr=ldap_list($ds, $basedn, "ou=*", $justthese); +$sr=ldap_list($ds, $basedn, "ou=*", $justthese); - $info = ldap_get_entries($ds, $sr); +$info = ldap_get_entries($ds, $sr); - for ($i=0; $i<$info["count"]; $i++){ +for ($i=0; $i<$info["count"]; $i++){ echo $info[$i]["ou"][0] ; - } +} ?> ]]> </programlisting> @@ -74,7 +73,7 @@ </para> <note> <para> - Depuis PHP 4.0.5, il est aussi possible de faire des recherches paralleles. + Depuis PHP 4.0.5, il est aussi possible de faire des recherches parallèles. Reportez vous à <function>ldap_search</function> pour plus de détails. </para> </note> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-mod-add.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-mod-add.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-mod-add.xml:1.5 phpdoc-fr/reference/ldap/functions/ldap-mod-add.xml:1.6 --- phpdoc-fr/reference/ldap/functions/ldap-mod-add.xml:1.5 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-mod-add.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.12 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.ldap-mod-add"> <refnamediv> <refname>ldap_mod_add</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-mod-del.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-mod-del.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-mod-del.xml:1.5 phpdoc-fr/reference/ldap/functions/ldap-mod-del.xml:1.6 --- phpdoc-fr/reference/ldap/functions/ldap-mod-del.xml:1.5 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-mod-del.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.12 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.ldap-mod-del"> <refnamediv> <refname>ldap_mod_del</refname> @@ -16,7 +15,8 @@ <methodparam><type>array</type><parameter>entry</parameter></methodparam> </methodsynopsis> <para> - &return.success;</para> + &return.success; + </para> <para> <function>ldap_mod_del</function> efface l'attribut <parameter>entry</parameter> de l'entrée <parameter>dn</parameter>. http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-modify.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-modify.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-modify.xml:1.5 phpdoc-fr/reference/ldap/functions/ldap-modify.xml:1.6 --- phpdoc-fr/reference/ldap/functions/ldap-modify.xml:1.5 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-modify.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.2 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.ldap-modify"> <refnamediv> <refname>ldap_modify</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-mod-replace.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-mod-replace.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-mod-replace.xml:1.6 phpdoc-fr/reference/ldap/functions/ldap-mod-replace.xml:1.7 --- phpdoc-fr/reference/ldap/functions/ldap-mod-replace.xml:1.6 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-mod-replace.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.12 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="function.ldap-mod-replace"> <refnamediv> <refname>ldap_mod_replace</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-next-attribute.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-next-attribute.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-next-attribute.xml:1.6 phpdoc-fr/reference/ldap/functions/ldap-next-attribute.xml:1.7 --- phpdoc-fr/reference/ldap/functions/ldap-next-attribute.xml:1.6 Tue Feb 24 13:11:03 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-next-attribute.xml Mon May 3 07:59:55 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/ldap.xml, last change in rev 1.10 --> -<!-- last change to 'ldap-next-attribute' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.ldap-next-attribute"> <refnamediv> <refname>ldap_next_attribute</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-next-entry.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-next-entry.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-next-entry.xml:1.5 phpdoc-fr/reference/ldap/functions/ldap-next-entry.xml:1.6 --- phpdoc-fr/reference/ldap/functions/ldap-next-entry.xml:1.5 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-next-entry.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.2 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.ldap-next-entry"> <refnamediv> <refname>ldap_next_entry</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-next-reference.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-next-reference.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-next-reference.xml:1.4 phpdoc-fr/reference/ldap/functions/ldap-next-reference.xml:1.5 --- phpdoc-fr/reference/ldap/functions/ldap-next-reference.xml:1.4 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-next-reference.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.39 --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.ldap-next-reference"> <refnamediv> <refname>ldap_next_reference</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-parse-reference.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-parse-reference.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-parse-reference.xml:1.4 phpdoc-fr/reference/ldap/functions/ldap-parse-reference.xml:1.5 --- phpdoc-fr/reference/ldap/functions/ldap-parse-reference.xml:1.4 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-parse-reference.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.39 --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.ldap-parse-reference"> <refnamediv> <refname>ldap_parse_reference</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-parse-result.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-parse-result.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-parse-result.xml:1.4 phpdoc-fr/reference/ldap/functions/ldap-parse-result.xml:1.5 --- phpdoc-fr/reference/ldap/functions/ldap-parse-result.xml:1.4 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-parse-result.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.39 --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.ldap-parse-result"> <refnamediv> <refname>ldap_parse_result</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-read.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-read.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-read.xml:1.5 phpdoc-fr/reference/ldap/functions/ldap-read.xml:1.6 --- phpdoc-fr/reference/ldap/functions/ldap-read.xml:1.5 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-read.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.2 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.ldap-read"> <refnamediv> <refname>ldap_read</refname> @@ -52,7 +51,7 @@ </note> <para> Depuis PHP 4.0.5, il est aussi possible d'effectuer des recherches - paralelles. Voyez <function>ldap_search</function> poour plus + parallèles. Voyez <function>ldap_search</function> pour plus de détails. </para> </refsect1> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-rename.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-rename.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-rename.xml:1.5 phpdoc-fr/reference/ldap/functions/ldap-rename.xml:1.6 --- phpdoc-fr/reference/ldap/functions/ldap-rename.xml:1.5 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-rename.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.24 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.ldap-rename"> <refnamediv> <refname>ldap_rename</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-search.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-search.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-search.xml:1.6 phpdoc-fr/reference/ldap/functions/ldap-search.xml:1.7 --- phpdoc-fr/reference/ldap/functions/ldap-search.xml:1.6 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-search.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.17 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.7 Maintainer: yannick Status: ready --> <refentry id="function.ldap-search"> <refnamediv> <refname>ldap_search</refname> @@ -41,7 +40,7 @@ recommandé. </para> <para> - Le quatrième paramtère est un tableau de chaînes PHP avec + Le quatrième paramètre est un tableau de chaînes PHP avec les attributs demandé, comme par exemple : <literal>array("mail","sn","cn")</literal>. Notez que le <literal>"dn"</literal> est toujours retourné, indépendamment @@ -70,7 +69,7 @@ </para> <para> Le septième paramètre <parameter>timelimit</parameter> permet de spécifier - le nombre de secondes de duréee de la recherche. En utilisant la valeur + le nombre de secondes de durée de la recherche. En utilisant la valeur 0, la recherche pourra durée indéfiniment. NOTE : ce paramètre NE peut PAS remplacer la configuration du serveur. Vous pouvez au mieux baisser encore cette limite. @@ -127,7 +126,7 @@ recherche sur deux attributs. <example> <title>Recherche LDAP</title> -<programlisting role="php"> + <programlisting role="php"> <![CDATA[ <?php // $ds doit être une ressource de connexion valide @@ -142,11 +141,12 @@ $info = ldap_get_entries($ds, $sr); -print $info["count"]." entrées trouvées.<p>"; +echo $info["count"]." entrées trouvées.\n"; ?> ]]> -</programlisting> - </example></para> + </programlisting> + </example> + </para> <para> Depuis PHP 4.0.5, il est possible de faire des recherches paralelles. Pour cela, vous devez utiliser un tableau de ressources de connexion comme premier argument, @@ -161,7 +161,7 @@ &false;. C'est très proche du comportement habituel, hormis le fait qu'un résultat est toujours retourné lorsqu'une recherche est faite. Il y a de rares cas où une recherche retourne &false;, alors qu'une - recherche en paralelle retourne un identifiant. + recherche en parallèle retourne un identifiant. </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-set-option.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-set-option.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-set-option.xml:1.6 phpdoc-fr/reference/ldap/functions/ldap-set-option.xml:1.7 --- phpdoc-fr/reference/ldap/functions/ldap-set-option.xml:1.6 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-set-option.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.2 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.ldap-set-option"> <refnamediv> <refname>ldap_set_option</refname> @@ -56,33 +55,37 @@ </note> <para> <example> - <title>Set protocol version</title> -<programlisting role="php"> + <title>Modification de la version du protocole</title> + <programlisting role="php"> <![CDATA[ <?php // $ds doit être une ressource de connexion valide -if (ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3)) - echo "Version LDAPv3"; -else - echo "Impossible de modifier la version du protocole à 3"; +if (ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3)) { + echo 'Version LDAPv3'; +} else { + echo 'Impossible de modifier la version du protocole à 3'; +} ?> ]]> -</programlisting> + </programlisting> </example> <example> - <title>Set server controls</title> -<programlisting role="php"> + <title>Modification des contrôles du serveur</title> + <programlisting role="php"> <![CDATA[ +<?php // $ds doit être une ressource de connexion valide // controle sans valeur $ctrl1 = array("oid" => "1.2.752.58.10.1", "iscritical" => TRUE); // iscritical vaut par défaut FALSE $ctrl2 = array("oid" => "1.2.752.58.1.10", "value" => "magic"); // essayez d'utiliser les deux contrôles -if (!ldap_set_option($ds, LDAP_OPT_SERVER_CONTROLS, array($ctrl1, $ctrl2))) - echo "Impossible de modifier les contrôles du serveur"; +if (!ldap_set_option($ds, LDAP_OPT_SERVER_CONTROLS, array($ctrl1, $ctrl2))) { + echo 'Impossible de modifier les contrôles du serveur'; +} +?> ]]> -</programlisting> + </programlisting> </example> </para> <para> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-set-rebind-proc.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-set-rebind-proc.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-set-rebind-proc.xml:1.4 phpdoc-fr/reference/ldap/functions/ldap-set-rebind-proc.xml:1.5 --- phpdoc-fr/reference/ldap/functions/ldap-set-rebind-proc.xml:1.4 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-set-rebind-proc.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.39 --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.ldap-set-rebind-proc"> <refnamediv> <refname>ldap_set_rebind_proc</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-sort.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-sort.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-sort.xml:1.4 phpdoc-fr/reference/ldap/functions/ldap-sort.xml:1.5 --- phpdoc-fr/reference/ldap/functions/ldap-sort.xml:1.4 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-sort.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.39 --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.ldap-sort"> <refnamediv> <refname>ldap_sort</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-start-tls.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-start-tls.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-start-tls.xml:1.5 phpdoc-fr/reference/ldap/functions/ldap-start-tls.xml:1.6 --- phpdoc-fr/reference/ldap/functions/ldap-start-tls.xml:1.5 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-start-tls.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.39 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.ldap-start-tls"> <refnamediv> <refname>ldap_start_tls</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-t61-to-8859.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-t61-to-8859.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-t61-to-8859.xml:1.4 phpdoc-fr/reference/ldap/functions/ldap-t61-to-8859.xml:1.5 --- phpdoc-fr/reference/ldap/functions/ldap-t61-to-8859.xml:1.4 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-t61-to-8859.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.39 --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.ldap-t61-to-8859"> <refnamediv> <refname>ldap_t61_to_8859</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-unbind.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-unbind.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-unbind.xml:1.5 phpdoc-fr/reference/ldap/functions/ldap-unbind.xml:1.6 --- phpdoc-fr/reference/ldap/functions/ldap-unbind.xml:1.5 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-unbind.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.2 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.ldap-unbind"> <refnamediv> <refname>ldap_unbind</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/configure.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/ldap/configure.xml diff -u phpdoc-fr/reference/ldap/configure.xml:1.4 phpdoc-fr/reference/ldap/configure.xml:1.5 --- phpdoc-fr/reference/ldap/configure.xml:1.4 Wed Feb 25 08:42:12 2004 +++ phpdoc-fr/reference/ldap/configure.xml Mon May 3 07:59:55 2004 @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> <section id="ldap.installation"> &reftitle.install; <para> Le support LDAP de PHP n'est pas activé par défaut. Vous devez utiliser l'option de configuration - <option role="configure">--with-ldap</option> - lorsque vous compilez PHP. + <option role="configure">--with-ldap[=DIR]</option> + lorsque vous compilez PHP, où DIR est le répertoire d'installation du serveur LDAP. </para> <note> <title>Note aux utilisateurs Win32</title> @@ -16,6 +16,9 @@ devez copier les librairies <emphasis>libsasl.dll</emphasis> depuis le dossier DLL de PHP/Win32 dans le dossier système SYSTEM32 de votre machine (par exemple : C:\WINNT\SYSTEM32 or C:\WINDOWS\SYSTEM32). + Pour &php; <= 4.2.0, copiez <filename>libsasl.dll</filename>, pour &php; + >= 4.3.0, copiez <filename>libeay32.dll</filename> et <filename>ssleay32.dll</filename> + dans votre dossier système SYSTEM. </simpara> </note> </section> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/constants.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-fr/reference/ldap/constants.xml diff -u phpdoc-fr/reference/ldap/constants.xml:1.2 phpdoc-fr/reference/ldap/constants.xml:1.3 --- phpdoc-fr/reference/ldap/constants.xml:1.2 Wed Feb 25 07:37:25 2004 +++ phpdoc-fr/reference/ldap/constants.xml Mon May 3 07:59:55 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <section id="ldap.constants"> &reftitle.constants; &extension.constants; @@ -8,7 +8,7 @@ <varlistentry> <term> <constant>LDAP_DEREF_NEVER</constant> - (<link linkend="language.types.integer">entier</link>) + (&integer;) </term> <listitem> <simpara> @@ -19,7 +19,7 @@ <varlistentry> <term> <constant>LDAP_DEREF_SEARCHING</constant> - (<link linkend="language.types.integer">entier</link>) + (&integer;) </term> <listitem> <simpara> @@ -30,7 +30,7 @@ <varlistentry> <term> <constant>LDAP_DEREF_FINDING</constant> - (<link linkend="language.types.integer">entier</link>) + (&integer;) </term> <listitem> <simpara> @@ -41,7 +41,7 @@ <varlistentry> <term> <constant>LDAP_DEREF_ALWAYS</constant> - (<link linkend="language.types.integer">entier</link>) + (&integer;) </term> <listitem> <simpara> @@ -52,7 +52,7 @@ <varlistentry> <term> <constant>LDAP_OPT_DEREF</constant> - (<link linkend="language.types.integer">entier</link>) + (&integer;) </term> <listitem> <simpara> @@ -63,7 +63,7 @@ <varlistentry> <term> <constant>LDAP_OPT_SIZELIMIT</constant> - (<link linkend="language.types.integer">entier</link>) + (&integer;) </term> <listitem> <simpara> @@ -74,7 +74,7 @@ <varlistentry> <term> <constant>LDAP_OPT_TIMELIMIT</constant> - (<link linkend="language.types.integer">entier</link>) + (&integer;) </term> <listitem> <simpara> @@ -85,7 +85,7 @@ <varlistentry> <term> <constant>LDAP_OPT_PROTOCOL_VERSION</constant> - (<link linkend="language.types.integer">entier</link>) + (&integer;) </term> <listitem> <simpara> @@ -96,7 +96,7 @@ <varlistentry> <term> <constant>LDAP_OPT_ERROR_NUMBER</constant> - (<link linkend="language.types.integer">entier</link>) + (&integer;) </term> <listitem> <simpara> @@ -107,7 +107,7 @@ <varlistentry> <term> <constant>LDAP_OPT_REFERRALS</constant> - (<link linkend="language.types.integer">entier</link>) + (&integer;) </term> <listitem> <simpara> @@ -118,7 +118,7 @@ <varlistentry> <term> <constant>LDAP_OPT_RESTART</constant> - (<link linkend="language.types.integer">entier</link>) + (&integer;) </term> <listitem> <simpara> @@ -129,7 +129,7 @@ <varlistentry> <term> <constant>LDAP_OPT_HOST_NAME</constant> - (<link linkend="language.types.integer">entier</link>) + (&integer;) </term> <listitem> <simpara> @@ -140,7 +140,7 @@ <varlistentry> <term> <constant>LDAP_OPT_ERROR_STRING</constant> - (<link linkend="language.types.integer">entier</link>) + (&integer;) </term> <listitem> <simpara> @@ -151,7 +151,7 @@ <varlistentry> <term> <constant>LDAP_OPT_MATCHED_DN</constant> - (<link linkend="language.types.integer">entier</link>) + (&integer;) </term> <listitem> <simpara> @@ -162,7 +162,7 @@ <varlistentry> <term> <constant>LDAP_OPT_SERVER_CONTROLS</constant> - (<link linkend="language.types.integer">entier</link>) + (&integer;) </term> <listitem> <simpara> @@ -173,7 +173,7 @@ <varlistentry> <term> <constant>LDAP_OPT_CLIENT_CONTROLS</constant> - (<link linkend="language.types.integer">entier</link>) + (&integer;) </term> <listitem> <simpara> @@ -184,7 +184,7 @@ <varlistentry> <term> <constant>LDAP_OPT_DEBUG_LEVEL</constant> - (<link linkend="language.types.integer">entier</link>) + (&integer;) </term> <listitem> <simpara> @@ -195,7 +195,7 @@ <varlistentry> <term> <constant>GSLC_SSL_NO_AUTH</constant> - (<link linkend="language.types.integer">entier</link>) + (&integer;) </term> <listitem> <simpara> @@ -206,7 +206,7 @@ <varlistentry> <term> <constant>GSLC_SSL_ONEWAY_AUTH</constant> - (<link linkend="language.types.integer">entier</link>) + (&integer;) </term> <listitem> <simpara> @@ -217,7 +217,7 @@ <varlistentry> <term> <constant>GSLC_SSL_TWOWAY_AUTH</constant> - (<link linkend="language.types.integer">entier</link>) + (&integer;) </term> <listitem> <simpara> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/ini.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-fr/reference/ldap/ini.xml diff -u phpdoc-fr/reference/ldap/ini.xml:1.3 phpdoc-fr/reference/ldap/ini.xml:1.4 --- phpdoc-fr/reference/ldap/ini.xml:1.3 Wed Feb 25 07:37:25 2004 +++ phpdoc-fr/reference/ldap/ini.xml Mon May 3 07:59:55 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <section id="ldap.configuration"> &reftitle.runtime; &extension.runtime; http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/reference.xml?r1=1.9&r2=1.10&ty=u Index: phpdoc-fr/reference/ldap/reference.xml diff -u phpdoc-fr/reference/ldap/reference.xml:1.9 phpdoc-fr/reference/ldap/reference.xml:1.10 --- phpdoc-fr/reference/ldap/reference.xml:1.9 Tue Apr 20 16:54:40 2004 +++ phpdoc-fr/reference/ldap/reference.xml Mon May 3 07:59:55 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.10 $ --> +<!-- EN-Revision: 1.11 Maintainer: yannick Status: ready --> <reference id="ref.ldap"> <title>LDAP</title> <titleabbrev>LDAP</titleabbrev> @@ -144,29 +144,29 @@ echo "<h3>requête de test de LDAP</h3>"; echo "Connexion ..."; $ds=ldap_connect("localhost"); // doit être un serveur LDAP valide! -echo "Le résultat de connexion est ".$ds."<p>"; +echo "Le résultat de connexion est ".$ds."<br />"; if ($ds) { echo "Liaison ..."; $r=ldap_bind($ds); // connexion anonyme, typique // pour un accès en lecture seule. - echo "Le résultat de connexion est ".$r."<p>"; + echo "Le résultat de connexion est ".$r."<br />"; echo "Recherchons (sn=S*) ..."; // Recherche par nom $sr=ldap_search($ds,"o=My Company, c=US", "sn=S*"); - echo "Le résultat de la recherche est ".$sr."<p>"; + echo "Le résultat de la recherche est ".$sr."<br />"; - echo "Le nombre d'entrées retournées est ".ldap_count_entries($ds,$sr)."<p>"; + echo "Le nombre d'entrées retournées est ".ldap_count_entries($ds,$sr)."<br />"; - echo "Lecture des entrées ...<p>"; + echo "Lecture des entrées ...<br />"; $info = ldap_get_entries($ds, $sr); - echo "Données pour ".$info["count"]." entrées:<p>"; + echo "Données pour ".$info["count"]." entrées:<br />"; for ($i=0; $i<$info["count"]; $i++) { echo "dn est : ". $info[$i]["dn"] ."<br>"; - echo "premiere entree cn : ". $info[$i]["cn"][0] ."<br>"; - echo "premier email : ". $info[$i]["mail"][0] ."<p>"; + echo "premiere entree cn : ". $info[$i]["cn"][0] ."<br />"; + echo "premier email : ". $info[$i]["mail"][0] ."<br />"; } echo "Fermeture de la connexion";
http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-8859-to-t61.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-8859-to-t61.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-8859-to-t61.xml:1.4 phpdoc-fr/reference/ldap/functions/ldap-8859-to-t61.xml:1.5 --- phpdoc-fr/reference/ldap/functions/ldap-8859-to-t61.xml:1.4 Wed Feb 25 07:37:25 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-8859-to-t61.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.39 --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.ldap-8859-to-t61"> <refnamediv> <refname>ldap_8859_to_t61</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-add.xml?r1=1.11&r2=1.12&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-add.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-add.xml:1.11 phpdoc-fr/reference/ldap/functions/ldap-add.xml:1.12 --- phpdoc-fr/reference/ldap/functions/ldap-add.xml:1.11 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-add.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.11 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.2 --> +<!-- $Revision: 1.12 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.ldap-add"> <refnamediv> <refname>ldap_add</refname> @@ -15,23 +14,26 @@ <methodparam><type>string</type><parameter>dn</parameter></methodparam> <methodparam><type>array</type><parameter>entry</parameter></methodparam> </methodsynopsis> + <para> + &return.success; + </para> <para> <function>ldap_add</function> sert à ajouter une entrée dans un dossier LDAP. <parameter>dn</parameter> est l'identification complète de l'entrée qui sera ajoutée, et <parameter>entry</parameter> est un tableau avec les informations sur la nouvelle entrée. - &return.success; Ces valeurs sont indexées individuellement. En + Ces valeurs sont indexées individuellement. En cas de valeurs multiples pour un attribut, elle sont indexées numériquement, à partir de 0. </para> <example> <title>Exemple de tableau pour ajouter une entrée LDAP</title> - <programlisting> + <programlisting role="php"> <![CDATA[ <?php - $entree["attribut1"] = "valeur"; - $entree["attribut2"][0] = "valeur1"; - $entree["attribut2"][1] = "valeur2"; +$entree["attribut1"] = "valeur"; +$entree["attribut2"][0] = "valeur1"; +$entree["attribut2"][1] = "valeur2"; ?> ]]> </programlisting> @@ -45,20 +47,20 @@ if ($ds) { // Connexion avec une identitée qui permet les modifications - $r=ldap_bind($ds,"cn=root, o=Ma Compagnie, c=FR", "secret"); + $r=ldap_bind($ds, "cn=root, o=Ma Compagnie, c=FR", "secret"); // prepare les données - $info["cn"]="Jean Dupont"; - $info["sn"]="Jean"; - $info["mail"]="jeand@serveur.mail.com"; - $info["objectclass"]="personne"; + $info["cn"]='Jean Dupont'; + $info["sn"]='Jean'; + $info["mail"]='jeand@serveur.mail.com'; + $info["objectclass"]='personne'; // Ajoute les données au dossier $r=ldap_add($ds, "cn=Jean Dupont, o=Ma Compagnie, c=FR", $info); ldap_close($ds); } else { - echo "Impossible de se connecter au serveur LDAP"; + echo 'Impossible de se connecter au serveur LDAP'; } ?> ]]> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-bind.xml?r1=1.7&r2=1.8&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-bind.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-bind.xml:1.7 phpdoc-fr/reference/ldap/functions/ldap-bind.xml:1.8 --- phpdoc-fr/reference/ldap/functions/ldap-bind.xml:1.7 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-bind.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.2 --> +<!-- $Revision: 1.8 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="function.ldap-bind"> <refnamediv> <refname>ldap_bind</refname> @@ -25,7 +24,7 @@ <function>ldap_bind</function> effecute une opération de bind avec le serveur. <parameter>bind_rdn</parameter> et <parameter>bind_password</parameter> sont optionnels. S'ils - sont omis, une tentative de connexion anonyme est tentée. + sont omis, une connexion anonyme est tentée. </para> <example> <title>Identification avec LDAP</title> @@ -43,7 +42,7 @@ if ($ldapconn) { - //Connexion au serveur LDAP + //Connexion au serveur LDAP $ldapbind = ldap_bind($ldapconn, $ldaprdn, $ldappass); // Identification @@ -77,9 +76,9 @@ $ldapbind = ldap_bind($ldapconn); if ($ldapbind) { - echo "Connexion LDAP anonmye réussie"; + echo 'Connexion LDAP anonmye réussie'; } else { - echo "Connexion LDAP anonmye échouée"; + echo 'Connexion LDAP anonmye échouée'; } } http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-close.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-close.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-close.xml:1.5 phpdoc-fr/reference/ldap/functions/ldap-close.xml:1.6 --- phpdoc-fr/reference/ldap/functions/ldap-close.xml:1.5 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-close.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.2 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.ldap-close"> <refnamediv> <refname>ldap_close</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-compare.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-compare.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-compare.xml:1.5 phpdoc-fr/reference/ldap/functions/ldap-compare.xml:1.6 --- phpdoc-fr/reference/ldap/functions/ldap-compare.xml:1.5 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-compare.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.12 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.3 Maintainer: nobody Status: partial --> <refentry id="function.ldap-compare"> <refnamediv> <refname>ldap_compare</refname> @@ -41,7 +40,7 @@ if ($ds) { // identification - if(ldap_bind($ds)) { + if (ldap_bind($ds)) { // preparation des données $dn = "cn=Matti Meikku, ou=Mon Service, o=Ma Compagnie, c=FR"; http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-connect.xml?r1=1.8&r2=1.9&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-connect.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-connect.xml:1.8 phpdoc-fr/reference/ldap/functions/ldap-connect.xml:1.9 --- phpdoc-fr/reference/ldap/functions/ldap-connect.xml:1.8 Tue Feb 24 13:11:03 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-connect.xml Mon May 3 07:59:55 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/ldap.xml, last change in rev 1.10 --> -<!-- last change to 'ldap-connect' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.9 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.ldap-connect"> <refnamediv> <refname>ldap_connect</refname> @@ -21,8 +18,8 @@ LDAP en cas de succès, ou bien &false; en cas d'erreur. </para> <para> - <function>ldap_connect</function> établit une connexion avec un serveur. - Le serveur LDAP situé sur l'hôte <parameter>hostname</parameter> et + <function>ldap_connect</function> établit une connexion avec un serveur + LDAP situé sur l'hôte <parameter>hostname</parameter> et <parameter>port</parameter>. Les deux arguments sont optionnels. Sans argument, l'identifiant de la dernière connexion ouverte sera retournée. Si seul <parameter>hostname</parameter> est spécifié, le port par http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-count-entries.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-count-entries.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-count-entries.xml:1.5 phpdoc-fr/reference/ldap/functions/ldap-count-entries.xml:1.6 --- phpdoc-fr/reference/ldap/functions/ldap-count-entries.xml:1.5 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-count-entries.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.2 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.ldap-count-entries"> <refnamediv> <refname>ldap_count_entries</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-delete.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-delete.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-delete.xml:1.5 phpdoc-fr/reference/ldap/functions/ldap-delete.xml:1.6 --- phpdoc-fr/reference/ldap/functions/ldap-delete.xml:1.5 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-delete.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.2 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.ldap-delete"> <refnamediv> <refname>ldap_delete</refname> @@ -15,7 +14,8 @@ <methodparam><type>string</type><parameter>dn</parameter></methodparam> </methodsynopsis> <para> - &return.success;</para> + &return.success; + </para> <para> <function>ldap_delete</function> efface l'entrée identifiée par son <parameter>dn</parameter> sur le serveur identifié http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-dn2ufn.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-dn2ufn.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-dn2ufn.xml:1.5 phpdoc-fr/reference/ldap/functions/ldap-dn2ufn.xml:1.6 --- phpdoc-fr/reference/ldap/functions/ldap-dn2ufn.xml:1.5 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-dn2ufn.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.2 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.ldap-dn2ufn"> <refnamediv> <refname>ldap_dn2ufn</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-err2str.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-err2str.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-err2str.xml:1.5 phpdoc-fr/reference/ldap/functions/ldap-err2str.xml:1.6 --- phpdoc-fr/reference/ldap/functions/ldap-err2str.xml:1.5 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-err2str.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.12 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="function.ldap-err2str"> <refnamediv> <refname>ldap_err2str</refname> @@ -16,7 +15,7 @@ <methodparam><type>int</type><parameter>errno</parameter></methodparam> </methodsynopsis> <para> - <function>ldap_err2str</function> retourne un message d'erreur + <function>ldap_err2str</function> retourne un message d'erreur. </para> <para> <function>ldap_err2str</function> retourne le message lisible expliquant @@ -32,9 +31,9 @@ <programlisting role="php"> <![CDATA[ <?php - for($i=0; $i<100; $i++) { +for($i=0; $i<100; $i++) { printf("Erreur numéro $i : %s<br>\n", ldap_err2str($i)); - } +} ?> ]]> </programlisting> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-errno.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-errno.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-errno.xml:1.6 phpdoc-fr/reference/ldap/functions/ldap-errno.xml:1.7 --- phpdoc-fr/reference/ldap/functions/ldap-errno.xml:1.6 Tue Feb 24 13:11:03 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-errno.xml Mon May 3 07:59:55 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/ldap.xml, last change in rev 1.4 --> -<!-- last change to 'ldap-errno' in en/ tree in rev 1.12 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="function.ldap-errno"> <refnamediv> <refname>ldap_errno</refname> @@ -24,7 +21,7 @@ </para> <para> <function>ldap_errno</function> retourne le numéro d'erreur - standard, généré par la dernière commande + standart, généré par la dernière commande LDAP, pour la connexion <parameter>link_identifier</parameter>. Ce numéro peut être converti en message textuel avec <function>ldap_err2str</function>. @@ -32,7 +29,7 @@ <para> A moins que vous n'abaissiez suffisamment le niveau d'erreur dans &php.ini; (ou <filename>php3.ini</filename>), ou que - vous ne préfixiez vos commandes LDAP avec <literal>@</literal> + vous ne préfixiez vos commandes LDAP avec <literal>@</literal> (at) pour supprimer les affichages, les erreurs LDAP s'afficheront aussi dans le code PHP. <example> @@ -47,12 +44,12 @@ // must be "objectclass=*" to work. $res = @ldap_search($ld, "o=Myorg, c=DE", "objectclass"); if (!$res) { - printf("LDAP-Errno: %s<br>\n", ldap_errno($ld)); - printf("LDAP-Error: %s<br>\n", ldap_error($ld)); - die("Argh!<br>\n"); + echo "LDAP-Errno: " . ldap_errno($ld) . "<br />\n"; + echo "LDAP-Error: " . ldap_error($ld) . "<br />\n"; + die("Argh!<br />\n"); } $info = ldap_get_entries($ld, $res); -printf("%d entrees trouvées.<br>\n", $info["count"]); +echo $info["count"] . " matching entries.<br />\n"; ?> ]]> </programlisting> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-error.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-error.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-error.xml:1.6 phpdoc-fr/reference/ldap/functions/ldap-error.xml:1.7 --- phpdoc-fr/reference/ldap/functions/ldap-error.xml:1.6 Tue Feb 24 13:11:03 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-error.xml Mon May 3 07:59:55 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/ldap.xml, last change in rev 1.4 --> -<!-- last change to 'ldap-error' in en/ tree in rev 1.12 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.ldap-error"> <refnamediv> <refname>ldap_error</refname> @@ -31,7 +28,7 @@ <para> A moins que vous n'abaissiez suffisamment le niveau d'erreur dans &php.ini; (ou <filename>php3.ini</filename>), ou que vous ne - préfixiez vos commandes LDAP avec <literal>@</literal> pour supprimer + préfixiez vos commandes LDAP avec <literal>@</literal> pour supprimer les affichages, les erreurs LDAP s'afficheront aussi dans le code PHP. </para> <para> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-explode-dn.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-explode-dn.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-explode-dn.xml:1.5 phpdoc-fr/reference/ldap/functions/ldap-explode-dn.xml:1.6 --- phpdoc-fr/reference/ldap/functions/ldap-explode-dn.xml:1.5 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-explode-dn.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.2 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.ldap-explode-dn"> <refnamediv> <refname>ldap_explode_dn</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-first-attribute.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-first-attribute.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-first-attribute.xml:1.6 phpdoc-fr/reference/ldap/functions/ldap-first-attribute.xml:1.7 --- phpdoc-fr/reference/ldap/functions/ldap-first-attribute.xml:1.6 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-first-attribute.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.2 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.ldap-first-attribute"> <refnamediv> <refname>ldap_first_attribute</refname> @@ -21,8 +20,8 @@ <parameter>link_identifier</parameter>, ou &false; en cas d'erreur. </para> <para> - Similairement à la lecture des entrées, les attributs sont lis - les uns après les auters, pour une entrée. + Similairement à la lecture des entrées, les attributs sont lus + les uns après les autres, pour une entrée. <function>ldap_first_attribute</function> retourne le premier attribut de l'entrée représentée par <parameter>result_entry_identifier</parameter>. http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-first-entry.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-first-entry.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-first-entry.xml:1.5 phpdoc-fr/reference/ldap/functions/ldap-first-entry.xml:1.6 --- phpdoc-fr/reference/ldap/functions/ldap-first-entry.xml:1.5 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-first-entry.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.2 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="function.ldap-first-entry"> <refnamediv> <refname>ldap_first_entry</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-first-reference.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-first-reference.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-first-reference.xml:1.4 phpdoc-fr/reference/ldap/functions/ldap-first-reference.xml:1.5 --- phpdoc-fr/reference/ldap/functions/ldap-first-reference.xml:1.4 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-first-reference.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.39 --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.ldap-first-reference"> <refnamediv> <refname>ldap_first_reference</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-free-result.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-free-result.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-free-result.xml:1.6 phpdoc-fr/reference/ldap/functions/ldap-free-result.xml:1.7 --- phpdoc-fr/reference/ldap/functions/ldap-free-result.xml:1.6 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-free-result.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.2 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.ldap-free-result"> <refnamediv> <refname>ldap_free_result</refname> @@ -14,7 +13,8 @@ <methodparam><type>resource</type><parameter>result_identifier</parameter></methodparam> </methodsynopsis> <para> - &return.success;</para> + &return.success; + </para> <para> <function>ldap_free_result</function> libère toute la mémoire allouée en interne pour stocker le résultat <parameter>result_identifier</parameter>. http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-get-attributes.xml?r1=1.7&r2=1.8&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-get-attributes.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-get-attributes.xml:1.7 phpdoc-fr/reference/ldap/functions/ldap-get-attributes.xml:1.8 --- phpdoc-fr/reference/ldap/functions/ldap-get-attributes.xml:1.7 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-get-attributes.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.2 --> +<!-- $Revision: 1.8 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="function.ldap-get-attributes"> <refnamediv> <refname>ldap_get_attributes</refname> @@ -65,10 +64,11 @@ $attrs = ldap_get_attributes($ds, $entry); -echo $attrs["count"]." attributs dans cette entrée :<p>"; +echo $attrs["count"] . " attributs dans cette entrée :<p>"; -for ($i=0; $i<$attrs["count"]; $i++) - echo $attrs[$i]."<br>"; +for ($i=0; $i<$attrs["count"]; $i++) { + echo $attrs[$i]."<br />"; +} ?> ]]> </programlisting> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-get-dn.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-get-dn.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-get-dn.xml:1.5 phpdoc-fr/reference/ldap/functions/ldap-get-dn.xml:1.6 --- phpdoc-fr/reference/ldap/functions/ldap-get-dn.xml:1.5 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-get-dn.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.2 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.ldap-get-dn"> <refnamediv> <refname>ldap_get_dn</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-get-entries.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-get-entries.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-get-entries.xml:1.6 phpdoc-fr/reference/ldap/functions/ldap-get-entries.xml:1.7 --- phpdoc-fr/reference/ldap/functions/ldap-get-entries.xml:1.6 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-get-entries.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.2 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="function.ldap-get-entries"> <refnamediv> <refname>ldap_get_entries</refname> @@ -17,20 +16,20 @@ <para> <function>ldap_get_entries</function> retourne toutes les entrées du résulat <parameter>result_identifier</parameter>, sous la forme - d'un tableau multi-dimensionnel, ou &false; en casd d'erreur. + d'un tableau multi-dimensionnel, ou &false; en cas d'erreur. </para> <para> <function>ldap_get_entries</function> sert à simplifier la lecture des entrées dans un résultat, ainsi que celle des attributs - correspondants. La structure du tableau retourné la suivante : + correspondants. La structure du tableau retourné est la suivante : </para> <para> L'index d'attribut est converti en minuscules (les attributs sont sensibles à la casse pour les serveurs de dossiers, mais ne le sont pas lorsqu'ils sont utilisés comme index de tableaux. <example> - <title>Structure du tableau retourné par <function>ldap_get_entries</function></title> -<programlisting> + <title>Structure du tableau retourné par <function>ldap_get_entries</function></title> + <programlisting> <![CDATA[ return_value["count"] = nombre d'entrées dans le résultat return_value[0] : se réfère au détails de la première entrée @@ -43,10 +42,10 @@ return_value[n]["attribute"]["count"] = nombre de valeur des attributs de la i-ième entrée return_value[n]["attribute"][m] = m-ième valeur de la n-ième entrée ]]> -</programlisting> - </example></para> - - <para> + </programlisting> + </example> + </para> + <para> Voir aussi <function>ldap_first_entry</function> et <function>ldap_next_entry</function>. http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-get-option.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-get-option.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-get-option.xml:1.5 phpdoc-fr/reference/ldap/functions/ldap-get-option.xml:1.6 --- phpdoc-fr/reference/ldap/functions/ldap-get-option.xml:1.5 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-get-option.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.17 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.ldap-get-option"> <refnamediv> <refname>ldap_get_option</refname> @@ -19,7 +18,7 @@ <function>ldap_get_option</function> modifie la valeur de l'option <parameter>option</parameter> à la valeur <parameter>retval</parameter> pour la connexion <parameter>link_identifier</parameter>. - &return.success;. + &return.success; </para> <para> Le paramètre <parameter>option</parameter> peut prendre l'une des valeurs suivantes : @@ -41,16 +40,17 @@ <title>Vérification de la version du protocole avec <function>ldap_get_option</function></title> <programlisting role="php"> <![CDATA[ +<?php // $ds doit être une ressource de connexion valide if (ldap_get_option($ds, LDAP_OPT_PROTOCOL_VERSION, $version)) echo "Nous utilisons le protocole version $version"; else - echo "Impossible de déterminer la version du protocole."; + echo 'Impossible de déterminer la version du protocole.'; +?> ]]> </programlisting> </example> </para> - <para> Voir aussi <function>ldap_set_option</function>. http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-get-values-len.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-get-values-len.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-get-values-len.xml:1.5 phpdoc-fr/reference/ldap/functions/ldap-get-values-len.xml:1.6 --- phpdoc-fr/reference/ldap/functions/ldap-get-values-len.xml:1.5 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-get-values-len.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.2 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.ldap-get-values-len"> <refnamediv> <refname>ldap_get_values_len</refname> @@ -23,15 +22,15 @@ <para> <function>ldap_get_values_len</function> sert à lire toutes les valeurs de l'attribut <parameter>attribute</parameter> dans le résultat - <parameter>result_entry_identifier</parameter>. L'entré utilisée - et l'entrée courante du résultat de recherche LDAP + <parameter>result_entry_identifier</parameter>. L'entrée utilisée + est l'entrée courante du résultat de recherche LDAP <parameter>result_entry_identifier</parameter>. Le nombre de valeurs retournées est disponibles à l'index 'count' du tableau retourné. Les valeurs sont accessibles individuellement, avec les - index numérique du tableau. L'indexation commence à 0. + index numériques du tableau. L'indexation commence à 0. </para> <para> - Cette fonction d'utilise exactement comme + Cette fonction s'utilise exactement comme <function>ldap_get_values</function>, hormis le fait qu'elle gère les données binaires, et non pas les chaînes de caractères. </para> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-get-values.xml?r1=1.7&r2=1.8&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-get-values.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-get-values.xml:1.7 phpdoc-fr/reference/ldap/functions/ldap-get-values.xml:1.8 --- phpdoc-fr/reference/ldap/functions/ldap-get-values.xml:1.7 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-get-values.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.2 --> +<!-- $Revision: 1.8 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <refentry id="function.ldap-get-values"> <refnamediv> <refname>ldap_get_values</refname> @@ -46,17 +45,18 @@ "mail" : <example> <title>Structure du tableau retourné par <function>ldap_get_values</function></title> - <programlisting> + <programlisting> return_value["count"] = nombre de valeur de l'attribut return_value[0] = première valeur de l'attribut return_value[i] = n-ième valeur de l'attribut -</programlisting> + </programlisting> </example> <example> <title>Liste toutes les valeurs de l'attribut "mail" d'une entrée</title> -<programlisting role="php"> + <programlisting role="php"> <![CDATA[ +<?php // $ds doit être une ressource de connexion valide // $sr doit être une ressource de résultat valide, obtenue avec une des fonctions de @@ -67,15 +67,16 @@ $values = ldap_get_values($ds, $entry,"mail"); -echo $values["count"]." adresses email pour cette entrée.<p>"; +echo $values["count"] . " adresses email pour cette entrée.<br />"; -for ($i=0; $i < $values["count"]; $i++) - echo $values[$i]."<br>"; +for ($i=0; $i < $values["count"]; $i++) { + echo $values[$i] . "<br />"; +} +?> ]]> -</programlisting> + </programlisting> </example> </para> - </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-list.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-list.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-list.xml:1.5 phpdoc-fr/reference/ldap/functions/ldap-list.xml:1.6 --- phpdoc-fr/reference/ldap/functions/ldap-list.xml:1.5 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-list.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.2 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="function.ldap-list"> <refnamediv> <refname>ldap_list</refname> @@ -21,7 +20,7 @@ <methodparam choice="opt"><type>int</type><parameter>deref</parameter></methodparam> </methodsynopsis> <para> - <function>ldap_list</function> retourne un identfiant de résultat + <function>ldap_list</function> retourne un identifiant de résultat ou bien &false; en cas d'erreur. </para> <para> @@ -57,16 +56,16 @@ <?php // $ds doit être une ressource de connexion valide - $basedn = "o=Ma Compagnie, c=FR"; - $justthese = array("ou"); +$basedn = "o=Ma Compagnie, c=FR"; +$justthese = array("ou"); - $sr=ldap_list($ds, $basedn, "ou=*", $justthese); +$sr=ldap_list($ds, $basedn, "ou=*", $justthese); - $info = ldap_get_entries($ds, $sr); +$info = ldap_get_entries($ds, $sr); - for ($i=0; $i<$info["count"]; $i++){ +for ($i=0; $i<$info["count"]; $i++){ echo $info[$i]["ou"][0] ; - } +} ?> ]]> </programlisting> @@ -74,7 +73,7 @@ </para> <note> <para> - Depuis PHP 4.0.5, il est aussi possible de faire des recherches paralleles. + Depuis PHP 4.0.5, il est aussi possible de faire des recherches parallèles. Reportez vous à <function>ldap_search</function> pour plus de détails. </para> </note> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-mod-add.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-mod-add.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-mod-add.xml:1.5 phpdoc-fr/reference/ldap/functions/ldap-mod-add.xml:1.6 --- phpdoc-fr/reference/ldap/functions/ldap-mod-add.xml:1.5 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-mod-add.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.12 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.ldap-mod-add"> <refnamediv> <refname>ldap_mod_add</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-mod-del.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-mod-del.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-mod-del.xml:1.5 phpdoc-fr/reference/ldap/functions/ldap-mod-del.xml:1.6 --- phpdoc-fr/reference/ldap/functions/ldap-mod-del.xml:1.5 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-mod-del.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.12 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.ldap-mod-del"> <refnamediv> <refname>ldap_mod_del</refname> @@ -16,7 +15,8 @@ <methodparam><type>array</type><parameter>entry</parameter></methodparam> </methodsynopsis> <para> - &return.success;</para> + &return.success; + </para> <para> <function>ldap_mod_del</function> efface l'attribut <parameter>entry</parameter> de l'entrée <parameter>dn</parameter>. http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-modify.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-modify.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-modify.xml:1.5 phpdoc-fr/reference/ldap/functions/ldap-modify.xml:1.6 --- phpdoc-fr/reference/ldap/functions/ldap-modify.xml:1.5 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-modify.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.2 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.ldap-modify"> <refnamediv> <refname>ldap_modify</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-mod-replace.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-mod-replace.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-mod-replace.xml:1.6 phpdoc-fr/reference/ldap/functions/ldap-mod-replace.xml:1.7 --- phpdoc-fr/reference/ldap/functions/ldap-mod-replace.xml:1.6 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-mod-replace.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.12 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="function.ldap-mod-replace"> <refnamediv> <refname>ldap_mod_replace</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-next-attribute.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-next-attribute.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-next-attribute.xml:1.6 phpdoc-fr/reference/ldap/functions/ldap-next-attribute.xml:1.7 --- phpdoc-fr/reference/ldap/functions/ldap-next-attribute.xml:1.6 Tue Feb 24 13:11:03 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-next-attribute.xml Mon May 3 07:59:55 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/ldap.xml, last change in rev 1.10 --> -<!-- last change to 'ldap-next-attribute' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.ldap-next-attribute"> <refnamediv> <refname>ldap_next_attribute</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-next-entry.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-next-entry.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-next-entry.xml:1.5 phpdoc-fr/reference/ldap/functions/ldap-next-entry.xml:1.6 --- phpdoc-fr/reference/ldap/functions/ldap-next-entry.xml:1.5 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-next-entry.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.2 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.ldap-next-entry"> <refnamediv> <refname>ldap_next_entry</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-next-reference.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-next-reference.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-next-reference.xml:1.4 phpdoc-fr/reference/ldap/functions/ldap-next-reference.xml:1.5 --- phpdoc-fr/reference/ldap/functions/ldap-next-reference.xml:1.4 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-next-reference.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.39 --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.ldap-next-reference"> <refnamediv> <refname>ldap_next_reference</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-parse-reference.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-parse-reference.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-parse-reference.xml:1.4 phpdoc-fr/reference/ldap/functions/ldap-parse-reference.xml:1.5 --- phpdoc-fr/reference/ldap/functions/ldap-parse-reference.xml:1.4 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-parse-reference.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.39 --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.ldap-parse-reference"> <refnamediv> <refname>ldap_parse_reference</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-parse-result.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-parse-result.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-parse-result.xml:1.4 phpdoc-fr/reference/ldap/functions/ldap-parse-result.xml:1.5 --- phpdoc-fr/reference/ldap/functions/ldap-parse-result.xml:1.4 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-parse-result.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.39 --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.ldap-parse-result"> <refnamediv> <refname>ldap_parse_result</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-read.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-read.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-read.xml:1.5 phpdoc-fr/reference/ldap/functions/ldap-read.xml:1.6 --- phpdoc-fr/reference/ldap/functions/ldap-read.xml:1.5 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-read.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.2 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.ldap-read"> <refnamediv> <refname>ldap_read</refname> @@ -52,7 +51,7 @@ </note> <para> Depuis PHP 4.0.5, il est aussi possible d'effectuer des recherches - paralelles. Voyez <function>ldap_search</function> poour plus + parallèles. Voyez <function>ldap_search</function> pour plus de détails. </para> </refsect1> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-rename.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-rename.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-rename.xml:1.5 phpdoc-fr/reference/ldap/functions/ldap-rename.xml:1.6 --- phpdoc-fr/reference/ldap/functions/ldap-rename.xml:1.5 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-rename.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.24 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.ldap-rename"> <refnamediv> <refname>ldap_rename</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-search.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-search.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-search.xml:1.6 phpdoc-fr/reference/ldap/functions/ldap-search.xml:1.7 --- phpdoc-fr/reference/ldap/functions/ldap-search.xml:1.6 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-search.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.17 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.7 Maintainer: yannick Status: ready --> <refentry id="function.ldap-search"> <refnamediv> <refname>ldap_search</refname> @@ -41,7 +40,7 @@ recommandé. </para> <para> - Le quatrième paramtère est un tableau de chaînes PHP avec + Le quatrième paramètre est un tableau de chaînes PHP avec les attributs demandé, comme par exemple : <literal>array("mail","sn","cn")</literal>. Notez que le <literal>"dn"</literal> est toujours retourné, indépendamment @@ -70,7 +69,7 @@ </para> <para> Le septième paramètre <parameter>timelimit</parameter> permet de spécifier - le nombre de secondes de duréee de la recherche. En utilisant la valeur + le nombre de secondes de durée de la recherche. En utilisant la valeur 0, la recherche pourra durée indéfiniment. NOTE : ce paramètre NE peut PAS remplacer la configuration du serveur. Vous pouvez au mieux baisser encore cette limite. @@ -127,7 +126,7 @@ recherche sur deux attributs. <example> <title>Recherche LDAP</title> -<programlisting role="php"> + <programlisting role="php"> <![CDATA[ <?php // $ds doit être une ressource de connexion valide @@ -142,11 +141,12 @@ $info = ldap_get_entries($ds, $sr); -print $info["count"]." entrées trouvées.<p>"; +echo $info["count"]." entrées trouvées.\n"; ?> ]]> -</programlisting> - </example></para> + </programlisting> + </example> + </para> <para> Depuis PHP 4.0.5, il est possible de faire des recherches paralelles. Pour cela, vous devez utiliser un tableau de ressources de connexion comme premier argument, @@ -161,7 +161,7 @@ &false;. C'est très proche du comportement habituel, hormis le fait qu'un résultat est toujours retourné lorsqu'une recherche est faite. Il y a de rares cas où une recherche retourne &false;, alors qu'une - recherche en paralelle retourne un identifiant. + recherche en parallèle retourne un identifiant. </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-set-option.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-set-option.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-set-option.xml:1.6 phpdoc-fr/reference/ldap/functions/ldap-set-option.xml:1.7 --- phpdoc-fr/reference/ldap/functions/ldap-set-option.xml:1.6 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-set-option.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.2 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.ldap-set-option"> <refnamediv> <refname>ldap_set_option</refname> @@ -56,33 +55,37 @@ </note> <para> <example> - <title>Set protocol version</title> -<programlisting role="php"> + <title>Modification de la version du protocole</title> + <programlisting role="php"> <![CDATA[ <?php // $ds doit être une ressource de connexion valide -if (ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3)) - echo "Version LDAPv3"; -else - echo "Impossible de modifier la version du protocole à 3"; +if (ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3)) { + echo 'Version LDAPv3'; +} else { + echo 'Impossible de modifier la version du protocole à 3'; +} ?> ]]> -</programlisting> + </programlisting> </example> <example> - <title>Set server controls</title> -<programlisting role="php"> + <title>Modification des contrôles du serveur</title> + <programlisting role="php"> <![CDATA[ +<?php // $ds doit être une ressource de connexion valide // controle sans valeur $ctrl1 = array("oid" => "1.2.752.58.10.1", "iscritical" => TRUE); // iscritical vaut par défaut FALSE $ctrl2 = array("oid" => "1.2.752.58.1.10", "value" => "magic"); // essayez d'utiliser les deux contrôles -if (!ldap_set_option($ds, LDAP_OPT_SERVER_CONTROLS, array($ctrl1, $ctrl2))) - echo "Impossible de modifier les contrôles du serveur"; +if (!ldap_set_option($ds, LDAP_OPT_SERVER_CONTROLS, array($ctrl1, $ctrl2))) { + echo 'Impossible de modifier les contrôles du serveur'; +} +?> ]]> -</programlisting> + </programlisting> </example> </para> <para> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-set-rebind-proc.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-set-rebind-proc.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-set-rebind-proc.xml:1.4 phpdoc-fr/reference/ldap/functions/ldap-set-rebind-proc.xml:1.5 --- phpdoc-fr/reference/ldap/functions/ldap-set-rebind-proc.xml:1.4 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-set-rebind-proc.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.39 --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.ldap-set-rebind-proc"> <refnamediv> <refname>ldap_set_rebind_proc</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-sort.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-sort.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-sort.xml:1.4 phpdoc-fr/reference/ldap/functions/ldap-sort.xml:1.5 --- phpdoc-fr/reference/ldap/functions/ldap-sort.xml:1.4 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-sort.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.39 --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.ldap-sort"> <refnamediv> <refname>ldap_sort</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-start-tls.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-start-tls.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-start-tls.xml:1.5 phpdoc-fr/reference/ldap/functions/ldap-start-tls.xml:1.6 --- phpdoc-fr/reference/ldap/functions/ldap-start-tls.xml:1.5 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-start-tls.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.39 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.ldap-start-tls"> <refnamediv> <refname>ldap_start_tls</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-t61-to-8859.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-t61-to-8859.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-t61-to-8859.xml:1.4 phpdoc-fr/reference/ldap/functions/ldap-t61-to-8859.xml:1.5 --- phpdoc-fr/reference/ldap/functions/ldap-t61-to-8859.xml:1.4 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-t61-to-8859.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.39 --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.ldap-t61-to-8859"> <refnamediv> <refname>ldap_t61_to_8859</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-unbind.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-unbind.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-unbind.xml:1.5 phpdoc-fr/reference/ldap/functions/ldap-unbind.xml:1.6 --- phpdoc-fr/reference/ldap/functions/ldap-unbind.xml:1.5 Wed Feb 25 07:37:26 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-unbind.xml Mon May 3 07:59:55 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/ldap.xml, last change in rev 1.2 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.ldap-unbind"> <refnamediv> <refname>ldap_unbind</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/configure.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/ldap/configure.xml diff -u phpdoc-fr/reference/ldap/configure.xml:1.4 phpdoc-fr/reference/ldap/configure.xml:1.5 --- phpdoc-fr/reference/ldap/configure.xml:1.4 Wed Feb 25 08:42:12 2004 +++ phpdoc-fr/reference/ldap/configure.xml Mon May 3 07:59:55 2004 @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> <section id="ldap.installation"> &reftitle.install; <para> Le support LDAP de PHP n'est pas activé par défaut. Vous devez utiliser l'option de configuration - <option role="configure">--with-ldap</option> - lorsque vous compilez PHP. + <option role="configure">--with-ldap[=DIR]</option> + lorsque vous compilez PHP, où DIR est le répertoire d'installation du serveur LDAP. </para> <note> <title>Note aux utilisateurs Win32</title> @@ -16,6 +16,9 @@ devez copier les librairies <emphasis>libsasl.dll</emphasis> depuis le dossier DLL de PHP/Win32 dans le dossier système SYSTEM32 de votre machine (par exemple : C:\WINNT\SYSTEM32 or C:\WINDOWS\SYSTEM32). + Pour &php; <= 4.2.0, copiez <filename>libsasl.dll</filename>, pour &php; + >= 4.3.0, copiez <filename>libeay32.dll</filename> et <filename>ssleay32.dll</filename> + dans votre dossier système SYSTEM. </simpara> </note> </section> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/constants.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-fr/reference/ldap/constants.xml diff -u phpdoc-fr/reference/ldap/constants.xml:1.2 phpdoc-fr/reference/ldap/constants.xml:1.3 --- phpdoc-fr/reference/ldap/constants.xml:1.2 Wed Feb 25 07:37:25 2004 +++ phpdoc-fr/reference/ldap/constants.xml Mon May 3 07:59:55 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <section id="ldap.constants"> &reftitle.constants; &extension.constants; @@ -8,7 +8,7 @@ <varlistentry> <term> <constant>LDAP_DEREF_NEVER</constant> - (<link linkend="language.types.integer">entier</link>) + (&integer;) </term> <listitem> <simpara> @@ -19,7 +19,7 @@ <varlistentry> <term> <constant>LDAP_DEREF_SEARCHING</constant> - (<link linkend="language.types.integer">entier</link>) + (&integer;) </term> <listitem> <simpara> @@ -30,7 +30,7 @@ <varlistentry> <term> <constant>LDAP_DEREF_FINDING</constant> - (<link linkend="language.types.integer">entier</link>) + (&integer;) </term> <listitem> <simpara> @@ -41,7 +41,7 @@ <varlistentry> <term> <constant>LDAP_DEREF_ALWAYS</constant> - (<link linkend="language.types.integer">entier</link>) + (&integer;) </term> <listitem> <simpara> @@ -52,7 +52,7 @@ <varlistentry> <term> <constant>LDAP_OPT_DEREF</constant> - (<link linkend="language.types.integer">entier</link>) + (&integer;) </term> <listitem> <simpara> @@ -63,7 +63,7 @@ <varlistentry> <term> <constant>LDAP_OPT_SIZELIMIT</constant> - (<link linkend="language.types.integer">entier</link>) + (&integer;) </term> <listitem> <simpara> @@ -74,7 +74,7 @@ <varlistentry> <term> <constant>LDAP_OPT_TIMELIMIT</constant> - (<link linkend="language.types.integer">entier</link>) + (&integer;) </term> <listitem> <simpara> @@ -85,7 +85,7 @@ <varlistentry> <term> <constant>LDAP_OPT_PROTOCOL_VERSION</constant> - (<link linkend="language.types.integer">entier</link>) + (&integer;) </term> <listitem> <simpara> @@ -96,7 +96,7 @@ <varlistentry> <term> <constant>LDAP_OPT_ERROR_NUMBER</constant> - (<link linkend="language.types.integer">entier</link>) + (&integer;) </term> <listitem> <simpara> @@ -107,7 +107,7 @@ <varlistentry> <term> <constant>LDAP_OPT_REFERRALS</constant> - (<link linkend="language.types.integer">entier</link>) + (&integer;) </term> <listitem> <simpara> @@ -118,7 +118,7 @@ <varlistentry> <term> <constant>LDAP_OPT_RESTART</constant> - (<link linkend="language.types.integer">entier</link>) + (&integer;) </term> <listitem> <simpara> @@ -129,7 +129,7 @@ <varlistentry> <term> <constant>LDAP_OPT_HOST_NAME</constant> - (<link linkend="language.types.integer">entier</link>) + (&integer;) </term> <listitem> <simpara> @@ -140,7 +140,7 @@ <varlistentry> <term> <constant>LDAP_OPT_ERROR_STRING</constant> - (<link linkend="language.types.integer">entier</link>) + (&integer;) </term> <listitem> <simpara> @@ -151,7 +151,7 @@ <varlistentry> <term> <constant>LDAP_OPT_MATCHED_DN</constant> - (<link linkend="language.types.integer">entier</link>) + (&integer;) </term> <listitem> <simpara> @@ -162,7 +162,7 @@ <varlistentry> <term> <constant>LDAP_OPT_SERVER_CONTROLS</constant> - (<link linkend="language.types.integer">entier</link>) + (&integer;) </term> <listitem> <simpara> @@ -173,7 +173,7 @@ <varlistentry> <term> <constant>LDAP_OPT_CLIENT_CONTROLS</constant> - (<link linkend="language.types.integer">entier</link>) + (&integer;) </term> <listitem> <simpara> @@ -184,7 +184,7 @@ <varlistentry> <term> <constant>LDAP_OPT_DEBUG_LEVEL</constant> - (<link linkend="language.types.integer">entier</link>) + (&integer;) </term> <listitem> <simpara> @@ -195,7 +195,7 @@ <varlistentry> <term> <constant>GSLC_SSL_NO_AUTH</constant> - (<link linkend="language.types.integer">entier</link>) + (&integer;) </term> <listitem> <simpara> @@ -206,7 +206,7 @@ <varlistentry> <term> <constant>GSLC_SSL_ONEWAY_AUTH</constant> - (<link linkend="language.types.integer">entier</link>) + (&integer;) </term> <listitem> <simpara> @@ -217,7 +217,7 @@ <varlistentry> <term> <constant>GSLC_SSL_TWOWAY_AUTH</constant> - (<link linkend="language.types.integer">entier</link>) + (&integer;) </term> <listitem> <simpara> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/ini.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-fr/reference/ldap/ini.xml diff -u phpdoc-fr/reference/ldap/ini.xml:1.3 phpdoc-fr/reference/ldap/ini.xml:1.4 --- phpdoc-fr/reference/ldap/ini.xml:1.3 Wed Feb 25 07:37:25 2004 +++ phpdoc-fr/reference/ldap/ini.xml Mon May 3 07:59:55 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <section id="ldap.configuration"> &reftitle.runtime; &extension.runtime; http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/reference.xml?r1=1.9&r2=1.10&ty=u Index: phpdoc-fr/reference/ldap/reference.xml diff -u phpdoc-fr/reference/ldap/reference.xml:1.9 phpdoc-fr/reference/ldap/reference.xml:1.10 --- phpdoc-fr/reference/ldap/reference.xml:1.9 Tue Apr 20 16:54:40 2004 +++ phpdoc-fr/reference/ldap/reference.xml Mon May 3 07:59:55 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.10 $ --> +<!-- EN-Revision: 1.11 Maintainer: yannick Status: ready --> <reference id="ref.ldap"> <title>LDAP</title> <titleabbrev>LDAP</titleabbrev> @@ -144,29 +144,29 @@ echo "<h3>requête de test de LDAP</h3>"; echo "Connexion ..."; $ds=ldap_connect("localhost"); // doit être un serveur LDAP valide! -echo "Le résultat de connexion est ".$ds."<p>"; +echo "Le résultat de connexion est ".$ds."<br />"; if ($ds) { echo "Liaison ..."; $r=ldap_bind($ds); // connexion anonyme, typique // pour un accès en lecture seule. - echo "Le résultat de connexion est ".$r."<p>"; + echo "Le résultat de connexion est ".$r."<br />"; echo "Recherchons (sn=S*) ..."; // Recherche par nom $sr=ldap_search($ds,"o=My Company, c=US", "sn=S*"); - echo "Le résultat de la recherche est ".$sr."<p>"; + echo "Le résultat de la recherche est ".$sr."<br />"; - echo "Le nombre d'entrées retournées est ".ldap_count_entries($ds,$sr)."<p>"; + echo "Le nombre d'entrées retournées est ".ldap_count_entries($ds,$sr)."<br />"; - echo "Lecture des entrées ...<p>"; + echo "Lecture des entrées ...<br />"; $info = ldap_get_entries($ds, $sr); - echo "Données pour ".$info["count"]." entrées:<p>"; + echo "Données pour ".$info["count"]." entrées:<br />"; for ($i=0; $i<$info["count"]; $i++) { echo "dn est : ". $info[$i]["dn"] ."<br>"; - echo "premiere entree cn : ". $info[$i]["cn"][0] ."<br>"; - echo "premier email : ". $info[$i]["mail"][0] ."<p>"; + echo "premiere entree cn : ". $info[$i]["cn"][0] ."<br />"; + echo "premier email : ". $info[$i]["mail"][0] ."<br />"; } echo "Fermeture de la connexion";