cvs: peardoc /en/package/filesystem/file-passwd constants.xml file-passwd-custom.xml file-passwd.xml intro.xml
/en/package/filesystem/file-passwd/file-passwd-custom adduser.xml changepasswd.xml file_passwd_custom.xml getdelim.xml getencfunc.xml
getencfunc.xml.PHPEditBackup getmap.xml moduser.xml parse.xml save.xml setdelim.xml setencfunc.xml setencfunc.xml.PHPEditBackup setmap.xml
staticauth.xml usemap.xml verifypasswd.xml /en/package/filesystem/file-passwd/file-passwd-unix getmode.xml parse.xml staticauth.xml verifypasswd.xml

From: Date: Tue, 30 Dec 2003 13:40:18 +0000
Subject: cvs: peardoc /en/package/filesystem/file-passwd constants.xml file-passwd-custom.xml file-passwd.xml intro.xml
/en/package/filesystem/file-passwd/file-passwd-custom adduser.xml changepasswd.xml file_passwd_custom.xml getdelim.xml getencfunc.xml
getencfunc.xml.PHPEditBackup getmap.xml moduser.xml parse.xml save.xml setdelim.xml setencfunc.xml setencfunc.xml.PHPEditBackup setmap.xml
staticauth.xml usemap.xml verifypasswd.xml /en/package/filesystem/file-passwd/file-passwd-unix getmode.xml parse.xml staticauth.xml verifypasswd.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-2085@lists.php.net to get a copy of this message
mike Tue Dec 30 08:40:18 2003 EDT Added files: /peardoc/en/package/filesystem/file-passwd file-passwd-custom.xml /peardoc/en/package/filesystem/file-passwd/file-passwd-custom adduser.xml changepasswd.xml file_passwd_custom.xml getdelim.xml getencfunc.xml getencfunc.xml.PHPEditBackup getmap.xml moduser.xml parse.xml save.xml setdelim.xml setencfunc.xml setencfunc.xml.PHPEditBackup setmap.xml staticauth.xml usemap.xml verifypasswd.xml Modified files: /peardoc/en/package/filesystem/file-passwd constants.xml file-passwd.xml intro.xml /peardoc/en/package/filesystem/file-passwd/file-passwd-unix getmode.xml parse.xml staticauth.xml verifypasswd.xml Log: * add docs for File_Passwd_Custom * few fixes for File_Passwd_Unix * updated intro

Index: peardoc/en/package/filesystem/file-passwd/constants.xml diff -u peardoc/en/package/filesystem/file-passwd/constants.xml:1.2 peardoc/en/package/filesystem/file-passwd/constants.xml:1.3 --- peardoc/en/package/filesystem/file-passwd/constants.xml:1.2 Tue Nov 11 07:29:09 2003 +++ peardoc/en/package/filesystem/file-passwd/constants.xml Tue Dec 30 08:40:13 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry id="package.filesystem.file-passwd.constants"> <refnamediv> @@ -44,6 +44,11 @@ <entry>&quot;lm&quot;</entry> <entry>LM hash</entry> </row> + <row> + <entry>FILE_PASSWD_PLAIN</entry> + <entry>&quot;plain&quot;</entry> + <entry>no encryption</entry> + </row> </tbody> </tgroup> </table> Index: peardoc/en/package/filesystem/file-passwd/file-passwd.xml diff -u peardoc/en/package/filesystem/file-passwd/file-passwd.xml:1.5 peardoc/en/package/filesystem/file-passwd/file-passwd.xml:1.6 --- peardoc/en/package/filesystem/file-passwd/file-passwd.xml:1.5 Tue Nov 11 07:26:13 2003 +++ peardoc/en/package/filesystem/file-passwd/file-passwd.xml Tue Dec 30 08:40:13 2003 @@ -1,8 +1,12 @@ -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <sect2 id="package.filesystem.file-passwd.file-passwd"> <title>File_Passwd</title> - <para>Factory facility and static authentication provider</para> + <para> + The <classname>File_Passwd</classname> class provides + a factory for all special purpose classes, static authentication + and common encryption methods. + </para> &package.filesystem.file-passwd.constants; &package.filesystem.file-passwd.file-passwd.factory; Index: peardoc/en/package/filesystem/file-passwd/intro.xml diff -u peardoc/en/package/filesystem/file-passwd/intro.xml:1.2 peardoc/en/package/filesystem/file-passwd/intro.xml:1.3 --- peardoc/en/package/filesystem/file-passwd/intro.xml:1.2 Fri Oct 10 13:50:01 2003 +++ peardoc/en/package/filesystem/file-passwd/intro.xml Tue Dec 30 08:40:13 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <sect2 id="package.filesystem.file-passwd.intro"> <title>Introduction</title> @@ -17,13 +17,8 @@ <formalpara> <title>Currently supported password file formats:</title> <para> - <simplelist> - <member>Unix</member> - <member>CVS</member> - <member>SMB</member> - <member>AuthUserFile</member> - <member>AuthDigestFile</member> - </simplelist> + Unix, CVS, SMB, AuthUserFile, AuthDigestFile + and custom formatted passwd files. </para> </formalpara> </refsect1> @@ -34,12 +29,16 @@ <command>passwd</command>-style means, the file has a format like this: <programlisting> - user:password + user&lt;delimiter&gt;password </programlisting> </para> <para> - The most important part is the colon, which delimits each piece - of information stored in a password file. + The delimiting character is usually the colon. + </para> + <para> + With the new <classname>File_Passwd_Custom</classname> class you + can choose your delimiting character, but be aware that any column + of your passwd file MUST NOT contain the delimiter! </para> </refsect1> </refentry> Index: peardoc/en/package/filesystem/file-passwd/file-passwd-unix/getmode.xml diff -u peardoc/en/package/filesystem/file-passwd/file-passwd-unix/getmode.xml:1.1 peardoc/en/package/filesystem/file-passwd/file-passwd-unix/getmode.xml:1.2 --- peardoc/en/package/filesystem/file-passwd/file-passwd-unix/getmode.xml:1.1 Fri Oct 10 12:34:23 2003 +++ peardoc/en/package/filesystem/file-passwd/file-passwd-unix/getmode.xml Tue Dec 30 08:40:14 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id="package.filesystem.file-passwd.file-passwd-unix.getmode"> <refnamediv> @@ -25,7 +25,7 @@ <refsect1 id="package.filesystem.file-passwd.file-passwd-unix.getmode.return"> &title.returns; <para> - Returns &type.string; actual entcryption mode. + Returns &type.string; actual encryption mode. </para> </refsect1> Index: peardoc/en/package/filesystem/file-passwd/file-passwd-unix/parse.xml diff -u peardoc/en/package/filesystem/file-passwd/file-passwd-unix/parse.xml:1.1 peardoc/en/package/filesystem/file-passwd/file-passwd-unix/parse.xml:1.2 --- peardoc/en/package/filesystem/file-passwd/file-passwd-unix/parse.xml:1.1 Fri Oct 10 12:34:23 2003 +++ peardoc/en/package/filesystem/file-passwd/file-passwd-unix/parse.xml Tue Dec 30 08:40:14 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id="package.filesystem.file-passwd.file-passwd-unix.parse"> <refnamediv> @@ -39,7 +39,7 @@ &title.throws; <para> Throws <classname>PEAR_Error</classname> FILE_PASSWD_E_INVALID_FORMAT, - if apsswd file has an illegl format. + if passwd file has illegal format. </para> </refsect1> Index: peardoc/en/package/filesystem/file-passwd/file-passwd-unix/staticauth.xml diff -u peardoc/en/package/filesystem/file-passwd/file-passwd-unix/staticauth.xml:1.1 peardoc/en/package/filesystem/file-passwd/file-passwd-unix/staticauth.xml:1.2 --- peardoc/en/package/filesystem/file-passwd/file-passwd-unix/staticauth.xml:1.1 Fri Oct 10 12:34:23 2003 +++ peardoc/en/package/filesystem/file-passwd/file-passwd-unix/staticauth.xml Tue Dec 30 08:40:14 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id="package.filesystem.file-passwd.file-passwd-unix.staticauth"> <refnamediv> @@ -117,7 +117,7 @@ </row> <row> <entry>FILE_PASSWD_E_FILE_NOT_CLOSED</entry> - <entry>passwd file couldn't be closed /only if auth fails)</entry> + <entry>passwd file couldn't be closed (only if auth fails)</entry> </row> </tbody> </tgroup> Index: peardoc/en/package/filesystem/file-passwd/file-passwd-unix/verifypasswd.xml diff -u peardoc/en/package/filesystem/file-passwd/file-passwd-unix/verifypasswd.xml:1.1 peardoc/en/package/filesystem/file-passwd/file-passwd-unix/verifypasswd.xml:1.2 --- peardoc/en/package/filesystem/file-passwd/file-passwd-unix/verifypasswd.xml:1.1 Fri Oct 10 12:34:23 2003 +++ peardoc/en/package/filesystem/file-passwd/file-passwd-unix/verifypasswd.xml Tue Dec 30 08:40:14 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id="package.filesystem.file-passwd.file-passwd-unix.verifypasswd"> <refnamediv> @@ -78,7 +78,7 @@ </row> <row> <entry>FILE_PASSWD_E_INVALID_ENC_MODE</entry> - <entry>actual encryption mode</entry> + <entry>actual encryption mode isn't spported</entry> </row> </tbody> </tgroup> Index: peardoc/en/package/filesystem/file-passwd/file-passwd-custom.xml +++ peardoc/en/package/filesystem/file-passwd/file-passwd-custom.xml <!-- $Revision: 1.1 $ --> <sect2 id="package.filesystem.file-passwd.file-passwd-custom"> <title>File_Passwd_Custom</title> <para>Manipulate custom formatted passwd files. (<link linkend="package.filesystem.file-passwd.file-passwd-common-childs.methods">inherited methods</link>)</para> &package.filesystem.file-passwd.file-passwd-custom.staticauth; &package.filesystem.file-passwd.file-passwd-custom.file-passwd-custom; &package.filesystem.file-passwd.file-passwd-custom.parse; &package.filesystem.file-passwd.file-passwd-custom.save; &package.filesystem.file-passwd.file-passwd-custom.adduser; &package.filesystem.file-passwd.file-passwd-custom.moduser; &package.filesystem.file-passwd.file-passwd-custom.changepasswd; &package.filesystem.file-passwd.file-passwd-custom.verifypasswd; &package.filesystem.file-passwd.file-passwd-custom.usemap; &package.filesystem.file-passwd.file-passwd-custom.getmap; &package.filesystem.file-passwd.file-passwd-custom.setmap; </sect2> <!-- 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 --> Index: peardoc/en/package/filesystem/file-passwd/file-passwd-custom/adduser.xml +++ peardoc/en/package/filesystem/file-passwd/file-passwd-custom/adduser.xml <!-- $Revision: 1.1 $ --> <refentry id="package.filesystem.file-passwd.file-passwd-custom.adduser"> <refnamediv> <refname><function>File_Passwd_Custom::addUser</function></refname> <refpurpose>Add an user</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef>mixed <function>File_Passwd_Custom::addUser</function></funcdef> <paramdef>string <parameter>$user</parameter></paramdef> <paramdef>string <parameter>$pass</parameter></paramdef> <paramdef>array <parameter><optional>$extra = array()</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.adduser.desc"> &title.desc; <para> The username must start with an alphabetical character and must NOT contain any other characters than alphanumerics, the underline and dash. </para> <para> The username MUST NOT contain the custom delimiter! </para> <para> If you use the 'name map' you should also use these naming in the supplied extra array, because your values would get mixed up if they are in the wrong order, which is always true if you DON'T use the 'name map'! </para> <para>So be warned and USE the 'name map'!</para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.adduser.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$user</parameter> </term> <listitem> <para> the name of the user to add </para> </listitem> </varlistentry> <varlistentry> <term> &type.string; <parameter>$pass</parameter> </term> <listitem> <para> the password of the user to add </para> </listitem> </varlistentry> <varlistentry> <term> &type.array; <parameter>$extra</parameter> </term> <listitem> <para> extra properties of user to add </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.adduser.return"> &title.returns; <para> &return.success-pearerror; </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.adduser.throws"> &title.throws; <para> <table> <title>&title.throws.errortable;</title> <tgroup cols="2"> <thead> <row> <entry>Error Code</entry> <entry>Summary</entry> </row> </thead> <tbody> <row> <entry>FILE_PASSWD_E_ALREADY_EXISTS</entry> <entry>user already exists</entry> </row> <row> <entry>FILE_PASSWD_E_INVALID_CHARS</entry> <entry>username contains illegal characters</entry> </row> <row> <entry>FILE_PASSWD_E_INVALID_CHARS</entry> <entry>any of the extra proporties contains the delimiter</entry> </row> <row> <entry>FILE_PASSWD_E_INVALID_ENC_MODE</entry> <entry>actual encryption mode is not supported</entry> </row> <row> <entry>FILE_PASSWD_E_UNDEFINED</entry> <entry>if passwd file is shadowed</entry> </row> </tbody> </tgroup> </table> </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.adduser.note"> &title.note; &note.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 --> Index: peardoc/en/package/filesystem/file-passwd/file-passwd-custom/changepasswd.xml +++ peardoc/en/package/filesystem/file-passwd/file-passwd-custom/changepasswd.xml <!-- $Revision: 1.1 $ --> <refentry id="package.filesystem.file-passwd.file-passwd-custom.changepasswd"> <refnamediv> <refname><function>File_Passwd_Custom::changePasswd</function></refname> <refpurpose>Change password</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef>mixed <function>File_Passwd_Custom::changePasswd</function></funcdef> <paramdef>string <parameter>$user</parameter></paramdef> <paramdef>string <parameter>$pass</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.changepasswd.desc"> &title.desc; <para>Change the password of a certain user.</para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.changepasswd.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$user</parameter> </term> <listitem> <para> the user whose password should be changed </para> </listitem> </varlistentry> <varlistentry> <term> &type.string; <parameter>$pass</parameter> </term> <listitem> <para> the new plaintext password </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.changepasswd.return"> &title.returns; <para> &return.success-pearerror; </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.changepasswd.throws"> &title.throws; <para> <table> <title>&title.throws.errortable;</title> <tgroup cols="2"> <thead> <row> <entry>Error Code</entry> <entry>Summary</entry> </row> </thead> <tbody> <row> <entry>FILE_PASSWD_E_EXISTS_NOT</entry> <entry>user doesn't exist</entry> </row> <row> <entry>FILE_PASSWD_INVALID_ENC_MODE</entry> <entry>actual encryption mode is not supported</entry> </row> </tbody> </tgroup> </table> </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.changepasswd.note"> &title.note; &note.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 --> Index: peardoc/en/package/filesystem/file-passwd/file-passwd-custom/file_passwd_custom.xml +++ peardoc/en/package/filesystem/file-passwd/file-passwd-custom/file_passwd_custom.xml <!-- $Revision: 1.1 $ --> <refentry id="package.filesystem.file-passwd.file-passwd-custom.file-passwd-custom"> <refnamediv> <refname><function>File_Passwd_Custom::File_Passwd_Custom</function></refname> <refpurpose>Constructor</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo>require_once 'File/Passwd/Custom.php';</funcsynopsisinfo> <funcprototype> <funcdef>object &amp;new <function>File_Passwd_custom</function></funcdef> <paramdef>string <parameter><optional>$file = 'passwd'</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.file-passwd-custom.desc"> &title.desc; <para> Initialize a new File_Passwd_Custom object with the specified path to passwd file. </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.file-passwd-custom.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$file</parameter> </term> <listitem> <para> path to passwd file </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.file-passwd-custom.return"> &title.returns; <para> Returns &type.object; <classname>File_Passwd_Custom</classname>. </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.file-passwd-custom.throws"> &title.throws; <para> Throws no exception. </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.file-passwd-custom.note"> &title.note; &note.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 --> Index: peardoc/en/package/filesystem/file-passwd/file-passwd-custom/getdelim.xml +++ peardoc/en/package/filesystem/file-passwd/file-passwd-custom/getdelim.xml <!-- $Revision: 1.1 $ --> <refentry id="package.filsystem.file-passwd.file-passwd-custom.getdelim"> <refnamediv> <refname><function>File_Passwd_Custom::getdelim</function></refname> <refpurpuse>Get delimiter</refpurpuse> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef>void <function>File_Passwd_Common::getdelim</function></funcdef> <paramdef/> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.filsystem.file-passwd.file-passwd-custom.getdelim.desc"> &title.desc; <para> Get the custom delimiting character. </para> </refsect1> <refsect1 id="package.filsystem.file-passwd.file-passwd-custom.getdelim.throws"> &title.throws; <para> Throws no Exception. </para> </refsect1> <refsect1 id="package.filsystem.file-passwd.file-passwd-custom.getdelim.return"> &title.returns; <para> Returns &type.string; custom delimiting character. </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.getdelim.note"> &title.note; &note.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 --> Index: peardoc/en/package/filesystem/file-passwd/file-passwd-custom/getencfunc.xml +++ peardoc/en/package/filesystem/file-passwd/file-passwd-custom/getencfunc.xml <!-- $Revision: 1.1 $ --> <refentry id="package.filesystem.file-passwd.file-passwd-custom.getencfunc"> <refnamediv> <refname><function>File_Passwd_Custom::getEncFunc</function></refname> <refpurpose>Get actual encryption function</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef>string <function>File_Passwd_Custom::getEncFunc</function></funcdef> <paramdef /> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.getencfunc.desc"> &title.desc; <para> Get actual encryption function. </para> <para> If the encryption function was set by array, e.g. array('File_Passwd', 'crypt_md5'), something similar like 'File_Passwd::crypt_md5' will be returned. </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.getencfunc.return"> &title.returns; <para> Returns &type.string; actual encryption function. </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.getencfunc.throws"> &title.throws; <para> Throws no Exception. </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.getencfunc.note"> &title.note; &note.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 --> Index: peardoc/en/package/filesystem/file-passwd/file-passwd-custom/getencfunc.xml.PHPEditBackup +++ peardoc/en/package/filesystem/file-passwd/file-passwd-custom/getencfunc.xml.PHPEditBackup <!-- $Revision: 1.1 $ --> <refentry id="package.filesystem.file-passwd.file-passwd-custom.getencfunc"> <refnamediv> <refname><function>File_Passwd_Custom::getEncFunc</function></refname> <refpurpose>Get actual encryption function</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef>string <function>File_Passwd_Custom::getEncFunc</function></funcdef> <paramdef /> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.getencfunc.desc"> &title.desc; <para> Get actual encryption function. </para> <para> If the encryption function was set by array, e.g. array('File_Passwd', 'crypt_md5'), something similar like 'File_Passwd::crypt_md5' will be returned. </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.getencfunc.return"> &title.returns; <para> Returns &type.string; actual encryption function. </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.getencfunc.throws"> &title.throws; <para> Throws <classname>PEAR_Error</classname> <constant>FILE_PASSWD_E_INVALID_ENC_MODE</constant>. </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.getencfunc.note"> &title.note; &note.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 --> Index: peardoc/en/package/filesystem/file-passwd/file-passwd-custom/getmap.xml +++ peardoc/en/package/filesystem/file-passwd/file-passwd-custom/getmap.xml <!-- $Revision: 1.1 $ --> <refentry id="package.filesystem.file-passwd.file-passwd-custom.getmap"> <refnamediv> <refname><function>File_Passwd_Custom::getMap</function></refname> <refpurpose>Get 'name map'</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef>array <function>File_Passwd_Custom::getMap</function></funcdef> <paramdef /> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.getmap.desc"> &title.desc; <para> Get the 'name map' which is used for the extra properties of the user. </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.getmap.return"> &title.returns; <para> Returns &type.array; 'name map'. </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.getmap.throws"> &title.throws; <para> Throws no exception. </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.getmap.see"> &title.see; <para> See <link linkend="package.filesystem.file-passwd.file-passwd-custom.setmap"> <function>File_Passwd_Custom::setMap</function> </link> </para> <para> See <link linkend="package.filesystem.file-passwd.file-passwd-custom.usemap"> <function>File_Passwd_Custom::useMap</function> </link> </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.getmap.note"> &title.note; &note.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 --> Index: peardoc/en/package/filesystem/file-passwd/file-passwd-custom/moduser.xml +++ peardoc/en/package/filesystem/file-passwd/file-passwd-custom/moduser.xml <!-- $Revision: 1.1 $ --> <refentry id="package.filesystem.file-passwd.file-passwd-custom.moduser"> <refnamediv> <refname><function>File_Passwd_Custom::modUser</function></refname> <refpurpose>Modify user</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef>mixed <function>File_Passwd_Custom::modUser</function></funcdef> <paramdef>string <parameter>$user</parameter></paramdef> <paramdef>array <parameter><optional>$properties = array()</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.moduser.desc"> &title.desc; <para> You shouldn't modify the password of the user with this method, use <link linkend="package.filesystem.file-passwd.file-passwd-custom.changepasswd"> <function>File_Passwd_Custom::changePasswd</function> </link> instead. </para> <para> You should use this method only if the 'name map' is used, too. </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.moduser.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$user</parameter> </term> <listitem> <para> the user to modify </para> </listitem> </varlistentry> <varlistentry> <term> &type.array; <parameter>$properties</parameter> </term> <listitem> <para> an associative array of properties to modify </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.moduser.return"> &title.returns; <para> &return.success-pearerror; </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.moduser.throws"> &title.throws; <para> <table> <title>&title.throws.errortable;</title> <tgroup cols="2"> <thead> <row> <entry>Error Code</entry> <entry>Summary</entry> </row> </thead> <tbody> <row> <entry>FILE_PASSWD_E_EXISTS_NOT</entry> <entry>user doesn't exists</entry> </row> <row> <entry>FILE_PASSWD_E_INVALID_CHARS</entry> <entry>any of the extra properties contains the delimiter</entry> </row> </tbody> </tgroup> </table> </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.moduser.see"> &title.see; <para> See <link linkend="package.filesystem.file-passwd.file-passwd-custom.usemap"> <function>File_Passwd_Custom::useMap</function> </link> </para> <para> See <link linkend="package.filesystem.file-passwd.file-passwd-custom.changepasswd"> <function>File_Passwd_Custom::changePasswd</function> </link> </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.moduser.note"> &title.note; &note.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 --> Index: peardoc/en/package/filesystem/file-passwd/file-passwd-custom/parse.xml +++ peardoc/en/package/filesystem/file-passwd/file-passwd-custom/parse.xml <!-- $Revision: 1.1 $ --> <refentry id="package.filesystem.file-passwd.file-passwd-custom.parse"> <refnamediv> <refname><function>File_Passwd_Custom::parse</function></refname> <refpurpose>Parse passwd file</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef>mixed <function>File_Passwd_Custom::parse</function></funcdef> <paramdef /> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.parse.desc"> &title.desc; <para> Parse the custom passwd file. &pdevrel; </para> <para> This usually happens in <link linkend="package.filesystem.file-passwd.file-passwd-common.load"> <function>File_Passwd_Custom::load</function> </link>. </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.parse.return"> &title.returns; <para> &return.success-pearerror; </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.parse.throws"> &title.throws; <para> Throws <classname>PEAR_Error</classname> FILE_PASSWD_E_INVALID_FORMAT, if passwd file has illegal format. </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.parse.note"> &title.note; &note.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 --> Index: peardoc/en/package/filesystem/file-passwd/file-passwd-custom/save.xml +++ peardoc/en/package/filesystem/file-passwd/file-passwd-custom/save.xml <!-- $Revision: 1.1 $ --> <refentry id="package.filesystem.file-passwd.file-passwd-custom.save"> <refnamediv> <refname><function>File_Passwd_Custom::save</function></refname> <refpurpose>Save changes</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef>mixed <function>File_Passwd_Custom::save</function></funcdef> <paramdef /> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.save.desc"> &title.desc; <para> Apply changes and rewrite passwd file. </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.save.return"> &title.returns; <para> &return.success-pearerror; </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.save.throws"> &title.throws; <para> <table> <title>&title.throws.errortable;</title> <tgroup cols="2"> <thead> <row> <entry>Error Code</entry> <entry>Summary</entry> </row> </thead> <tbody> <row> <entry>FILE_PASSWD_E_DIR_NOT_CREATED</entry> <entry>directory in which the passwd file should reside couldn't be created</entry> </row> <row> <entry>FILE_PASSWD_E_FILE_NOT_OPENED</entry> <entry>passwd file couldn't be opened in write mode</entry> </row> <row> <entry>FILE_PASSWD_E_FILE_NOT_LOCKED</entry> <entry>passwd file couldn't be locked exclusively</entry> </row> <row> <entry>FILE_PASSWD_E_FILE_NOT_UNLOCKED</entry> <entry>passwd file couldn't be unlocked</entry> </row> <row> <entry>FILE_PASSWD_E_FILE_NOT_CLOSED</entry> <entry>passwd file couldn't be closed</entry> </row> </tbody> </tgroup> </table> </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.save.note"> &title.note; &note.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 --> Index: peardoc/en/package/filesystem/file-passwd/file-passwd-custom/setdelim.xml +++ peardoc/en/package/filesystem/file-passwd/file-passwd-custom/setdelim.xml <!-- $Revision: 1.1 $ --> <refentry id="package.filsystem.file-passwd.file-passwd-custom.setdelim"> <refnamediv> <refname><function>File_Passwd_Custom::setDelim</function></refname> <refpurpuse>Set delimiter</refpurpuse> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef>void <function>File_Passwd_Common::setDelim</function></funcdef> <paramdef>string <parameter>$delim</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.filsystem.file-passwd.file-passwd-custom.setdelim.desc"> &title.desc; <para> Set the custom delimiting character. </para> </refsect1> <refsect1 id="package.filsystem.file-passwd.file-passwd-custom.setdelim.param"> &title.param; <para> <variablelist> <valistentry> <term> &type.string; <parameter>$delim</parameter> </term> <listitem> <para> the custom delimiting character </para> </listitem> </valistentry> </variablelist> </para> </refsect1> <refsect1 id="package.filsystem.file-passwd.file-passwd-custom.setdelim.throws"> &title.throws; <para> Throws no Exception. </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.setdelim.note"> &title.note; &note.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 --> Index: peardoc/en/package/filesystem/file-passwd/file-passwd-custom/setencfunc.xml +++ peardoc/en/package/filesystem/file-passwd/file-passwd-custom/setencfunc.xml <!-- $Revision: 1.1 $ --> <refentry id="package.filesystem.file-passwd.file-passwd-custom.setencfunc"> <refnamediv> <refname><function>File_Passwd_Custom::setEncFunc</function></refname> <refpurpose>Set encryption function</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef>mixed <function>File_Passwd_Custom::setEncFunc</function></funcdef> <paramdef>mixed <parameter>$function</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.setencfunc.desc"> &title.desc; <para> Set encryption function to use. </para> <para> You can set your custom encryption function by a &type.string; representing a sole function or by a &type.array; referencing an object/class method. </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.setencfunc.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.mixed; <parameter>$function</parameter> </term> <listitem> <para> encryption function to use (&type.string; or &type.array;) </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.setencfunc.return"> &title.returns; <para> &return.success-pearerror; </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.setencfunc.throws"> &title.throws; <para> Throws <classname>PEAR_Error</classname> <constant>FILE_PASSWD_E_INVALID_ENC_MODE</constant> if supplied function is not callable. </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.setencfunc.note"> &title.note; &note.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 --> Index: peardoc/en/package/filesystem/file-passwd/file-passwd-custom/setencfunc.xml.PHPEditBackup +++ peardoc/en/package/filesystem/file-passwd/file-passwd-custom/setencfunc.xml.PHPEditBackup <!-- $Revision: 1.1 $ --> <refentry id="package.filesystem.file-passwd.file-passwd-custom.setencfunc"> <refnamediv> <refname><function>File_Passwd_Custom::setEncFunc</function></refname> <refpurpose>Set encryption mode</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef>mixed <function>File_Passwd_Custom::setEncFunc</function></funcdef> <paramdef>mixed <parameter>$function</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.setencfunc.desc"> &title.desc; <para> Set encryption function to use. </para> <para> You can set your custom encryption function by a &type.string; or &type.array; </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.setencfunc.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.mixed; <parameter>$function</parameter> </term> <listitem> <para> encryption function to use (&type.string; or &type.array;) </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.setencfunc.return"> &title.returns; <para> &return.success-pearerror; </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.setencfunc.throws"> &title.throws; <para> Throws <classname>PEAR_Error</classname> <constant>FILE_PASSWD_E_INVALID_ENC_MODE</constant> if supplied function is not callable. </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.setencfunc.note"> &title.note; &note.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 --> Index: peardoc/en/package/filesystem/file-passwd/file-passwd-custom/setmap.xml +++ peardoc/en/package/filesystem/file-passwd/file-passwd-custom/setmap.xml <!-- $Revision: 1.1 $ --> <refentry id="package.filesystem.file-passwd.file-passwd-custom.setmap"> <refnamediv> <refname><function>File_Passwd_Custom::setMap</function></refname> <refpurpose>Set 'name map'</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef>mixed <function>File_Passwd_Custom::setMap</function></funcdef> <paramdef>mixed <parameter><optional>$map = array()</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.setmap.desc"> &title.desc; <para>Set the 'name map' to use with the extra properties of the user.</para> <para>This map is used for naming the associative array of the extra properties.</para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.setmap.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.array; <parameter>$map</parameter> </term> <listitem> <para> the 'name map' </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.setmap.return"> &title.returns; <para> &return.success-pearerror; </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.setmap.throws"> &title.throws; <para> Throws <classname>PEAR_Error</classname> FILE_PASSWD_E_PARAM_MUST_BE_ARRAY, if the supplied 'name map' was not of type array. </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.setmap.see"> &title.see; <para> See <link linkend="package.filesystem.file-passwd.file-passwd-custom.usemap"> <function>File_Passwd_Custom::useMap</function> </link> </para> <para> See <link linkend="package.filesystem.file-passwd.file-passwd-custom.getmap"> <function>File_Passwd_Custom::getMap</function> </link> </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.setmap.note"> &title.note; &note.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 --> Index: peardoc/en/package/filesystem/file-passwd/file-passwd-custom/staticauth.xml +++ peardoc/en/package/filesystem/file-passwd/file-passwd-custom/staticauth.xml <!-- $Revision: 1.1 $ --> <refentry id="package.filesystem.file-passwd.file-passwd-custom.staticauth"> <refnamediv> <refname><function>File_Passwd_Custom::staticAuth</function></refname> <refpurpose>Fast authentication</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'File/Passwd/Custom.php'; </funcsynopsisinfo> <funcprototype> <funcdef>mixed <function>File_Passwd_Custom::staticAuth</function></funcdef> <paramdef>string <parameter>$file</parameter></paramdef> <paramdef>string <parameter>$user</parameter></paramdef> <paramdef>string <parameter>$pass</parameter></paramdef> <paramdef>array <parameter>$opts</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.staticauth.desc"> &title.desc; <para> Static user authentication. </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.staticauth.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$file</parameter> </term> <listitem> <para> path to passwd file </para> </listitem> </varlistentry> <varlistentry> <term> &type.string; <parameter>$user</parameter> </term> <listitem> <para> user to authenticate </para> </listitem> </varlistentry> <varlistentry> <term> &type.string; <parameter>$pass</parameter> </term> <listitem> <para> plaintext password </para> </listitem> </varlistentry> <varlistentry> <term> &type.array; <parameter>$opts</parameter> </term> <listitem> <para> A two element array containing the encryption function to use and the delimiting character: e.g. array('md5', '|') </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.staticauth.return"> &title.returns; <para> Returns &true; if authenticated, &false; if not or <classname>PEAR_Error</classname> on failure. </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.staticauth.throws"> &title.throws; <para> <table> <title>&title.throws.errortable;</title> <tgroup cols="2"> <thead> <row> <entry>Error Code</entry> <entry>Summary</entry> </row> </thead> <tbody> <row> <entry>FILE_PASSWD_E_NOT_EXISTS</entry> <entry>passwd file doesn't exist</entry> </row> <row> <entry>FILE_PASSWD_E_FILE_NOT_OPENED</entry> <entry>passwd file couldn't be opened in read mode</entry> </row> <row> <entry>FILE_PASSWD_E_FILE_NOT_LOCKED</entry> <entry>passwd file couldn't be locked shared</entry> </row> <row> <entry>FILE_PASSWD_E_FILE_NOT_UNLOCKED</entry> <entry>passwd file couldn't be unlocked (only if auth fails)</entry> </row> <row> <entry>FILE_PASSWD_E_FILE_NOT_CLOSED</entry> <entry>passwd file couldn't be closed (only if auth fails)</entry> </row> </tbody> </tgroup> </table> </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.staticauth.note"> &title.note; &note.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 --> Index: peardoc/en/package/filesystem/file-passwd/file-passwd-custom/usemap.xml +++ peardoc/en/package/filesystem/file-passwd/file-passwd-custom/usemap.xml <!-- $Revision: 1.1 $ --> <refentry id="package.filesystem.file-passwd.file-passwd-custom.usemap"> <refnamediv> <refname><function>File_Passwd_Custom::useMap</function></refname> <refpurpose>Whether to use the 'name map'</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef>boolean <function>File_Passwd_Custom::useMap</function></funcdef> <paramdef>boolean <parameter> <optional>$bool = null</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.usemap.desc"> &title.desc; <para> Whether to use the 'name map' of the extra properties or not. </para> <para> You first must supply a 'name map' to use it. </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.usemap.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.bool; <parameter>$bool</parameter> </term> <listitem> <para> whether to use the 'name map' or not </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.usemap.return"> &title.returns; <para> Returns &type.bool; &true; if you set a value, or the actual value if called without param. </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.usemap.throws"> &title.throws; <para> Throws no exception. </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.usemap.see"> &title.see; <para> See <link linkend="package.filesystem.file-passwd.file-passwd-custom.getmap"> <function>File_Passwd_Custom::getMap</function> </link> </para> <para> See <link linkend="package.filesystem.file-passwd.file-passwd-custom.setmap"> <function>File_Passwd_Custom::setMap</function> </link> </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.usemap.note"> &title.note; &note.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 --> Index: peardoc/en/package/filesystem/file-passwd/file-passwd-custom/verifypasswd.xml +++ peardoc/en/package/filesystem/file-passwd/file-passwd-custom/verifypasswd.xml <!-- $Revision: 1.1 $ --> <refentry id="package.filesystem.file-passwd.file-passwd-custom.verifypasswd"> <refnamediv> <refname><function>File_Passwd_Custom::verifyPasswd</function></refname> <refpurpose>Verify password</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef>mixed <function>File_Passwd_Custom::verifyPasswd</function></funcdef> <paramdef>string <parameter>$user</parameter></paramdef> <paramdef>string <parameter>$pass</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.verifypasswd.desc"> &title.desc; <para> Verify the password of a certain user. </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.verifypasswd.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$user</parameter> </term> <listitem> <para> the user whose password should be verified </para> </listitem> </varlistentry> <varlistentry> <term> &type.string; <parameter>$pass</parameter> </term> <listitem> <para> the password to verify </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.verifypasswd.return"> &title.returns; <para> Returns &true; if passwords equal, &false; if they don't or <classname>PEAR_Error</classname> on failure. </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.verifypasswd.throws"> &title.throws; <para> <table> <title>&title.throws.errortable;</title> <tgroup cols="2"> <thead> <row> <entry>Error Code</entry> <entry>Summary</entry> </row> </thead> <tbody> <row> <entry>FILE_PASSWD_E_EXISTS_NOT</entry> <entry>user doesn't exist</entry> </row> <row> <entry>FILE_PASSWD_E_INVALID_ENC_MODE</entry> <entry>actual encryption mode isn't supported</entry> </row> </tbody> </tgroup> </table> </para> </refsect1> <refsect1 id="package.filesystem.file-passwd.file-passwd-custom.verifypasswd.note"> &title.note; &note.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 -->
« previous php.pear.doc (#2085) next »