cvs: peardoc /ja/package/filesystem file-smbpasswd.xml /ja/package/filesystem/file-smbpasswd addaccount.xml addaccountencrypted.xml addmachine.xml
adduser.xml delaccount.xml deluser.xml file-smbpasswd.xml getaccounts.xml getfile.xml intro.xml load.xml lock.xml modaccount.xml
modaccountencrypted.xml moduser.xml printaccounts.xml save.xml unlock.xml verifyaccount.xml verifyaccountencrypted.xml

From: Date: Sun, 19 Jun 2005 17:06:42 +0000
Subject: cvs: peardoc /ja/package/filesystem file-smbpasswd.xml /ja/package/filesystem/file-smbpasswd addaccount.xml addaccountencrypted.xml addmachine.xml
adduser.xml delaccount.xml deluser.xml file-smbpasswd.xml getaccounts.xml getfile.xml intro.xml load.xml lock.xml modaccount.xml
modaccountencrypted.xml moduser.xml printaccounts.xml save.xml unlock.xml verifyaccount.xml verifyaccountencrypted.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-6373@lists.php.net to get a copy of this message
elf Sun Jun 19 13:06:42 2005 EDT Added files: /peardoc/ja/package/filesystem file-smbpasswd.xml /peardoc/ja/package/filesystem/file-smbpasswd addaccount.xml addaccountencrypted.xml addmachine.xml adduser.xml delaccount.xml deluser.xml file-smbpasswd.xml getaccounts.xml getfile.xml intro.xml load.xml lock.xml modaccount.xml modaccountencrypted.xml moduser.xml printaccounts.xml save.xml unlock.xml verifyaccount.xml verifyaccountencrypted.xml Log: o added japanese manual(thanks SHIMOOKA)

http://cvs.php.net/co.php/peardoc/ja/package/filesystem/file-smbpasswd.xml?r=1.1&p=1 Index: peardoc/ja/package/filesystem/file-smbpasswd.xml +++ peardoc/ja/package/filesystem/file-smbpasswd.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: shimooka Status: ready --> <sect1 id="package.filesystem.file-smbpasswd"> <title>File_SMBPasswd</title> <para> SAMBA パスワード形式のファイルを管理するための API を提供します。 </para> &package.filesystem.file-smbpasswd.intro; &package.filesystem.file-smbpasswd.file-smbpasswd; &package.filesystem.file-smbpasswd.load; &package.filesystem.file-smbpasswd.getfile; &package.filesystem.file-smbpasswd.getaccounts; &package.filesystem.file-smbpasswd.addaccountencrypted; &package.filesystem.file-smbpasswd.addaccount; &package.filesystem.file-smbpasswd.adduser; &package.filesystem.file-smbpasswd.addmachine; &package.filesystem.file-smbpasswd.modaccountencrypted; &package.filesystem.file-smbpasswd.modaccount; &package.filesystem.file-smbpasswd.moduser; &package.filesystem.file-smbpasswd.delaccount; &package.filesystem.file-smbpasswd.deluser; &package.filesystem.file-smbpasswd.verifyaccountencrypted; &package.filesystem.file-smbpasswd.verifyaccount; &package.filesystem.file-smbpasswd.lock; &package.filesystem.file-smbpasswd.unlock; &package.filesystem.file-smbpasswd.save; &package.filesystem.file-smbpasswd.printaccounts; </sect1> <!-- 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/ja/package/filesystem/file-smbpasswd/addaccount.xml?r=1.1&p=1 Index: peardoc/ja/package/filesystem/file-smbpasswd/addaccount.xml +++ peardoc/ja/package/filesystem/file-smbpasswd/addaccount.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: shimooka Status: ready --> <refentry id="package.filesystem.file-smbpasswd.addaccount"> <refnamediv> <refname>File_SMBPasswd::addAccount()</refname> <refpurpose>与えられたプレーンテキストなパスワードで新規アカウントを追加する</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <!-- <funcsynopsisinfo> require_once 'File/SMBPasswd.php'; </funcsynopsisinfo> --> <funcprototype> <funcdef>mixed <function>File_SMBPasswd::addAccount</function></funcdef> <paramdef>string <parameter>$user</parameter></paramdef> <paramdef>int <parameter>$userid</parameter></paramdef> <paramdef>string <parameter><optional>$pass = ''</optional></parameter></paramdef> <paramdef>string <parameter><optional>$comment = ''</optional></parameter></paramdef> <paramdef>string <parameter><optional>$flags = '[U ]'</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.filesystem.file-smbpasswd.addaccount.desc"> &title.desc; <para> このメソッドは パスワードがプレーンテキストで与えられる必要があることを除き、 <link linkend="package.filesystem.file-smbpasswd.addaccountencrypted"> <function>File_SMBPasswd::addAccountEncrypted</function> </link> と同様に動作します。 暗号化は内部で行われます。 </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.addaccount.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $user</parameter> - 追加するユーザー名 </para> </listitem> <listitem> <para> <parameter>int $userid</parameter> - ユーザーのユーザーID </para> </listitem> <listitem> <para> <parameter>string $pass</parameter> - プレーンテキストでのパスワード </para> </listitem> <listitem> <para> <parameter>string $comment</parameter> - コメント </para> </listitem> <listitem> <para> <parameter>string $flags</parameter> - フラグ </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.addaccount.return"> &title.returns; <para> <parameter>mixed</parameter> - &return.success-pearerror; </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.addaccount.note"> &title.note; &note.notstatic; <para> 追加するユーザーはすでにシステムパスワードファイルに存在していなければ ならないことに注意してください。 </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.addaccount.see"> &title.see; <para> <simplelist> <member> <link linkend="package.filesystem.file-smbpasswd.adduser"> <function>File_SMBPasswd::addUser</function> </link> </member> <member> <link linkend="package.filesystem.file-smbpasswd.addmachine"> <function>File_SMBPasswd::addMachine</function> </link> </member> <member> <link linkend="package.filesystem.file-smbpasswd.addaccountencrypted"> <function>File_SMBPasswd::addAccountEncrypted</function> </link> </member> </simplelist> </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.addaccount.example"> &title.example; <example> <title><function>File_SMBPasswd::addAccount</function> の使用例</title> <programlisting role="php"> <![CDATA[ <?php require_once 'File/SMBPasswd.php'; // ユーザー mbretter を追加する $fh = new File_SMBPasswd('/usr/local/private/smbpasswd'); $fh->load(); $status = $fh->addAccount( 'mbretter', 1004, 'MyPw', 'Michael Bretterklieber'); if (PEAR::isError($status)) { // エラーを処理する } else { // 処理を続ける $fh->save(); } ?> ]]> </programlisting> </example> </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/ja/package/filesystem/file-smbpasswd/addaccountencrypted.xml?r=1.1&p=1 Index: peardoc/ja/package/filesystem/file-smbpasswd/addaccountencrypted.xml +++ peardoc/ja/package/filesystem/file-smbpasswd/addaccountencrypted.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: shimooka Status: ready --> <refentry id="package.filesystem.file-smbpasswd.addaccountencrypted"> <refnamediv> <refname>File_SMBPasswd::addAccountEncrypted()</refname> <refpurpose>あらかじめ暗号化されたパスワードで新規ユーザーを追加する</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <!-- <funcsynopsisinfo> require_once 'File/SMBPasswd.php'; </funcsynopsisinfo> --> <funcprototype> <funcdef>mixed <function>File_SMBPasswd::addAccountEncrypted</function></funcdef> <paramdef>string <parameter>$user</parameter></paramdef> <paramdef>int <parameter>$userid</parameter></paramdef> <paramdef>string <parameter><optional>$lmhash = ''</optional></parameter></paramdef> <paramdef>string <parameter><optional>$nthash = ''</optional></parameter></paramdef> <paramdef>string <parameter><optional>$comment = ''</optional></parameter></paramdef> <paramdef>string <parameter><optional>$flags = '[U ]'</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.filesystem.file-smbpasswd.addaccountencrypted.desc"> &title.desc; <para> 既存のアカウントを修正します。 パスワードは前もって暗号化されている必要があります。 </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.addaccountencrypted.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $user</parameter> - 追加するユーザー名 </para> </listitem> <listitem> <para> <parameter>int $userid</parameter> - ユーザーのユーザーID </para> </listitem> <listitem> <para> <parameter>string $lmhash</parameter> - LAN マネージャハッシュ </para> </listitem> <listitem> <para> <parameter>string $nthash</parameter> - NT ハッシュ </para> </listitem> <listitem> <para> <parameter>string $comment</parameter> - コメント </para> </listitem> <listitem> <para> <parameter>string $flags</parameter> - フラグ </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.addaccountencrypted.return"> &title.returns; <para> <parameter>mixed</parameter> - &return.success-pearerror; </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.addaccountencrypted.note"> &title.note; &note.notstatic; <para> 追加するユーザーはすでにシステムパスワードファイルに存在していなければ ならないことに注意してください。 </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.addaccountencrypted.see"> &title.see; <para> <simplelist> <member> <link linkend="package.filesystem.file-smbpasswd.modaccountencrypted"> <function>File_SMBPasswd::modAccountEncrypted</function> </link> </member> <member> <link linkend="package.filesystem.file-smbpasswd.moduser"> <function>File_SMBPasswd::modUser</function> </link> </member> <member> <link linkend="package.filesystem.file-smbpasswd.modaccount"> <function>File_SMBPasswd::modAccount</function> </link> </member> </simplelist> </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.addaccountencrypted.example"> &title.example; <example> <title><function>File_SMBPasswd::addAccountEncrypted</function> の使用例</title> <programlisting role="php"> <![CDATA[ <?php require_once 'File/SMBPasswd.php'; // アカウント mbretter を追加する $fh = new File_SMBPasswd('/usr/local/private/smbpasswd'); $fh->load(); $status = $fh->addAccountEncrypted( 'mbretter', 1005, '75BA30198E6D1975AAD3B435B51404EE', 'FC156AF7EDCD6C0EDDE3337D427F4EAC', 'Michael Bretterklieber'); if (PEAR::isError($status)) { // エラーを処理する } else { $fh->save(); } ?> ]]> </programlisting> </example> </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/ja/package/filesystem/file-smbpasswd/addmachine.xml?r=1.1&p=1 Index: peardoc/ja/package/filesystem/file-smbpasswd/addmachine.xml +++ peardoc/ja/package/filesystem/file-smbpasswd/addmachine.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: shimooka Status: ready --> <refentry id="package.filesystem.file-smbpasswd.addmachine"> <refnamediv> <refname>File_SMBPasswd::addMachine()</refname> <refpurpose>与えられたプレーンテキストなパスワードで 新規マシンアカウントを追加する</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <!-- <funcsynopsisinfo> require_once 'File/SMBPasswd.php'; </funcsynopsisinfo> --> <funcprototype> <funcdef>mixed <function>File_SMBPasswd::addMachine</function></funcdef> <paramdef>string <parameter>$machine</parameter></paramdef> <paramdef>int <parameter>$userid</parameter></paramdef> <paramdef>string <parameter><optional>$comment = ''</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.filesystem.file-smbpasswd.addmachine.desc"> &title.desc; <para> このメソッドはフラグがマシンアカウントを意味し、 $ が暗黙的にマシン名に追加されることを除き、 <link linkend="package.filesystem.file-smbpasswd.addaccount"> <function>File_SMBPasswd::addAccount</function> </link> と同様に動作します。 </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.addmachine.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $machine</parameter> - 追加するマシン名 </para> </listitem> <listitem> <para> <parameter>int $userid</parameter> - ユーザーのユーザーID </para> </listitem> <listitem> <para> <parameter>string $comment</parameter> - コメント </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.addmachine.return"> &title.returns; <para> <parameter>mixed</parameter> - &return.success-pearerror; </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.addmachine.note"> &title.note; &note.notstatic; <para> 追加するマシンはすでにシステムパスワードファイルに存在していなければ ならないことに注意してください。 </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.addmachine.see"> &title.see; <para> <simplelist> <member> <link linkend="package.filesystem.file-smbpasswd.addaccount"> <function>File_SMBPasswd::addAccount</function> </link> </member> <member> <link linkend="package.filesystem.file-smbpasswd.adduser"> <function>File_SMBPasswd::addUser</function> </link> </member> <member> <link linkend="package.filesystem.file-smbpasswd.addaccountencrypted"> <function>File_SMBPasswd::addAccountEncrypted</function> </link> </member> </simplelist> </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.addmachine.example"> &title.example; <example> <title><function>File_SMBPasswd::addMachine</function> の使用例</title> <programlisting role="php"> <![CDATA[ <?php require_once 'File/SMBPasswd.php'; // ユーザー mbretter を追加する $fh = new File_SMBPasswd('/usr/local/private/smbpasswd'); $fh->load(); $status = $fh->addMachine( 'mypc', 10004, 'My Turbo PC'); if (PEAR::isError($status)) { // エラーを処理する } else { // 処理を続ける $fh->save(); } ?> ]]> </programlisting> </example> </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/ja/package/filesystem/file-smbpasswd/adduser.xml?r=1.1&p=1 Index: peardoc/ja/package/filesystem/file-smbpasswd/adduser.xml +++ peardoc/ja/package/filesystem/file-smbpasswd/adduser.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: shimooka Status: ready --> <refentry id="package.filesystem.file-smbpasswd.adduser"> <refnamediv> <refname>File_SMBPasswd::addUser()</refname> <refpurpose>与えられたプレーンテキストなパスワードで新規アカウントを追加する</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <!-- <funcsynopsisinfo> require_once 'File/SMBPasswd.php'; </funcsynopsisinfo> --> <funcprototype> <funcdef>mixed <function>File_SMBPasswd::addUser</function></funcdef> <paramdef>string <parameter>$user</parameter></paramdef> <paramdef>int <parameter>$userid</parameter></paramdef> <paramdef>string <parameter><optional>$pass = ''</optional></parameter></paramdef> <paramdef>string <parameter><optional>$comment = ''</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.filesystem.file-smbpasswd.adduser.desc"> &title.desc; <para> このメソッドはフラグがユーザーアカウントを意味することを除き、 <link linkend="package.filesystem.file-smbpasswd.addaccount"> <function>File_SMBPasswd::addAccount</function> </link> と同様に動作します。 </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.adduser.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $user</parameter> - 追加するユーザー名 </para> </listitem> <listitem> <para> <parameter>int $userid</parameter> - ユーザーのユーザーID </para> </listitem> <listitem> <para> <parameter>string $pass</parameter> - プレーンテキストでのパスワード </para> </listitem> <listitem> <para> <parameter>string $comment</parameter> - コメント </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.adduser.return"> &title.returns; <para> <parameter>mixed</parameter> - &return.success-pearerror; </para> </refsect1> <refsect1 id="package.filesystem.file.file-smbpasswd.adduser.note"> &title.note; &note.notstatic; <para> 追加するユーザーはすでにシステムパスワードファイルに存在していなければ ならないことに注意してください。 </para> </refsect1> <refsect1 id="package.filesystem.file.file-smbpasswd.adduser.see"> &title.see; <para> <simplelist> <member> <link linkend="package.filesystem.file-smbpasswd.addaccount"> <function>File_SMBPasswd::addAccount</function> </link> </member> <member> <link linkend="package.filesystem.file-smbpasswd.addmachine"> <function>File_SMBPasswd::addMachine</function> </link> </member> <member> <link linkend="package.filesystem.file-smbpasswd.addaccountencrypted"> <function>File_SMBPasswd::addAccountEncrypted</function> </link> </member> </simplelist> </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.adduser.example"> &title.example; <example> <title><function>File_SMBPasswd::addUser</function> の使用例</title> <programlisting role="php"> <![CDATA[ <?php require_once 'File/SMBPasswd.php'; // ユーザー mbretter を追加する $fh = new File_SMBPasswd('/usr/local/private/smbpasswd'); $fh->load(); $status = $fh->addUser( 'mbretter', 1004, 'MyPw', 'Michael Bretterklieber'); if (PEAR::isError($status)) { // エラーを処理する } else { // 処理を続ける $fh->save(); } ?> ]]> </programlisting> </example> </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/ja/package/filesystem/file-smbpasswd/delaccount.xml?r=1.1&p=1 Index: peardoc/ja/package/filesystem/file-smbpasswd/delaccount.xml +++ peardoc/ja/package/filesystem/file-smbpasswd/delaccount.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: shimooka Status: ready --> <refentry id="package.filesystem.file-smbpasswd.delaccount"> <refnamediv> <refname>File_SMBPasswd::delAccount()</refname> <refpurpose>既存のアカウントを削除する</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <!-- <funcsynopsisinfo> require_once 'File/SMBPasswd.php'; </funcsynopsisinfo> --> <funcprototype> <funcdef>mixed <function>File_SMBPasswd::delAccount</function></funcdef> <paramdef>string <parameter>$name</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.filesystem.file-smbpasswd.delaccount.desc"> &title.desc; <para> このメソッドは、既存のアカウントを削除します。 </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.delaccount.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $name</parameter> - 削除するアカウント名 (ユーザー名もしくはマシン名) </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.delaccount.return"> &title.returns; <para> <parameter>mixed</parameter> - &return.success-pearerror; </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.delaccount.see"> &title.see; <para> <simplelist> <member> <link linkend="package.filesystem.file-smbpasswd.deluser"> <function>File_SMBPasswd::delUser</function> </link> </member> </simplelist> </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.delaccount.example"> &title.example; <example> <title><function>File_SMBPasswd::delAccount</function> の使用例</title> <programlisting role="php"> <![CDATA[ <?php require_once 'File/SMBPasswd.php'; // ユーザー mbretter を削除する $fh = new File_SMBPasswd('/usr/local/private/smbpasswd'); $fh->load(); $status = $fh->delAccount('mbretter'); if (PEAR::isError($status)) { // エラーを処理する } else { $fh->save(); } ?> ]]> </programlisting> </example> </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/ja/package/filesystem/file-smbpasswd/deluser.xml?r=1.1&p=1 Index: peardoc/ja/package/filesystem/file-smbpasswd/deluser.xml +++ peardoc/ja/package/filesystem/file-smbpasswd/deluser.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: shimooka Status: ready --> <refentry id="package.filesystem.file-smbpasswd.deluser"> <refnamediv> <refname>File_SMBPasswd::delUser()</refname> <refpurpose>既存のユーザーを削除する</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <!-- <funcsynopsisinfo> require_once 'File/SMBPasswd.php'; </funcsynopsisinfo> --> <funcprototype> <funcdef>mixed <function>File_SMBPasswd::delUser</function></funcdef> <paramdef>string <parameter>$user</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.filesystem.file-smbpasswd.deluser.desc"> &title.desc; <para> このメソッドは、既存のユーザーを削除します。 </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.deluser.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $user</parameter> - 削除するユーザー名 </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.deluser.return"> &title.returns; <para> <parameter>mixed</parameter> - &return.success-pearerror; </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.deluser.see"> &title.see; <para> <simplelist> <member> <link linkend="package.filesystem.file-smbpasswd.delaccount"> <function>File_SMBPasswd::delAccount</function> </link> </member> </simplelist> </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.deluser.example"> &title.example; <example> <title><function>File_SMBPasswd::delAccount</function> の使用例</title> <programlisting role="php"> <![CDATA[ <?php require_once 'File/SMBPasswd.php'; // ユーザー mbretter を削除する $fh = new File_SMBPasswd('/usr/local/private/smbpasswd'); $fh->load(); $status = $fh->delUser('mbretter'); if (PEAR::isError($status)) { // エラーを処理する } else { $fh->save(); } ?> ]]> </programlisting> </example> </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/ja/package/filesystem/file-smbpasswd/file-smbpasswd.xml?r=1.1&p=1 Index: peardoc/ja/package/filesystem/file-smbpasswd/file-smbpasswd.xml +++ peardoc/ja/package/filesystem/file-smbpasswd/file-smbpasswd.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: shimooka Status: ready --> <refentry id="package.filesystem.file-smbpasswd.file-smbpasswd"> <refnamediv> <refname>File_SMBPasswd::File_SMBPasswd()</refname> <refpurpose>コンストラクタ</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'File/SMBPasswd.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>File_SMBPasswd::File_SMBPasswd</function></funcdef> <paramdef> string <parameter>$file</parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.filesystem.file-smbpasswd.file-smbpasswd.desc"> &title.desc; <para> 新規 <classname>File_SMBPasswd</classname> オブジェクトを生成し、 与えられたファイルにバインドします。 </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.file-smbpasswd.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $file</parameter> - 読み込む SAMBA パスワードファイル </para> </listitem> </itemizedlist> </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/ja/package/filesystem/file-smbpasswd/getaccounts.xml?r=1.1&p=1 Index: peardoc/ja/package/filesystem/file-smbpasswd/getaccounts.xml +++ peardoc/ja/package/filesystem/file-smbpasswd/getaccounts.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: shimooka Status: ready --> <refentry id="package.filesystem.file-smbpasswd.getaccounts"> <refnamediv> <refname>File_SMBPasswd::getAccounts()</refname> <refpurpose>アカウントのプロパティの値を取得する</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <!-- <funcsynopsisinfo> require_once 'File_SMBPasswd.php'; </funcsynopsisinfo> --> <funcprototype> <funcdef>array <function>File_SMBPasswd::getAccounts</function></funcdef> <paramdef> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.filesystem.file-smbpasswd.getaccounts.desc"> &title.desc; <para> アカウントのプロパティの値を取得します。このプロパティは現在の smbpasswd ファイルにある全てのアカウントを含みます。 </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.getaccounts.return"> &title.returns; <para> 全てのアカウントを含む配列 </para> </refsect1> <refsect1 id="package.filesystem.file.file-smbpasswd.getaccounts.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 --> http://cvs.php.net/co.php/peardoc/ja/package/filesystem/file-smbpasswd/getfile.xml?r=1.1&p=1 Index: peardoc/ja/package/filesystem/file-smbpasswd/getfile.xml +++ peardoc/ja/package/filesystem/file-smbpasswd/getfile.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: shimooka Status: ready --> <refentry id="package.filesystem.file-smbpasswd.getfile"> <refnamediv> <refname>File_SMBPasswd::getFile()</refname> <refpurpose>ファイルプロパティの値を取得する</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <!-- <funcsynopsisinfo> require_once 'File_SMBPasswd.php'; </funcsynopsisinfo> --> <funcprototype> <funcdef>string <function>File_SMBPasswd::getFile</function></funcdef> <paramdef> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.filesystem.file-smbpasswd.getfile.desc"> &title.desc; <para> ファイルプロパティの値を取得します。このプロパティは現在の smbpasswd ファイルのファイル名を含んでいます。 </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.getfile.return"> &title.returns; <para> ファイル名を含む文字列 </para> </refsect1> <refsect1 id="package.filesystem.file.file-smbpasswd.getfile.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 --> http://cvs.php.net/co.php/peardoc/ja/package/filesystem/file-smbpasswd/intro.xml?r=1.1&p=1 Index: peardoc/ja/package/filesystem/file-smbpasswd/intro.xml +++ peardoc/ja/package/filesystem/file-smbpasswd/intro.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: shimooka Status: ready --> <refentry id="package.filesystem.file-smbpasswd.intro"> <refnamediv> <refname>導入</refname> <refpurpose>ファイルフォーマット</refpurpose> </refnamediv> <refsect1 id="package.filesystem.file-smbpasswd.intro.file"> <title>SAMBA パスワードスタイルのファイル</title> <para> SAMBA は CIFS/SMB のフリーな実装です。UNIX と Windows のパスワード暗号化は異なりますが、その結果 SAMBA は NT ハッシュもしくは LAN マネージャハッシュのいずれかで暗号化されたパスワードを含むファイルを 用意する必要があります。LAN マネージャハッシュは脆弱で、 もはや使用すべきではありません。NT ハッシュは MD4 に基づいていますが、 ソルトは使用されていません。その結果、同一パスワードを持つユーザーは同一の NT ハッシュを持ちます。SAMBA サーバが PDC として動作する場合、 このファイルにはマシンアカウントもストアされ、エントリの終端には $ が付加されています。 </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/ja/package/filesystem/file-smbpasswd/load.xml?r=1.1&p=1 Index: peardoc/ja/package/filesystem/file-smbpasswd/load.xml +++ peardoc/ja/package/filesystem/file-smbpasswd/load.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: shimooka Status: ready --> <refentry id="package.filesystem.file-smbpasswd.load"> <refnamediv> <refname>File_SMBPasswd::load()</refname> <refpurpose>既存の smbpasswd ファイルの内容をロードする</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef>mixed <function>File_SMBPasswd::load</function></funcdef> <paramdef> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.filesystem.file-smbpasswd.load.desc"> &title.desc; <para> 既存の smbpasswd ファイルの内容をロードします。 </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.load.return"> &title.returns; <para> <parameter>mixed</parameter> - &return.success-pearerror; </para> </refsect1> <!-- <refsect1 id="package.filesystem.file.file-smbpasswd.load.throws"> &title.throws; <para> </para> </refsect1> --> <refsect1 id="package.filesystem.file-smbpasswd.load.note"> &title.note; &note.notstatic; </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.load.example"> &title.example; <example> <title><function>File_SMBPasswd::load</function> の使用例</title> <programlisting role="php"> <![CDATA[ <?php require_once('File/SMBPasswd.php'); $fh = new File_SMBPasswd('/usr/local/private/smbpasswd'); $status = $fh->load(); if (PEAR::isError($status)) { // エラーを処理する } else { // 処理を続ける } ?> ]]> </programlisting> </example> </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/ja/package/filesystem/file-smbpasswd/lock.xml?r=1.1&p=1 Index: peardoc/ja/package/filesystem/file-smbpasswd/lock.xml +++ peardoc/ja/package/filesystem/file-smbpasswd/lock.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: shimooka Status: ready --> <refentry id="package.filesystem.file-smbpasswd.lock"> <refnamediv> <refname>File_SMBPasswd::lock()</refname> <refpurpose>smbpasswd ファイルをロックする</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef>mixed <function>File_SMBPasswd::lock</function></funcdef> <paramdef> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.filesystem.file-smbpasswd.lock.desc"> &title.desc; <para> smbpasswd ファイルをロックします。 </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.lock.return"> &title.returns; <para> <parameter>mixed</parameter> - &return.success-pearerror; </para> </refsect1> <!-- <refsect1 id="package.filesystem.file.file-smbpasswd.lock.throws"> &title.throws; <para> </para> </refsect1> --> <refsect1 id="package.filesystem.file-smbpasswd.lock.note"> &title.note; &note.notstatic; </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.lock.example"> &title.example; <example> <title><function>File_SMBPasswd::lock</function> の使用例</title> <programlisting role="php"> <![CDATA[ <?php require_once('File/SMBPasswd.php'); $fh = new File_SMBPasswd('/usr/local/private/smbpasswd'); $status = $fh->lock(); if (PEAR::isError($status)) { // エラーを処理する } else { // 処理を続ける } ?> ]]> </programlisting> </example> </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/ja/package/filesystem/file-smbpasswd/modaccount.xml?r=1.1&p=1 Index: peardoc/ja/package/filesystem/file-smbpasswd/modaccount.xml +++ peardoc/ja/package/filesystem/file-smbpasswd/modaccount.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: shimooka Status: ready --> <refentry id="package.filesystem.file-smbpasswd.modaccount"> <refnamediv> <refname>File_SMBPasswd::modAccount()</refname> <refpurpose>与えられたプレーンテキストなパスワードで既存のアカウントを修正する</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <!-- <funcsynopsisinfo> require_once 'File/SMBPasswd.php'; </funcsynopsisinfo> --> <funcprototype> <funcdef>mixed <function>File_SMBPasswd::modAccount</function></funcdef> <paramdef>string <parameter>$user</parameter></paramdef> <paramdef>int <parameter>$userid</parameter></paramdef> <paramdef>string <parameter><optional>$pass = ''</optional></parameter></paramdef> <paramdef>string <parameter><optional>$comment = ''</optional></parameter></paramdef> <paramdef>string <parameter><optional>$flags = ''</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.filesystem.file-smbpasswd.modaccount.desc"> &title.desc; <para> このメソッドは パスワードがプレーンテキストで与えられる必要があることを除き、 <link linkend="package.filesystem.file-smbpasswd.modaccountencrypted"> <function>File_SMBPasswd::modAccountEncrypted</function> </link> と同様に動作します。 暗号化は内部で行われます。 </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.modaccount.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $user</parameter> - 修正するユーザー名 </para> </listitem> <listitem> <para> <parameter>int $userid</parameter> - ユーザーのユーザーID </para> </listitem> <listitem> <para> <parameter>string $pass</parameter> - プレーンテキストでのパスワード </para> </listitem> <listitem> <para> <parameter>string $comment</parameter> - コメント </para> </listitem> <listitem> <para> <parameter>string $flags</parameter> - フラグ </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.modaccount.return"> &title.returns; <para> <parameter>mixed</parameter> - &return.success-pearerror; </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.modaccount.note"> &title.note; &note.notstatic; </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.modaccount.see"> &title.see; <para> <simplelist> <member> <link linkend="package.filesystem.file-smbpasswd.addaccount"> <function>File_SMBPasswd::addAccount</function> </link> </member> <member> <link linkend="package.filesystem.file-smbpasswd.modaccountencrypted"> <function>File_SMBPasswd::modAccountEncrypted</function> </link> </member> <member> <link linkend="package.filesystem.file-smbpasswd.moduser"> <function>File_SMBPasswd::modUser</function> </link> </member> </simplelist> </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.modaccount.example"> &title.example; <example> <title><function>File_SMBPasswd::modAccount</function> の使用例</title> <programlisting role="php"> <![CDATA[ <?php require_once 'File/SMBPasswd.php'; // ユーザー mbretter を修正する $fh = new File_SMBPasswd('/usr/local/private/smbpasswd'); $fh->load(); $status = $fh->modAccount( 'mbretter', 1005, 'MyPwa', 'Michaela Bretterklieber'); if (PEAR::isError($status)) { // エラーを処理する } else { $fh->save(); } ?> ]]> </programlisting> </example> </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/ja/package/filesystem/file-smbpasswd/modaccountencrypted.xml?r=1.1&p=1 Index: peardoc/ja/package/filesystem/file-smbpasswd/modaccountencrypted.xml +++ peardoc/ja/package/filesystem/file-smbpasswd/modaccountencrypted.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: shimooka Status: ready --> <refentry id="package.filesystem.file-smbpasswd.modaccountencrypted"> <refnamediv> <refname>File_SMBPasswd::modAccountEncrypted()</refname> <refpurpose>あらかじめ暗号化されたパスワードで既存のアカウントを修正する</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <!-- <funcsynopsisinfo> require_once 'File/SMBPasswd.php'; </funcsynopsisinfo> --> <funcprototype> <funcdef>mixed <function>File_SMBPasswd::modAccountEncrypted</function></funcdef> <paramdef>string <parameter>$user</parameter></paramdef> <paramdef>int <parameter>$userid</parameter></paramdef> <paramdef>string <parameter><optional>$nthash = ''</optional></parameter></paramdef> <paramdef>string <parameter><optional>$lmhash = ''</optional></parameter></paramdef> <paramdef>string <parameter><optional>$comment = ''</optional></parameter></paramdef> <paramdef>string <parameter><optional>$flags = ''</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.filesystem.file-smbpasswd.modaccountencrypted.desc"> &title.desc; <para> 前もって暗号化されたパスワードを使って既存のアカウントを修正します。 </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.modaccountencrypted.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $user</parameter> - 追加するユーザー名 </para> </listitem> <listitem> <para> <parameter>int $userid</parameter> - ユーザーのユーザーID </para> </listitem> <listitem> <para> <parameter>string $nthash</parameter> - 新規 NT ハッシュ </para> </listitem> <listitem> <para> <parameter>string $lmhash</parameter> - 新規 LM ハッシュ </para> </listitem> <listitem> <para> <parameter>string $comment</parameter> - コメント </para> </listitem> <listitem> <para> <parameter>string $flags</parameter> - フラグ </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.modaccountencrypted.return"> &title.returns; <para> <parameter>mixed</parameter> - &return.success-pearerror; </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.modaccountencrypted.note"> &title.note; &note.notstatic; <para> 追加するユーザーはすでにシステムパスワードファイルに存在していなければ ならないことに注意してください。 </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.modaccountencrypted.see"> &title.see; <para> <simplelist> <member> <link linkend="package.filesystem.file-smbpasswd.addaccount"> <function>File_SMBPasswd::addAccount</function> </link> </member> <member> <link linkend="package.filesystem.file-smbpasswd.modaccount"> <function>File_SMBPasswd::modAccount</function> </link> </member> <member> <link linkend="package.filesystem.file-smbpasswd.moduser"> <function>File_SMBPasswd::modUser</function> </link> </member> </simplelist> </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.modaccountencrypted.example"> &title.example; <example> <title><function>File_SMBPasswd::modAccountEncrypted</function> の使用例</title> <programlisting role="php"> <![CDATA[ <?php require_once 'File/SMBPasswd.php'; // ユーザー mbretter を修正する $fh = new File_SMBPasswd('/usr/local/private/smbpasswd'); $fh->load(); $status = $fh->modAccountEncrypted( 'mbretter', 1005, '75BA30198E6D1975AAD3B435B51404EE', 'FC156AF7EDCD6C0EDDE3337D427F4EAC', Michaela Bretterklieber'); if (PEAR::isError($status)) { // エラーを処理する } else { $fh->save(); } ?> ]]> </programlisting> </example> </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/ja/package/filesystem/file-smbpasswd/moduser.xml?r=1.1&p=1 Index: peardoc/ja/package/filesystem/file-smbpasswd/moduser.xml +++ peardoc/ja/package/filesystem/file-smbpasswd/moduser.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: shimooka Status: ready --> <refentry id="package.filesystem.file-smbpasswd.moduser"> <refnamediv> <refname>File_SMBPasswd::modUser()</refname> <refpurpose>与えられたプレーンテキストなパスワードで既存のアカウントを修正する</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <!-- <funcsynopsisinfo> require_once 'File/SMBPasswd.php'; </funcsynopsisinfo> --> <funcprototype> <funcdef>mixed <function>File_SMBPasswd::modUser</function></funcdef> <paramdef>string <parameter>$user</parameter></paramdef> <paramdef>int <parameter>$userid</parameter></paramdef> <paramdef>string <parameter><optional>$pass = ''</optional></parameter></paramdef> <paramdef>string <parameter><optional>$comment = ''</optional></parameter></paramdef> <paramdef>string <parameter><optional>$flags = ''</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.filesystem.file-smbpasswd.moduser.desc"> &title.desc; <para> このメソッドは プレーンテキストなパスワードを使って既存のユーザーを修正します。 </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.moduser.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $user</parameter> - 追加するユーザー名 </para> </listitem> <listitem> <para> <parameter>int $userid</parameter> - ユーザーのユーザーID </para> </listitem> <listitem> <para> <parameter>string $pass</parameter> - プレーンテキストでのパスワード </para> </listitem> <listitem> <para> <parameter>string $comment</parameter> - コメント </para> </listitem> <listitem> <para> <parameter>string $flags</parameter> - フラグ </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.moduser.return"> &title.returns; <para> <parameter>mixed</parameter> - &return.success-pearerror; </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.moduser.note"> &title.note; &note.notstatic; <para> 追加するユーザーはすでにシステムパスワードファイルに存在していなければ ならないことに注意してください。 </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.moduser.see"> &title.see; <para> <simplelist> <member> <link linkend="package.filesystem.file-smbpasswd.addaccount"> <function>File_SMBPasswd::addAccount</function> </link> </member> <member> <link linkend="package.filesystem.file-smbpasswd.modaccountencrypted"> <function>File_SMBPasswd::modAccountEncrypted</function> </link> </member> <member> <link linkend="package.filesystem.file-smbpasswd.modaccount"> <function>File_SMBPasswd::modAccount</function> </link> </member> </simplelist> </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.moduser.example"> &title.example; <example> <title><function>File_SMBPasswd::modUser</function> の使用例</title> <programlisting role="php"> <![CDATA[ <?php require_once 'File/SMBPasswd.php'; // ユーザー mbretter を修正する $fh = new File_SMBPasswd('/usr/local/private/smbpasswd'); $fh->load(); $status = $fh->modUser( 'mbretter', 1005, 'MyPwa', 'Michaela Bretterklieber'); if (PEAR::isError($status)) { // エラーを処理する } else { $fh->save(); } ?> ]]> </programlisting> </example> </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/ja/package/filesystem/file-smbpasswd/printaccounts.xml?r=1.1&p=1 Index: peardoc/ja/package/filesystem/file-smbpasswd/printaccounts.xml +++ peardoc/ja/package/filesystem/file-smbpasswd/printaccounts.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: shimooka Status: ready --> <refentry id="package.filesystem.file-smbpasswd.printaccounts"> <refnamediv> <refname>File_SMBPasswd::printAccounts()</refname> <refpurpose>既存の smbpasswd ファイルの内容を表示する</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef>void <function>File_SMBPasswd::printAccounts</function></funcdef> <paramdef> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.filesystem.file-smbpasswd.printaccounts.desc"> &title.desc; <para> ロードされた smbpasswd ファイルに含まれる全ての内容を表示します。 </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.printaccounts.return"> &title.returns; <para> <parameter>void</parameter> </para> </refsect1> <!-- <refsect1 id="package.filesystem.file.file-smbpasswd.printaccounts.throws"> &title.throws; <para> </para> </refsect1> --> <refsect1 id="package.filesystem.file-smbpasswd.printaccounts.note"> &title.note; &note.notstatic; </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.printaccounts.example"> &title.example; <example> <title><function>File_SMBPasswd::printAccounts</function> の使用例</title> <programlisting role="php"> <![CDATA[ <?php require_once('File/SMBPasswd.php'); $f = new File_SMBPasswd('/usr/local/private/smbpasswd'); $f->load(); $f->printaccounts(); ?> ]]> </programlisting> </example> </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/ja/package/filesystem/file-smbpasswd/save.xml?r=1.1&p=1 Index: peardoc/ja/package/filesystem/file-smbpasswd/save.xml +++ peardoc/ja/package/filesystem/file-smbpasswd/save.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: shimooka Status: ready --> <refentry id="package.filesystem.file-smbpasswd.save"> <refnamediv> <refname>File_SMBPasswd::save()</refname> <refpurpose>smbpasswd ファイルを保存する</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <!-- <funcsynopsisinfo> require_once 'File/HtAccess.php'; </funcsynopsisinfo> --> <funcprototype> <funcdef>mixed <function>File_SMBPasswds:save</function></funcdef> <paramdef> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.filesystem.file-smbpasswd.save.desc"> &title.desc; <para> File_SMBPasswd オブジェクトの内容を対応するディスク上の smbpasswd ファイルとして保存します。保存時、ファイルは暗黙的にロックされます。 </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.save.return"> &title.returns; <para> <parameter>mixed</parameter> - &return.success-pearerror; </para> </refsect1> <!-- <refsect1 id="package.filesystem.file.file-smbpasswd.save.throws"> &title.throws; <para> </para> </refsect1> --> <refsect1 id="package.filesystem.file-smbpasswd.save.note"> &title.note; &note.notstatic; </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.save.example"> &title.example; <example> <title><function>File_SMBPasswd::save</function> の使用例</title> <programlisting role="php"> <![CDATA[ <?php require_once('File_SMBPasswd.php'); $f = new File_SMBPasswd('./smbpasswd'); $f->load(); $ret = $f->addAccount('sepp3', 12, 'MyPw'); if (PEAR::isError($ret)) { echo $ret->getMessage(); exit; } $ret = $f->modAccount('sepp', '', 'MyPw'); if (PEAR::isError($ret)) { echo $ret->getMessage(); exit; } $ret = $f->delAccount('karli'); if (PEAR::isError($ret)) { echo $ret->getMessage(); exit; } $status = $f->save(); if (PEAR::isError($status)) { // エラーを処理する } else { // 処理を続ける } ?> ]]> </programlisting> </example> </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/ja/package/filesystem/file-smbpasswd/unlock.xml?r=1.1&p=1 Index: peardoc/ja/package/filesystem/file-smbpasswd/unlock.xml +++ peardoc/ja/package/filesystem/file-smbpasswd/unlock.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: shimooka Status: ready --> <refentry id="package.filesystem.file-smbpasswd.unlock"> <refnamediv> <refname>File_SMBPasswd::unlock()</refname> <refpurpose>smbpasswd ファイルをアンロックする</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef>mixed <function>File_SMBPasswd::unlock</function></funcdef> <paramdef> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.filesystem.file-smbpasswd.unlock.desc"> &title.desc; <para> smbpasswd ファイルをアンロックします。 </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.unlock.return"> &title.returns; <para> <parameter>mixed</parameter> - &return.success-pearerror; </para> </refsect1> <!-- <refsect1 id="package.filesystem.file.file-smbpasswd.unlock.throws"> &title.throws; <para> </para> </refsect1> --> <refsect1 id="package.filesystem.file-smbpasswd.unlock.note"> &title.note; &note.notstatic; </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.unlock.example"> &title.example; <example> <title><function>File_SMBPasswd::unlock</function> の使用例</title> <programlisting role="php"> <![CDATA[ <?php require_once('File/SMBPasswd.php'); $fh = new File_SMBPasswd('/usr/local/private/smbpasswd'); $status = $fh->unlock(); if (PEAR::isError($status)) { // エラーを処理する } else { // 処理を続ける } ?> ]]> </programlisting> </example> </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/ja/package/filesystem/file-smbpasswd/verifyaccount.xml?r=1.1&p=1 Index: peardoc/ja/package/filesystem/file-smbpasswd/verifyaccount.xml +++ peardoc/ja/package/filesystem/file-smbpasswd/verifyaccount.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: shimooka Status: ready --> <refentry id="package.filesystem.file-smbpasswd.verifyaccount"> <refnamediv> <refname>File_SMBPasswd::verifyAccount()</refname> <refpurpose>与えられたプレーンテキストなパスワードで既存のアカウントを検証する</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <!-- <funcsynopsisinfo> require_once 'File/SMBPasswd.php'; </funcsynopsisinfo> --> <funcprototype> <funcdef>mixed <function>File_SMBPasswd::verifyAccount</function></funcdef> <paramdef>string <parameter>$user</parameter></paramdef> <paramdef>string <parameter>$pass</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.filesystem.file-smbpasswd.verifyaccount.desc"> &title.desc; <para> このメソッドは、ロードした smbpasswd ファイル中のエントリに対し 与えられたユーザー名とプレーンテキストなパスワードを検証します。 </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.verifyaccount.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $user</parameter> - 検証するユーザー名 </para> </listitem> <listitem> <para> <parameter>string $pass</parameter> - プレーンテキストなパスワード </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.verifyaccount.return"> &title.returns; <para> <parameter>mixed</parameter> - &return.success; </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.verifyaccount.see"> &title.see; <para> <simplelist> <member> <link linkend="package.filesystem.file-smbpasswd.verifyaccountencrypted"> <function>File_SMBPasswd::verifyAccountEncrypted</function> </link> </member> </simplelist> </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.verifyaccount.example"> &title.example; <example> <title><function>File_SMBPasswd::verifyAccount</function> の使用例</title> <programlisting role="php"> <![CDATA[ <?php require_once 'File/SMBPasswd.php'; $fh = new File_SMBPasswd('/usr/local/private/smbpasswd'); $fh->load(); if ($fh->verifyAccount('mbretter', 'MyPw')) { echo "Account is valid"; } else { echo "Account is in-valid"; } ?> ]]> </programlisting> </example> </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/ja/package/filesystem/file-smbpasswd/verifyaccountencrypted.xml?r=1.1&p=1 Index: peardoc/ja/package/filesystem/file-smbpasswd/verifyaccountencrypted.xml +++ peardoc/ja/package/filesystem/file-smbpasswd/verifyaccountencrypted.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: shimooka Status: ready --> <refentry id="package.filesystem.file-smbpasswd.verifyaccountencrypted"> <refnamediv> <refname>File_SMBPasswd::verifyAccountEncrypted()</refname> <refpurpose>あらかじめ暗号化されたパスワードで新規ユーザーを検証する</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <!-- <funcsynopsisinfo> require_once 'File/SMBPasswd.php'; </funcsynopsisinfo> --> <funcprototype> <funcdef>mixed <function>File_SMBPasswd::verifyAccountEncrypted</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.filesystem.file-smbpasswd.verifyaccountencrypted.desc"> &title.desc; <para> このメソッドは、ロードした smbpasswd ファイル中のエントリに対し 与えられたユーザー名とプレーンテキストなパスワードを検証します。 与えられるパスワードは有効な NT ハッシュもしくは LM ハッシュである必要があります。LM ハッシュはオプションです。 </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.verifyaccountencrypted.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $user</parameter> - 検証するユーザー名 </para> </listitem> <listitem> <para> <parameter>string $nthash</parameter> - NT ハッシュ </para> </listitem> <listitem> <para> <parameter>string $lmhash</parameter> - LM ハッシュ </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.verifyaccountencrypted.return"> &title.returns; <para> <parameter>mixed</parameter> - &return.success; </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.verifyaccountencrypted.see"> &title.see; <para> <simplelist> <member> <link linkend="package.filesystem.file-smbpasswd.verifyaccount"> <function>File_SMBPasswd::verifyAccount</function> </link> </member> </simplelist> </para> </refsect1> <refsect1 id="package.filesystem.file-smbpasswd.verifyaccountencrypted.example"> &title.example; <example> <title><function>File_SMBPasswd::verifyAccount</function> の使用例</title> <programlisting role="php"> <![CDATA[ <?php require_once 'File/SMBPasswd.php'; $fh = new File_SMBPasswd('/usr/local/private/smbpasswd'); $fh->load(); if ($fh->verifyAccountEncrypted('mbretter', '75BA30198E6D1975AAD3B435B51404EE')) { echo "Account is valid"; } else { echo "Account is in-valid"; } ?> ]]> </programlisting> </example> </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 (#6373) next »