cvs: peardoc /fr/package/fileformats/file-passwd/file-passwd-smb adduser.xml changepasswd.xml file-passwd-smb.xml generatepassword.xml moduser.xml
parse.xml save.xml staticauth.xml verifyencryptedpasswd.xml verifypasswd.xml
| From: | Yannick TORRES | Date: | Thu, 29 Jul 2004 12:08:21 +0000 |
| Subject: | cvs: peardoc /fr/package/fileformats/file-passwd/file-passwd-smb adduser.xml changepasswd.xml file-passwd-smb.xml generatepassword.xml moduser.xml parse.xml save.xml staticauth.xml verifyencryptedpasswd.xml verifypasswd.xml |
||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-4686@lists.php.net to get a copy of this message | ||
yannick Thu Jul 29 08:08:21 2004 EDT
Added files:
/peardoc/fr/package/fileformats/file-passwd/file-passwd-smb
adduser.xml
changepasswd.xml
file-passwd-smb.xml
generatepassword.xml
moduser.xml
parse.xml
save.xml
staticauth.xml
verifyencryptedpasswd.xml
verifypasswd.xml
Log:
initial translation
http://cvs.php.net/co.php/peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/adduser.xml?r=1.1&p=1 Index: peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/adduser.xml +++ peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/adduser.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.fileformats.file-passwd.file-passwd-smb.adduser"> <refnamediv> <refname><function>File_Passwd_Smb::addUser</function></refname> <refpurpose>Ajoute un utilisateur</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef>mixed <function>File_Passwd_Smb::addUser</function></funcdef> <paramdef>string <parameter>$user</parameter></paramdef> <paramdef>string <parameter>$pass</parameter></paramdef> <paramdef>array <parameter>$params</parameter></paramdef> <paramdef>boolean <parameter> <optional>$isMachine = false</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.adduser.desc"> &title.desc; <para> Ajoute un compte utilisateur/machine SMB. </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.adduser.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$user</parameter> </term> <listitem> <para> l'utilisateur/machine à ajouter </para> </listitem> </varlistentry> <varlistentry> <term> &type.string; <parameter>$pass</parameter> </term> <listitem> <para> le mot de passe en clair </para> </listitem> </varlistentry> <varlistentry> <term> &type.array; <parameter>$params</parameter> </term> <listitem> <para> propriétés additionnelles pour ce compte : <itemizedlist> <listitem><simpara>userid</simpara></listitem> <listitem><simpara>flags</simpara></listitem> <listitem><simpara>lct</simpara></listitem> <listitem><simpara>comment</simpara></listitem> </itemizedlist> </para> </listitem> </varlistentry> <varlistentry> <term> &type.bool; <parameter>$isMachine</parameter> </term> <listitem> <para> Ajoute ou non un compte machine </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.adduser.return"> &title.returns; <para> &return.success-pearerror; </para> <para> <table> <title>&title.throws.errortable;</title> <tgroup cols="2"> <thead> <row> <entry>Code erreur</entry> <entry>Signification</entry> </row> </thead> <tbody> <row> <entry>FILE_PASSWD_E_EXISTS_ALREADY</entry> <entry>le compte existe déjà</entry> </row> <row> <entry>FILE_PASSWD_E_INVALID_CHARS</entry> <entry>le nom utilisateur/machine contient des caractères invalides</entry> </row> </tbody> </tgroup> </table> </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.adduser.note"> &title.note; ¬e.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/changepasswd.xml?r=1.1&p=1 Index: peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/changepasswd.xml +++ peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/changepasswd.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.fileformats.file-passwd.file-passwd-smb.changepasswd"> <refnamediv> <refname><function>File_Passwd_Smb::changePasswd</function></refname> <refpurpose>Modifie un mot de passe</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef>mixed <function>File_Passwd_Smb::changePasswd</function></funcdef> <paramdef>string <parameter>$user</parameter></paramdef> <paramdef>string <parameter>$pass</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.changepasswd.desc"> &title.desc; <para> Modifie le mot de passe d'un utilisateur. </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.changepasswd.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$user</parameter> </term> <listitem> <para> l'utilisateur dont le mot de passe doit être modifié </para> </listitem> </varlistentry> <varlistentry> <term> &type.string; <parameter>$pass</parameter> </term> <listitem> <para> le nouveau mot de passe en clair </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.changepasswd.return"> &title.returns; <para> &return.success-pearerror; </para> <para> Retourne <classname>PEAR_Error</classname> <constant>FILE_PASSWD_E_EXISTS_NOT</constant>, si l'utilisateur n'existe pas. </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.changepasswd.note"> &title.note; ¬e.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/file-passwd-smb.xml?r=1.1&p=1 Index: peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/file-passwd-smb.xml +++ peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/file-passwd-smb.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.fileformats.file-passwd.file-passwd-smb.file-passwd-smb"> <refnamediv> <refname><function>File_Passwd_Smb::File_Passwd_Smb</function></refname> <refpurpose>Constructeur</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo>require_once 'File/Passwd/Smb.php';</funcsynopsisinfo> <funcprototype> <funcdef>object &new <function>File_Passwd_Smb</function></funcdef> <paramdef>string <parameter> <optional>$file = 'smbpasswd'</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.file-passwd-smb.desc"> &title.desc; <para> Initialise un nouvel objet <classname>File_Passwd_Smb</classname> avec le chemin désiré vers le fichier passwd. </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.file-passwd-smb.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$file</parameter> </term> <listitem> <para> chemin vers le fichier passwd </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.file-passwd-smb.return"> &title.returns; <para> Retourne un &type.object; <classname>File_Passwd_Smb</classname>. </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.file-passwd-smb.note"> &title.note; ¬e.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/generatepassword.xml?r=1.1&p=1 Index: peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/generatepassword.xml +++ peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/generatepassword.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="package.fileformats.file-passwd.file-passwd-smb.generatepassword"> <refnamediv> <refname><function>File_Passwd_Smb::generatePassword</function></refname> <refpurpose>Génère un mot de passe</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef>string <function>File_Passwd_Smb::generatePassword</function></funcdef> <paramdef>string <parameter>$pass</parameter></paramdef> <paramdef>string <parameter><optional>$mode = 'nt'</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.generatepassword.desc"> &title.desc; <para> Génère un mot de passe du style "Samba" server. </para> <para> Le mode de cryptage peut être soit <constant>FILE_PASSWD_NT</constant> ou <constant>FILE_PASSWD_LM</constant>. </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.generatepassword.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$pass</parameter> </term> <listitem> <para> le mot de passe en clair à crypter </para> </listitem> </varlistentry> <varlistentry> <term> &type.string; <parameter>$mode</parameter> </term> <listitem> <para> le mode de cryptage à utiliser </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.generatepassword.return"> &title.returns; <para> Retourne un mot de passe crypté sous la forme d'une chaîne de carctères. </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.generatepassword.example"> &title.example; <example id="package.fileformats.file-passwd.file-passwd-smb.generatepassword.example.listing"> <title>File_Passwd_Smb::generatePassword()</title> <programlisting role="php"> <![CDATA[ require_once 'File/Passwd/Smb.php'; $pass = File_Passwd_Smb::generatePassword('secret', FILE_PASSWD_LM); ]]> </programlisting> </example> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.generatepassword.note"> &title.note; ¬e.shouldstatic; </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.generatepassword.see"> &title.see; <para> Voir <link linkend="package.encryption.crypt-chap.crypt-chap-mschapv1.ntpasswordhash"> <classname>Crypt_CHAP_MSv1</classname>::<function>ntPasswordHash</function> </link>, <link linkend="package.encryption.crypt-chap.crypt-chap-mschapv1.lmpasswordhash"> <classname>Crypt_CHAP_MSv1</classname>::<function>lmPasswordHash</function> </link>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/moduser.xml?r=1.1&p=1 Index: peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/moduser.xml +++ peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/moduser.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.fileformats.file-passwd.file-passwd-smb.moduser"> <refnamediv> <refname><function>File_Passwd_Smb::modUser</function></refname> <refpurpose>Modifie un utilisateur</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef>mixed <function>File_Passwd_Smb::modUser</function></funcdef> <paramdef>string <parameter>$user</parameter></paramdef> <paramdef>array <parameter>$params</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.moduser.desc"> &title.desc; <para> Modifie un utilisateur. </para> <para> Vous ne devriez pas modifier le mot de passe avec cette méthode, utilisez plutôt <link linkend="package.fileformats.file-passwd.file-passwd-smb.changepasswd"> <function>File_Passwd_Smb::changePasswd</function> </link>. </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.moduser.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$user</parameter> </term> <listitem> <para> l'utilisateur à modifier </para> </listitem> </varlistentry> <varlistentry> <term> &type.array; <parameter>$params</parameter> </term> <listitem> <para> un tableau associatif contenant les propriétés à modifier </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.moduser.return"> &title.returns; <para> &return.success-pearerror; </para> <para> <table> <title>&title.throws.errortable;</title> <tgroup cols="2"> <thead> <row> <entry>Code erreur</entry> <entry>Signification</entry> </row> </thead> <tbody> <row> <entry>FILE_PASSWD_E_EXISTS_NOT</entry> <entry>le compte n'existe pas</entry> </row> <row> <entry>FILE_PASSWD_E_INVALID_PROPERTY</entry> <entry>une des propriétés n'est pas valide</entry> </row> </tbody> </tgroup> </table> </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.moduser.note"> &title.note; ¬e.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/parse.xml?r=1.1&p=1 Index: peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/parse.xml +++ peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/parse.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.fileformats.file-passwd.file-passwd-smb.parse"> <refnamediv> <refname><function>File_Passwd_Smb::parse</function></refname> <refpurpose>Analyse un fichier</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef>mixed <function>File_Passwd_Smb::parse</function></funcdef> <paramdef /> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.parse.desc"> &title.desc; <para> Analyse un fichier SMB passwd. &pdevrel; </para> <para> Celà intervient habituellement dans <link linkend="package.fileformats.file-passwd.file-passwd-common.load"> <function>File_Passwd_Smb::load</function> </link>. </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.parse.return"> &title.returns; <para> &return.success-pearerror; </para> <para> Retourne <classname>PEAR_Error</classname> <constant>FILE_PASSWD_E_INVALID_FORMAT</constant>, si le fichier passwd a un format invalide. </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.parse.note"> &title.note; ¬e.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/save.xml?r=1.1&p=1 Index: peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/save.xml +++ peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/save.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.fileformats.file-passwd.file-passwd-smb.save"> <refnamediv> <refname><function>File_Passwd_Smb::save</function></refname> <refpurpose>Sauvegarde les modifications</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef>mixed <function>File_Passwd_Smb::save</function></funcdef> <paramdef /> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.save.desc"> &title.desc; <para> Applique les modifications et réécrit le fichier passwd SMB. </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.save.return"> &title.returns; <para> &return.success-pearerror; </para> <para> <table> <title>&title.throws.errortable;</title> <tgroup cols="2"> <thead> <row> <entry>Code erreur</entry> <entry>Signification</entry> </row> </thead> <tbody> <row> <entry>FILE_PASSWD_E_DIR_NOT_CREATED</entry> <entry>le dossier dont le fichier passwd doit appartenir n'a pu être créé</entry> </row> <row> <entry>FILE_PASSWD_E_FILE_NOT_OPENED</entry> <entry>le fichier passwd n'a pu être ouvert en écriture</entry> </row> <row> <entry>FILE_PASSWD_E_FILE_NOT_LOCKED</entry> <entry>le fichier passwd n'a pu être verrouillé exclusivement</entry> </row> <row> <entry>FILE_PASSWD_E_FILE_NOT_UNLOCKED</entry> <entry>le fichier passwd n'a pu être déverrouillé</entry> </row> <row> <entry>FILE_PASSWD_E_FILE_NOT_CLOSED</entry> <entry>le fichier passwd n'a pu être fermé</entry> </row> </tbody> </tgroup> </table> </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.save.note"> &title.note; ¬e.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/staticauth.xml?r=1.1&p=1 Index: peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/staticauth.xml +++ peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/staticauth.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.fileformats.file-passwd.file-passwd-smb.staticauth"> <refnamediv> <refname><function>File_Passwd_Smb::staticAuth</function></refname> <refpurpose>Identification rapide</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'File/Passwd/Smb.php'; </funcsynopsisinfo> <funcprototype> <funcdef>mixed <function>File_Passwd_Smb::staticAuth</function></funcdef> <paramdef>string <parameter>$file</parameter></paramdef> <paramdef>string <parameter>$user</parameter></paramdef> <paramdef>string <parameter>$pass</parameter></paramdef> <paramdef>string <parameter>$mode</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.staticauth.desc"> &title.desc; <para> Identification statique d'un utilisateur. </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.staticauth.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$file</parameter> </term> <listitem> <para> chemin vers le fichier passwd </para> </listitem> </varlistentry> <varlistentry> <term> &type.string; <parameter>$user</parameter> </term> <listitem> <para> utilisateur à identifier </para> </listitem> </varlistentry> <varlistentry> <term> &type.string; <parameter>$pass</parameter> </term> <listitem> <para> mot de passe en clair </para> </listitem> </varlistentry> <varlistentry> <term> &type.string; <parameter>$mode</parameter> </term> <listitem> <para> mode de cryptage ('nt'|'lm') NTHASH ou LMHASH </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.staticauth.return"> &title.returns; <para> Retourne &true; si l'identification a réussi, &false; sinon ou un objet <classname>PEAR_Error</classname> en cas d'échec. </para> <para> <table> <title>&title.throws.errortable;</title> <tgroup cols="2"> <thead> <row> <entry>Code erreur</entry> <entry>Signification</entry> </row> </thead> <tbody> <row> <entry>FILE_PASSWD_E_NOT_EXISTS</entry> <entry>le fichier passwd n'existe pas</entry> </row> <row> <entry>FILE_PASSWD_E_FILE_NOT_OPENED</entry> <entry>le fichier passwd n'a pu être ouvert en lecture</entry> </row> <row> <entry>FILE_PASSWD_E_FILE_NOT_LOCKED</entry> <entry>le fichier passwd n'a pu être verrouillé</entry> </row> <row> <entry>FILE_PASSWD_E_FILE_NOT_UNLOCKED</entry> <entry>le fichier passwd n'a pu être déverrouillé (uniquement si l'identification échoue)</entry> </row> <row> <entry>FILE_PASSWD_E_FILE_NOT_CLOSED</entry> <entry>le fichier passwd n'a pu être fermé (uniquement si l'identification échoue)</entry> </row> <row> <entry>FILE_PASSWD_E_INVALID_ENC_MODE</entry> <entry>le mode de cryptage demandé n'est pas valide</entry> </row> </tbody> </tgroup> </table> </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.staticauth.note"> &title.note; ¬e.shouldstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/verifyencryptedpasswd.xml?r=1.1&p=1 Index: peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/verifyencryptedpasswd.xml +++ peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/verifyencryptedpasswd.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.fileformats.file-passwd.file-passwd-smb.verifyencryptedpasswd"> <refnamediv> <refname><function>File_Passwd_Smb::verifyEncryptedPasswd</function></refname> <refpurpose>Vérifie un mot de passe crypté</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef>mixed <function>File_Passwd_Smb::verifyEncryptedPasswd</function></funcdef> <paramdef>string <parameter>$user</parameter></paramdef> <paramdef>string <parameter>$nthash</parameter></paramdef> <paramdef>string <parameter><optional>$lmhash = ''</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.verifyencryptedpasswd.desc"> &title.desc; <para> Vérifie le mot de passe <emphasis>crypté</emphasis> d'un utilisateur/machine. </para> <para> Nous préférons NT-Hash au lieu de LAN-Manager-Hash. </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.verifyencryptedpasswd.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$user</parameter> </term> <listitem> <para> utilisateur </para> </listitem> </varlistentry> <varlistentry> <term> &type.string; <parameter>$nthash</parameter> </term> <listitem> <para> NT-Hash en hex </para> </listitem> </varlistentry> <varlistentry> <term> &type.string; <parameter>$lmhash</parameter> </term> <listitem> <para> LAN-Manager-Hash en hex </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.verifyencryptedpasswd.return"> &title.returns; <para> Retourne &true; si les mots de passe sont égaux, &false; sinon ou un objet <classname>PEAR_Error</classname> en cas d'échec. </para> <para> <table> <title>&title.throws.errortable;</title> <tgroup cols="2"> <thead> <row> <entry>Code erreur</entry> <entry>Signification</entry> </row> </thead> <tbody> <row> <entry>FILE_PASSWD_E_EXISTS_NOT</entry> <entry>l'utilisateur n'existe pas</entry> </row> <row> <entry>FILE_PASSWD_E_UNDEFINED</entry> <entry>si le compte est désactivé</entry> </row> </tbody> </tgroup> </table> </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.verifyencryptedpasswd.note"> &title.note; ¬e.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/verifypasswd.xml?r=1.1&p=1 Index: peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/verifypasswd.xml +++ peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/verifypasswd.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.fileformats.file-passwd.file-passwd-smb.verifypasswd"> <refnamediv> <refname><function>File_Passwd_Smb::verifyPasswd</function></refname> <refpurpose>Vérifie un mot de passe</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef>mixed <function>File_Passwd_Smb::verifyPasswd</function></funcdef> <paramdef>string <parameter>$user</parameter></paramdef> <paramdef>string <parameter>$pass</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.verifypasswd.desc"> &title.desc; <para> Vérifie un compte avec le mot de passe en clair fourni. </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.verifypasswd.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$user</parameter> </term> <listitem> <para> nom de l'utilisateur </para> </listitem> </varlistentry> <varlistentry> <term> &type.string; <parameter>$pass</parameter> </term> <listitem> <para> le mot de passe en clair </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.verifypasswd.return"> &title.returns; <para> Retourne &true; si les mots de passe sont égaux, &false; sinon ou un objet <classname>PEAR_Error</classname> en cas d'échec. </para> <para> <table> <title>&title.throws.errortable;</title> <tgroup cols="2"> <thead> <row> <entry>Code erreur</entry> <entry>Signification</entry> </row> </thead> <tbody> <row> <entry>FILE_PASSWD_E_EXISTS_NOT</entry> <entry>l'utilisateur n'existe pas</entry> </row> <row> <entry>FILE_PASSWD_E_UNDEFINED</entry> <entry>si le compte a été désactivé</entry> </row> </tbody> </tgroup> </table> </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.verifypasswd.note"> &title.note; ¬e.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->
http://cvs.php.net/co.php/peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/adduser.xml?r=1.1&p=1 Index: peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/adduser.xml +++ peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/adduser.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.fileformats.file-passwd.file-passwd-smb.adduser"> <refnamediv> <refname><function>File_Passwd_Smb::addUser</function></refname> <refpurpose>Ajoute un utilisateur</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef>mixed <function>File_Passwd_Smb::addUser</function></funcdef> <paramdef>string <parameter>$user</parameter></paramdef> <paramdef>string <parameter>$pass</parameter></paramdef> <paramdef>array <parameter>$params</parameter></paramdef> <paramdef>boolean <parameter> <optional>$isMachine = false</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.adduser.desc"> &title.desc; <para> Ajoute un compte utilisateur/machine SMB. </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.adduser.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$user</parameter> </term> <listitem> <para> l'utilisateur/machine à ajouter </para> </listitem> </varlistentry> <varlistentry> <term> &type.string; <parameter>$pass</parameter> </term> <listitem> <para> le mot de passe en clair </para> </listitem> </varlistentry> <varlistentry> <term> &type.array; <parameter>$params</parameter> </term> <listitem> <para> propriétés additionnelles pour ce compte : <itemizedlist> <listitem><simpara>userid</simpara></listitem> <listitem><simpara>flags</simpara></listitem> <listitem><simpara>lct</simpara></listitem> <listitem><simpara>comment</simpara></listitem> </itemizedlist> </para> </listitem> </varlistentry> <varlistentry> <term> &type.bool; <parameter>$isMachine</parameter> </term> <listitem> <para> Ajoute ou non un compte machine </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.adduser.return"> &title.returns; <para> &return.success-pearerror; </para> <para> <table> <title>&title.throws.errortable;</title> <tgroup cols="2"> <thead> <row> <entry>Code erreur</entry> <entry>Signification</entry> </row> </thead> <tbody> <row> <entry>FILE_PASSWD_E_EXISTS_ALREADY</entry> <entry>le compte existe déjà</entry> </row> <row> <entry>FILE_PASSWD_E_INVALID_CHARS</entry> <entry>le nom utilisateur/machine contient des caractères invalides</entry> </row> </tbody> </tgroup> </table> </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.adduser.note"> &title.note; ¬e.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/changepasswd.xml?r=1.1&p=1 Index: peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/changepasswd.xml +++ peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/changepasswd.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.fileformats.file-passwd.file-passwd-smb.changepasswd"> <refnamediv> <refname><function>File_Passwd_Smb::changePasswd</function></refname> <refpurpose>Modifie un mot de passe</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef>mixed <function>File_Passwd_Smb::changePasswd</function></funcdef> <paramdef>string <parameter>$user</parameter></paramdef> <paramdef>string <parameter>$pass</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.changepasswd.desc"> &title.desc; <para> Modifie le mot de passe d'un utilisateur. </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.changepasswd.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$user</parameter> </term> <listitem> <para> l'utilisateur dont le mot de passe doit être modifié </para> </listitem> </varlistentry> <varlistentry> <term> &type.string; <parameter>$pass</parameter> </term> <listitem> <para> le nouveau mot de passe en clair </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.changepasswd.return"> &title.returns; <para> &return.success-pearerror; </para> <para> Retourne <classname>PEAR_Error</classname> <constant>FILE_PASSWD_E_EXISTS_NOT</constant>, si l'utilisateur n'existe pas. </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.changepasswd.note"> &title.note; ¬e.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/file-passwd-smb.xml?r=1.1&p=1 Index: peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/file-passwd-smb.xml +++ peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/file-passwd-smb.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.fileformats.file-passwd.file-passwd-smb.file-passwd-smb"> <refnamediv> <refname><function>File_Passwd_Smb::File_Passwd_Smb</function></refname> <refpurpose>Constructeur</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo>require_once 'File/Passwd/Smb.php';</funcsynopsisinfo> <funcprototype> <funcdef>object &new <function>File_Passwd_Smb</function></funcdef> <paramdef>string <parameter> <optional>$file = 'smbpasswd'</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.file-passwd-smb.desc"> &title.desc; <para> Initialise un nouvel objet <classname>File_Passwd_Smb</classname> avec le chemin désiré vers le fichier passwd. </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.file-passwd-smb.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$file</parameter> </term> <listitem> <para> chemin vers le fichier passwd </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.file-passwd-smb.return"> &title.returns; <para> Retourne un &type.object; <classname>File_Passwd_Smb</classname>. </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.file-passwd-smb.note"> &title.note; ¬e.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/generatepassword.xml?r=1.1&p=1 Index: peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/generatepassword.xml +++ peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/generatepassword.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="package.fileformats.file-passwd.file-passwd-smb.generatepassword"> <refnamediv> <refname><function>File_Passwd_Smb::generatePassword</function></refname> <refpurpose>Génère un mot de passe</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef>string <function>File_Passwd_Smb::generatePassword</function></funcdef> <paramdef>string <parameter>$pass</parameter></paramdef> <paramdef>string <parameter><optional>$mode = 'nt'</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.generatepassword.desc"> &title.desc; <para> Génère un mot de passe du style "Samba" server. </para> <para> Le mode de cryptage peut être soit <constant>FILE_PASSWD_NT</constant> ou <constant>FILE_PASSWD_LM</constant>. </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.generatepassword.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$pass</parameter> </term> <listitem> <para> le mot de passe en clair à crypter </para> </listitem> </varlistentry> <varlistentry> <term> &type.string; <parameter>$mode</parameter> </term> <listitem> <para> le mode de cryptage à utiliser </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.generatepassword.return"> &title.returns; <para> Retourne un mot de passe crypté sous la forme d'une chaîne de carctères. </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.generatepassword.example"> &title.example; <example id="package.fileformats.file-passwd.file-passwd-smb.generatepassword.example.listing"> <title>File_Passwd_Smb::generatePassword()</title> <programlisting role="php"> <![CDATA[ require_once 'File/Passwd/Smb.php'; $pass = File_Passwd_Smb::generatePassword('secret', FILE_PASSWD_LM); ]]> </programlisting> </example> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.generatepassword.note"> &title.note; ¬e.shouldstatic; </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.generatepassword.see"> &title.see; <para> Voir <link linkend="package.encryption.crypt-chap.crypt-chap-mschapv1.ntpasswordhash"> <classname>Crypt_CHAP_MSv1</classname>::<function>ntPasswordHash</function> </link>, <link linkend="package.encryption.crypt-chap.crypt-chap-mschapv1.lmpasswordhash"> <classname>Crypt_CHAP_MSv1</classname>::<function>lmPasswordHash</function> </link>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/moduser.xml?r=1.1&p=1 Index: peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/moduser.xml +++ peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/moduser.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.fileformats.file-passwd.file-passwd-smb.moduser"> <refnamediv> <refname><function>File_Passwd_Smb::modUser</function></refname> <refpurpose>Modifie un utilisateur</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef>mixed <function>File_Passwd_Smb::modUser</function></funcdef> <paramdef>string <parameter>$user</parameter></paramdef> <paramdef>array <parameter>$params</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.moduser.desc"> &title.desc; <para> Modifie un utilisateur. </para> <para> Vous ne devriez pas modifier le mot de passe avec cette méthode, utilisez plutôt <link linkend="package.fileformats.file-passwd.file-passwd-smb.changepasswd"> <function>File_Passwd_Smb::changePasswd</function> </link>. </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.moduser.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$user</parameter> </term> <listitem> <para> l'utilisateur à modifier </para> </listitem> </varlistentry> <varlistentry> <term> &type.array; <parameter>$params</parameter> </term> <listitem> <para> un tableau associatif contenant les propriétés à modifier </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.moduser.return"> &title.returns; <para> &return.success-pearerror; </para> <para> <table> <title>&title.throws.errortable;</title> <tgroup cols="2"> <thead> <row> <entry>Code erreur</entry> <entry>Signification</entry> </row> </thead> <tbody> <row> <entry>FILE_PASSWD_E_EXISTS_NOT</entry> <entry>le compte n'existe pas</entry> </row> <row> <entry>FILE_PASSWD_E_INVALID_PROPERTY</entry> <entry>une des propriétés n'est pas valide</entry> </row> </tbody> </tgroup> </table> </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.moduser.note"> &title.note; ¬e.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/parse.xml?r=1.1&p=1 Index: peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/parse.xml +++ peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/parse.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.fileformats.file-passwd.file-passwd-smb.parse"> <refnamediv> <refname><function>File_Passwd_Smb::parse</function></refname> <refpurpose>Analyse un fichier</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef>mixed <function>File_Passwd_Smb::parse</function></funcdef> <paramdef /> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.parse.desc"> &title.desc; <para> Analyse un fichier SMB passwd. &pdevrel; </para> <para> Celà intervient habituellement dans <link linkend="package.fileformats.file-passwd.file-passwd-common.load"> <function>File_Passwd_Smb::load</function> </link>. </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.parse.return"> &title.returns; <para> &return.success-pearerror; </para> <para> Retourne <classname>PEAR_Error</classname> <constant>FILE_PASSWD_E_INVALID_FORMAT</constant>, si le fichier passwd a un format invalide. </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.parse.note"> &title.note; ¬e.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/save.xml?r=1.1&p=1 Index: peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/save.xml +++ peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/save.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.fileformats.file-passwd.file-passwd-smb.save"> <refnamediv> <refname><function>File_Passwd_Smb::save</function></refname> <refpurpose>Sauvegarde les modifications</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef>mixed <function>File_Passwd_Smb::save</function></funcdef> <paramdef /> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.save.desc"> &title.desc; <para> Applique les modifications et réécrit le fichier passwd SMB. </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.save.return"> &title.returns; <para> &return.success-pearerror; </para> <para> <table> <title>&title.throws.errortable;</title> <tgroup cols="2"> <thead> <row> <entry>Code erreur</entry> <entry>Signification</entry> </row> </thead> <tbody> <row> <entry>FILE_PASSWD_E_DIR_NOT_CREATED</entry> <entry>le dossier dont le fichier passwd doit appartenir n'a pu être créé</entry> </row> <row> <entry>FILE_PASSWD_E_FILE_NOT_OPENED</entry> <entry>le fichier passwd n'a pu être ouvert en écriture</entry> </row> <row> <entry>FILE_PASSWD_E_FILE_NOT_LOCKED</entry> <entry>le fichier passwd n'a pu être verrouillé exclusivement</entry> </row> <row> <entry>FILE_PASSWD_E_FILE_NOT_UNLOCKED</entry> <entry>le fichier passwd n'a pu être déverrouillé</entry> </row> <row> <entry>FILE_PASSWD_E_FILE_NOT_CLOSED</entry> <entry>le fichier passwd n'a pu être fermé</entry> </row> </tbody> </tgroup> </table> </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.save.note"> &title.note; ¬e.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/staticauth.xml?r=1.1&p=1 Index: peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/staticauth.xml +++ peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/staticauth.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.fileformats.file-passwd.file-passwd-smb.staticauth"> <refnamediv> <refname><function>File_Passwd_Smb::staticAuth</function></refname> <refpurpose>Identification rapide</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'File/Passwd/Smb.php'; </funcsynopsisinfo> <funcprototype> <funcdef>mixed <function>File_Passwd_Smb::staticAuth</function></funcdef> <paramdef>string <parameter>$file</parameter></paramdef> <paramdef>string <parameter>$user</parameter></paramdef> <paramdef>string <parameter>$pass</parameter></paramdef> <paramdef>string <parameter>$mode</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.staticauth.desc"> &title.desc; <para> Identification statique d'un utilisateur. </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.staticauth.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$file</parameter> </term> <listitem> <para> chemin vers le fichier passwd </para> </listitem> </varlistentry> <varlistentry> <term> &type.string; <parameter>$user</parameter> </term> <listitem> <para> utilisateur à identifier </para> </listitem> </varlistentry> <varlistentry> <term> &type.string; <parameter>$pass</parameter> </term> <listitem> <para> mot de passe en clair </para> </listitem> </varlistentry> <varlistentry> <term> &type.string; <parameter>$mode</parameter> </term> <listitem> <para> mode de cryptage ('nt'|'lm') NTHASH ou LMHASH </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.staticauth.return"> &title.returns; <para> Retourne &true; si l'identification a réussi, &false; sinon ou un objet <classname>PEAR_Error</classname> en cas d'échec. </para> <para> <table> <title>&title.throws.errortable;</title> <tgroup cols="2"> <thead> <row> <entry>Code erreur</entry> <entry>Signification</entry> </row> </thead> <tbody> <row> <entry>FILE_PASSWD_E_NOT_EXISTS</entry> <entry>le fichier passwd n'existe pas</entry> </row> <row> <entry>FILE_PASSWD_E_FILE_NOT_OPENED</entry> <entry>le fichier passwd n'a pu être ouvert en lecture</entry> </row> <row> <entry>FILE_PASSWD_E_FILE_NOT_LOCKED</entry> <entry>le fichier passwd n'a pu être verrouillé</entry> </row> <row> <entry>FILE_PASSWD_E_FILE_NOT_UNLOCKED</entry> <entry>le fichier passwd n'a pu être déverrouillé (uniquement si l'identification échoue)</entry> </row> <row> <entry>FILE_PASSWD_E_FILE_NOT_CLOSED</entry> <entry>le fichier passwd n'a pu être fermé (uniquement si l'identification échoue)</entry> </row> <row> <entry>FILE_PASSWD_E_INVALID_ENC_MODE</entry> <entry>le mode de cryptage demandé n'est pas valide</entry> </row> </tbody> </tgroup> </table> </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.staticauth.note"> &title.note; ¬e.shouldstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/verifyencryptedpasswd.xml?r=1.1&p=1 Index: peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/verifyencryptedpasswd.xml +++ peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/verifyencryptedpasswd.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.fileformats.file-passwd.file-passwd-smb.verifyencryptedpasswd"> <refnamediv> <refname><function>File_Passwd_Smb::verifyEncryptedPasswd</function></refname> <refpurpose>Vérifie un mot de passe crypté</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef>mixed <function>File_Passwd_Smb::verifyEncryptedPasswd</function></funcdef> <paramdef>string <parameter>$user</parameter></paramdef> <paramdef>string <parameter>$nthash</parameter></paramdef> <paramdef>string <parameter><optional>$lmhash = ''</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.verifyencryptedpasswd.desc"> &title.desc; <para> Vérifie le mot de passe <emphasis>crypté</emphasis> d'un utilisateur/machine. </para> <para> Nous préférons NT-Hash au lieu de LAN-Manager-Hash. </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.verifyencryptedpasswd.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$user</parameter> </term> <listitem> <para> utilisateur </para> </listitem> </varlistentry> <varlistentry> <term> &type.string; <parameter>$nthash</parameter> </term> <listitem> <para> NT-Hash en hex </para> </listitem> </varlistentry> <varlistentry> <term> &type.string; <parameter>$lmhash</parameter> </term> <listitem> <para> LAN-Manager-Hash en hex </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.verifyencryptedpasswd.return"> &title.returns; <para> Retourne &true; si les mots de passe sont égaux, &false; sinon ou un objet <classname>PEAR_Error</classname> en cas d'échec. </para> <para> <table> <title>&title.throws.errortable;</title> <tgroup cols="2"> <thead> <row> <entry>Code erreur</entry> <entry>Signification</entry> </row> </thead> <tbody> <row> <entry>FILE_PASSWD_E_EXISTS_NOT</entry> <entry>l'utilisateur n'existe pas</entry> </row> <row> <entry>FILE_PASSWD_E_UNDEFINED</entry> <entry>si le compte est désactivé</entry> </row> </tbody> </tgroup> </table> </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.verifyencryptedpasswd.note"> &title.note; ¬e.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/verifypasswd.xml?r=1.1&p=1 Index: peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/verifypasswd.xml +++ peardoc/fr/package/fileformats/file-passwd/file-passwd-smb/verifypasswd.xml <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="package.fileformats.file-passwd.file-passwd-smb.verifypasswd"> <refnamediv> <refname><function>File_Passwd_Smb::verifyPasswd</function></refname> <refpurpose>Vérifie un mot de passe</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef>mixed <function>File_Passwd_Smb::verifyPasswd</function></funcdef> <paramdef>string <parameter>$user</parameter></paramdef> <paramdef>string <parameter>$pass</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.verifypasswd.desc"> &title.desc; <para> Vérifie un compte avec le mot de passe en clair fourni. </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.verifypasswd.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$user</parameter> </term> <listitem> <para> nom de l'utilisateur </para> </listitem> </varlistentry> <varlistentry> <term> &type.string; <parameter>$pass</parameter> </term> <listitem> <para> le mot de passe en clair </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.verifypasswd.return"> &title.returns; <para> Retourne &true; si les mots de passe sont égaux, &false; sinon ou un objet <classname>PEAR_Error</classname> en cas d'échec. </para> <para> <table> <title>&title.throws.errortable;</title> <tgroup cols="2"> <thead> <row> <entry>Code erreur</entry> <entry>Signification</entry> </row> </thead> <tbody> <row> <entry>FILE_PASSWD_E_EXISTS_NOT</entry> <entry>l'utilisateur n'existe pas</entry> </row> <row> <entry>FILE_PASSWD_E_UNDEFINED</entry> <entry>si le compte a été désactivé</entry> </row> </tbody> </tgroup> </table> </para> </refsect1> <refsect1 id="package.fileformats.file-passwd.file-passwd-smb.verifypasswd.note"> &title.note; ¬e.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->