cvs: peardoc /ja/package/authentication auth.xml /ja/package/authentication/auth constants.xml intro-storage.xml intro.xml
/ja/package/authentication/auth/auth auth.xml getstatus.xml getusername.xml setsessionname.xml start.xml

From: Date: Sat, 16 Sep 2006 09:40:15 +0000
Subject: cvs: peardoc /ja/package/authentication auth.xml /ja/package/authentication/auth constants.xml intro-storage.xml intro.xml
/ja/package/authentication/auth/auth auth.xml getstatus.xml getusername.xml setsessionname.xml start.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-8436@lists.php.net to get a copy of this message
takagi Sat Sep 16 09:40:15 2006 UTC Modified files: /peardoc/ja/package/authentication/auth/auth start.xml setsessionname.xml getusername.xml getstatus.xml auth.xml /peardoc/ja/package/authentication/auth intro.xml intro-storage.xml constants.xml /peardoc/ja/package/authentication auth.xml Log: sync with en.

http://cvs.php.net/viewvc.cgi/peardoc/ja/package/authentication/auth/auth/start.xml?r1=1.4&r2=1.5&diff_format=u Index: peardoc/ja/package/authentication/auth/auth/start.xml diff -u peardoc/ja/package/authentication/auth/auth/start.xml:1.4 peardoc/ja/package/authentication/auth/auth/start.xml:1.5 --- peardoc/ja/package/authentication/auth/auth/start.xml:1.4 Mon Jun 28 08:45:17 2004 +++ peardoc/ja/package/authentication/auth/auth/start.xml Sat Sep 16 09:40:15 2006 @@ -1,5 +1,6 @@ -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.2 Maintainer: haruki Status: ready --> +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.3 Maintainer: haruki Status: ready --> <refentry id="package.authentication.auth.auth.start"> <refnamediv> <refname>Auth::start()</refname> @@ -17,7 +18,13 @@ <refsect1 id="package.authentication.auth.auth.start.desc"> &title.desc; <para> - 認証プロセスを開始します。 + 認証プロセスを開始します。これを行うため、Auth + はまず既存のセッションがあるかどうかとそのセッションが有効かどうかを調べます。 + 既存のセッションがなかったり、既存のセッションが何らかの理由で終了していた場合は、 + ログインフォームを作成します。ログインフォームの作成には、 + 独自に指定したコールバックあるいは + <link linkend="package.authentication.auth.auth-frontend-html"><classname>Auth_Frontend_HTML</classname></link> + で実装されているデフォルトフォームが使用されます。 </para> </refsect1> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/authentication/auth/auth/setsessionname.xml?r1=1.3&r2=1.4&diff_format=u Index: peardoc/ja/package/authentication/auth/auth/setsessionname.xml diff -u peardoc/ja/package/authentication/auth/auth/setsessionname.xml:1.3 peardoc/ja/package/authentication/auth/auth/setsessionname.xml:1.4 --- peardoc/ja/package/authentication/auth/auth/setsessionname.xml:1.3 Mon Jun 28 08:45:17 2004 +++ peardoc/ja/package/authentication/auth/auth/setsessionname.xml Sat Sep 16 09:40:15 2006 @@ -1,15 +1,16 @@ -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.2 Maintainer: haruki Status: ready --> +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.3 Maintainer: haruki Status: ready --> <refentry id="package.authentication.auth.auth.setsessionname"> <refnamediv> - <refname>Auth::setSessionname()</refname> + <refname>Auth::setSessionName()</refname> <refpurpose>カスタムセッション名を設定する</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> - <funcdef>void <function>Auth::setSessionname</function></funcdef> - <paramdef>string <parameter>name</parameter></paramdef> + <funcdef>void <function>Auth::setSessionName</function></funcdef> + <paramdef>string <parameter>$name</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> @@ -48,7 +49,7 @@ &note.notstatic; <para> 同じドメインで Auth を用いるアプリケーションを複数実行する場合は、 - <function>setSessionname</function> を使用する必要があります。 + <function>setSessionName</function> を使用する必要があります。 この関数を使用しない場合、 アプリケーションの一つにログインしたユーザは、 再度ログインすることなしに他のアプリケーションも http://cvs.php.net/viewvc.cgi/peardoc/ja/package/authentication/auth/auth/getusername.xml?r1=1.1&r2=1.2&diff_format=u Index: peardoc/ja/package/authentication/auth/auth/getusername.xml diff -u peardoc/ja/package/authentication/auth/auth/getusername.xml:1.1 peardoc/ja/package/authentication/auth/auth/getusername.xml:1.2 --- peardoc/ja/package/authentication/auth/auth/getusername.xml:1.1 Mon Jun 28 08:45:17 2004 +++ peardoc/ja/package/authentication/auth/auth/getusername.xml Sat Sep 16 09:40:15 2006 @@ -1,30 +1,34 @@ -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.1 Maintainer: haruki Status: ready --> +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.2 Maintainer: haruki Status: ready --> <refentry id="package.authentication.auth.auth.getusername"> <refnamediv> <refname>Auth::getUsername()</refname> <refpurpose> - 現在の認証セッションのユーザネームを取得する + 認証済みユーザのユーザ名を取得する </refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> - <funcdef>string <function>Auth::getUsername</function></funcdef> - <paramdef /> + <funcdef>string <function>Auth_HTTP::getUsername</function></funcdef> + <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> - <refsect1 id="package.authentication.auth.auth.getusername.desc"> &title.desc; <para> - このメソッドにより、現在の認証セッションのユーザネーム - (<quote>ユーザ ID</quote> の形式も場合もあります) - を取得することができます。 + ログインしているユーザのユーザ名を取得します。 </para> </refsect1> - + <refsect1 id="package.authentication.auth.auth.getusername.return"> + &title.returns; + <para> + <parameter>string</parameter> - + ログインしているユーザのユーザ名を返します。 + </para> + </refsect1> <refsect1 id="package.authentication.auth.auth.getusername.note"> &title.note; &note.notstatic; http://cvs.php.net/viewvc.cgi/peardoc/ja/package/authentication/auth/auth/getstatus.xml?r1=1.4&r2=1.5&diff_format=u Index: peardoc/ja/package/authentication/auth/auth/getstatus.xml diff -u peardoc/ja/package/authentication/auth/auth/getstatus.xml:1.4 peardoc/ja/package/authentication/auth/auth/getstatus.xml:1.5 --- peardoc/ja/package/authentication/auth/auth/getstatus.xml:1.4 Mon Jun 28 08:45:17 2004 +++ peardoc/ja/package/authentication/auth/auth/getstatus.xml Sat Sep 16 09:40:15 2006 @@ -1,14 +1,15 @@ -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.4 Maintainer: haruki Status: ready --> +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.5 Maintainer: haruki Status: ready --> <refentry id="package.authentication.auth.auth.getstatus"> <refnamediv> <refname>Auth::getStatus()</refname> - <refpurpose>現在の認証状況についての情報を返す</refpurpose> + <refpurpose>認証セッションの現在の状況を取得する</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> - <funcdef>string <function>Auth::getStatus</function></funcdef> + <funcdef>int <function>Auth_HTTP::getStatus</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> @@ -17,34 +18,29 @@ <refsect1 id="package.authentication.auth.auth.getstatus.desc"> &title.desc; <para> - この関数は、PEAR::Auth の現在のステータスを返します。 - 返り値は、PEAR::Auth により定義される定数です。 + 認証セッションの現在の状況を取得します。 </para> </refsect1> <refsect1 id="package.authentication.auth.auth.getstatus.return"> &title.returns; - <para> - <parameter>string</parameter> - 値は - <constant>AUTH_IDLED</constant>, <constant>AUTH_EXPIRED</constant>, - <constant>AUTH_WRONG_LOGIN</constant> - のいずれかになります。 - </para> + <para> + <parameter>int</parameter> - + 現在のセッションの状況を表す Auth の定数を返します。 + </para> </refsect1> <refsect1 id="package.authentication.auth.auth.getstatus.note"> &title.note; &note.notstatic; </refsect1> - <refsect1 id="package.authentication.auth.auth.getstatus.see"> &title.see; <para> <link linkend="package.authentication.auth.constants"> - PEAR::Auth constants overview</link> + <quote>Auth 定数</quote></link> </para> </refsect1> - </refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/peardoc/ja/package/authentication/auth/auth/auth.xml?r1=1.6&r2=1.7&diff_format=u Index: peardoc/ja/package/authentication/auth/auth/auth.xml diff -u peardoc/ja/package/authentication/auth/auth/auth.xml:1.6 peardoc/ja/package/authentication/auth/auth/auth.xml:1.7 --- peardoc/ja/package/authentication/auth/auth/auth.xml:1.6 Sun Jun 25 03:31:30 2006 +++ peardoc/ja/package/authentication/auth/auth/auth.xml Sat Sep 16 09:40:15 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.12 Maintainer: haruki Status: ready --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.14 Maintainer: haruki Status: ready --> <refentry id="package.authentication.auth.auth.auth"> <refnamediv> <refname>Auth::Auth()</refname> @@ -10,9 +10,9 @@ <funcsynopsis> <funcprototype> <funcdef><function>Auth::Auth</function></funcdef> - <paramdef>mixed <parameter>$storageDriver = "DB"</parameter></paramdef> - <paramdef>mixed <parameter>$options = ""</parameter></paramdef> - <paramdef>string <parameter>$loginFunction = ""</parameter></paramdef> + <paramdef>mixed <parameter>$storageDriver</parameter></paramdef> + <paramdef>mixed <parameter><optional>$options = ""</optional></parameter></paramdef> + <paramdef>string <parameter><optional>$loginFunction = ""</optional></parameter></paramdef> <paramdef>boolean <parameter><optional>$showLogin = &true;</optional></parameter></paramdef> </funcprototype> </funcsynopsis> @@ -21,7 +21,12 @@ <refsect1 id="package.authentication.auth.auth.auth.desc"> &title.desc; <para> - 認証システムのコンストラクタ + 認証システムのコンストラクタです。 + </para> + <para> + コンストラクタによって、<function>session_start</function> + で PHP のセッション管理が開始されることが保証されます。 + Auth が正しく動作するためには、セッションが有効になっている必要があるからです。 </para> </refsect1> <refsect1 id="package.authentication.auth.auth.auth.parameter"> @@ -99,7 +104,7 @@ function myOutput($username, $status) { - ... /* See example 1 for the full listing */ + ... /* See first example in introduction for the full listing */ } $params = array( @@ -151,7 +156,7 @@ function myOutput($username, $status) { - ... /* See example 1 for the full listing */ + ... /* See first example in introduction for the full listing */ } $a = new Auth(new CustomAuthContainer($options), null, "myOutput"); http://cvs.php.net/viewvc.cgi/peardoc/ja/package/authentication/auth/intro.xml?r1=1.6&r2=1.7&diff_format=u Index: peardoc/ja/package/authentication/auth/intro.xml diff -u peardoc/ja/package/authentication/auth/intro.xml:1.6 peardoc/ja/package/authentication/auth/intro.xml:1.7 --- peardoc/ja/package/authentication/auth/intro.xml:1.6 Sun Jun 25 03:31:30 2006 +++ peardoc/ja/package/authentication/auth/intro.xml Sat Sep 16 09:40:15 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.12 Maintainer: haruki Status: ready --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.13 Maintainer: haruki Status: ready --> <refentry id="package.authentication.auth.intro"> <refnamediv> <refname>導入</refname> @@ -35,8 +35,10 @@ echo "</form>"; } -$dsn = "mysql://user:password@localhost/database"; -$a = new Auth("DB", $dsn, "loginFunction"); +$options = array( + 'dsn' = "mysql://user:password@localhost/database", + ); +$a = new Auth("DB", $options, "loginFunction"); $a->start(); @@ -118,8 +120,10 @@ $optional = false; } -$dsn = "mysql://user:password@localhost/database"; -$a = new Auth("DB", $dsn, "loginFunction", $optional); +$options = array( + 'dsn' = "mysql://user:password@localhost/database", + ); +$a = new Auth("DB", $options, "loginFunction"); $a->start(); http://cvs.php.net/viewvc.cgi/peardoc/ja/package/authentication/auth/intro-storage.xml?r1=1.5&r2=1.6&diff_format=u Index: peardoc/ja/package/authentication/auth/intro-storage.xml diff -u peardoc/ja/package/authentication/auth/intro-storage.xml:1.5 peardoc/ja/package/authentication/auth/intro-storage.xml:1.6 --- peardoc/ja/package/authentication/auth/intro-storage.xml:1.5 Sun Jun 25 03:31:30 2006 +++ peardoc/ja/package/authentication/auth/intro-storage.xml Sat Sep 16 09:40:15 2006 @@ -1,530 +1,282 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.17 Maintainer: haruki Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.18 Maintainer: haruki Status: ready --> <refentry id="package.authentication.auth.intro-storage"> <refnamediv> <refname>ストレージドライバ</refname> <refpurpose>導入</refpurpose> </refnamediv> - <refsect1 id="package.authentication.auth.intro.storage.overview"> + <refsect1 id="package.authentication.auth.intro-storage.overview"> <title>概要</title> <para> <classname>PEAR::Auth</classname>では、 - 種々のいわゆる「ストレージコンテナ」を使用できます。 + 種々のいわゆる「ストレージコンテナ」を使用してログインデータを保存することができます。 以下では、各ストレージコンテナの詳細について述べます。 それらコンテナのいずれもがあなたのニーズに合致しない場合は、 - 独自のものを作成することも可能です。 + 独自のものを作成することも簡単です。 </para> </refsect1> - <refsect1 id="package.authentication.auth.intro-storage.db"> - <title>データベース</title> - <para> - <classname>PEAR::Auth</classname>は、 - <link linkend="package.database.db"><classname>PEAR::DB</classname></link> - 抽象化レイヤーを使用します。 - つまり、ログインデータの保持には、 - DB 抽象化レイヤーがサポートするデータベースの内、 - どれでも使用できます。 - </para> - <para> - 本ストレージを使用する場合、 - <link linkend="package.authentication.auth.auth.auth"> - <function>Auth constructor</function> - </link>の引数は配列となります。 - <table> - <title>配列のキーと値</title> - <tgroup cols="3"> - <thead> - <row> - <entry>キー</entry> - <entry>説明</entry> - <entry>デフォルト値</entry> - </row> - </thead> - <tbody> - <row> - <entry><quote>dsn</quote></entry> - <entry> - 有効で整形式の - <link linkend="package.database.db.intro-dsn"> - DSN - </link> - </entry> - <entry> - <quote></quote> - </entry> - </row> - <row> - <entry><quote>table</quote></entry> - <entry> - 認証データが保持されるデータベースのテーブル名 - </entry> - <entry> - <quote>auth</quote> - </entry> - </row> - <row> - <entry><quote>usernamecol</quote></entry> - <entry> - ユーザ名が保持されるカラム名 - </entry> - <entry> - <quote>username</quote> - </entry> - </row> - <row> - <entry><quote>passwordcol</quote></entry> - <entry> - MD5 暗号化されたパスワードが保持されるカラム名。 - 32 文字以上を保持可能か確認してください。 - </entry> - <entry> - <quote>password</quote> - </entry> - </row> - </tbody> - </tgroup> - </table> - </para> - </refsect1> - - <refsect1 id="package.authentication.auth.intro-storage.file"> - <title>ファイル</title> - <para> - 本ストレージを使用する場合、 - <link linkend="package.authentication.auth.auth.auth"> - <function>Auth constructor</function></link> - の引数には、 - <link linkend="package.fileformats.file-passwd.intro">passwd 形式</link>の - ファイル名です。 - </para> - </refsect1> - - <refsect1 id="package.authentication.auth.intro-storage.smbpasswd"> - <title>SMBPasswd</title> - <para> - このストレージコンテナは、SAMBA の smbpasswd ファイルを使って認証を - 行います。 - 本ストレージを使用する場合、 - <link linkend="package.authentication.auth.auth.auth"> - <function>Auth constructor</function></link> - の引数は、 - <link linkend="package.filesystem.file-smbpasswd.intro">SAMBA passwd 形式</link>の - ファイル名です。 - </para> - </refsect1> - - <refsect1 id="package.authentication.auth.intro-storage.imap"> - <title>IMAP</title> - <para> - このストレージコンテナは、指定された IMAP サーバに接続し、 - 指定されたユーザ名・パスワードでログインしようと試みます。 - </para> - <para> - 本ストレージを使用する場合、 - <link linkend="package.authentication.auth.auth.auth"> - <function>Auth constructor</function></link> - の引数は、配列となります。 - <table> - <title>配列のキーと値</title> - <tgroup cols="3"> - <thead> - <row> - <entry>キー</entry> - <entry>説明</entry> - <entry>デフォルト値</entry> - </row> - </thead> - <tbody> - <row> - <entry><quote>host</quote></entry> - <entry> - IMAP サーバの IP アドレスまたはホスト名 - </entry> - <entry> - <quote>localhost</quote> - </entry> - </row> - <row> - <entry><quote>port</quote></entry> - <entry> - IMAP サーバが listening しているポート - </entry> - <entry> - <quote>143</quote> - </entry> - </row> - </tbody> - </tgroup> - </table> - </para> - </refsect1> - - <refsect1 id="package.authentication.auth.intro-storage.ldap"> - <title>LDAP</title> - <para> - 本ストレージを使用する場合、 - <link linkend="package.authentication.auth.auth.auth"> - <function>Auth constructor</function></link> - の引数は、配列となります。 - <table> - <title>配列のキーと値</title> - <tgroup cols="3"> - <thead> - <row> - <entry>キー</entry> - <entry>説明</entry> - <entry>デフォルト値</entry> - </row> - </thead> - <tbody> - <row> - <entry><quote>host</quote></entry> - <entry> - アクセスすべき IP アドレスまたはホスト名 - </entry> - <entry> - <quote>localhost</quote> - </entry> - </row> - <row> - <entry><quote>port</quote></entry> - <entry> - LDAP サーバに接続するためのポート - </entry> - <entry> - <quote>389</quote> - </entry> - </row> - <row> - <entry><quote>basedn</quote></entry> - <entry> - ベースの区別名 - </entry> - <entry> - <quote>o=netsols,c=de</quote> - </entry> - </row> - <row> - <entry><quote>userattr</quote></entry> - <entry> - リクエストする属性名 - </entry> - <entry> - <quote>uid</quote> - </entry> - </row> - </tbody> - </tgroup> - </table> - </para> - </refsect1> - -<!-- not release yet - - <refsect1 id="package.authentication.auth.intro-storage.mdb"> - <title>MDB</title> - <para> - In addition to using <link linkend="package.database.db"> - <classname>PEAR:DB</classname></link>, <classname>PEAR:Auth</classname> - also can use the ><classname>MDB</classname> abstraction layer for - database access. - </para> - <para> - The storage-specific argument for the - <link linkend="package.authentication.auth.auth.auth"> - <function>Auth constructor</function> - </link> - is an array. - <table> - <title>Array keys and values</title> - <tgroup cols="3"> - <thead> - <row> - <entry>Key</entry> - <entry>Description</entry> - <entry>Default value</entry> - </row> - </thead> - <tbody> - <row> - <entry><quote>dsn</quote></entry> - <entry> - A valid and well-formed - <link linkend="package.database.db.intro-dsn"> - DSN - </link>. - </entry> - <entry> - <quote></quote> - </entry> - </row> - <row> - <entry><quote>table</quote></entry> - <entry> - The name of the database table, where the - authorization data is stored. - </entry> - <entry> - <quote>auth</quote> - </entry> - </row> - <row> - <entry><quote>usernamecol</quote></entry> - <entry> - The name of the colunm, where the username is stored - </entry> - <entry> - <quote>username</quote> - </entry> - </row> - <row> - <entry><quote>passwordcol</quote></entry> - <entry> - The name of the colunm, where the MD5-crypted password is stored. - Make sure, that the password field can contain at least 32 bit. - </entry> - <entry> - <quote>password</quote> - </entry> - </row> - </tbody> - </tgroup> - </table> - </para> - </refsect1> ---> - - <refsect1 id="package.authentication.auth.intro-storage.pop3"> - <title>POP3</title> - <para> - このストレージコンテナは、指定された POP3 サーバに接続し、 - 指定されたユーザ名・パスワードでログインを試みます。 - </para> - <para> - 本ストレージを使用する場合、 - <link linkend="package.authentication.auth.auth.auth"> - <function>Auth constructor</function></link> - の引数は、<literal>server:port</literal> 形式、または単に - <literal>server</literal> 形式とします。 - </para> - </refsect1> - - <refsect1 id="package.authentication.auth.intro-storage.radius"> - <title>RADIUS</title> - <para> - このストレージコンテナを動作させるためには、PECL radius が必要です。 - </para> - <para> - 本ストレージを使用する場合、 - <link linkend="package.authentication.auth.auth.auth"> - <function>Auth constructor</function></link> - の引数は、配列となります。 - <table> - <title>配列のキーと値</title> - <tgroup cols="3"> - <thead> - <row> - <entry>キー</entry> - <entry>説明</entry> - <entry>デフォルト値</entry> - </row> - </thead> - <tbody> - <row> - <entry><quote>servers</quote></entry> - <entry> - <para> - RADIUS サーバの配列。 - 各サーバは、ホスト、ポート、共有秘密鍵(shared secret)、 - タイムアウト、最大試行数から成る。 - </para> - <para> - ホスト引数には、完全修飾ドメイン名 - またはドット区切りの IP アドレスをテキスト形式で指定します。 - ポート引数には、サーバに接続するための UDP ポートを指定します。 - ポート引数に 0 が与えられた場合は、 - ネットワークサービスのデータベース中の radius/udp のエントリを - 調べます。 - エントリが見つから無ければ、RADIUS 標準の認証用ポート - (1812) を使用します。 - 共有秘密鍵引数には、サーバホストに対する共有秘密鍵を指定します。 - RADIUS プロトコルは、共有秘密鍵の 128 バイト目以降を無視します。 - タイムアウト引数には、サーバからの応答に対するタイムアウトを - 秒単位で指定します。 - 最大試行数には、認証を断念するまでに - 最大何回認証リクエストを繰り返すかを指定します。 - </para> - <para> - 最大 10 のサーバを指定できます。 - 複数のサーバが指定された場合は、 - 有効なレスポンスが得られるか、 - 各サーバで最大試行数に達するかするまで - ラウンドロビン形式で試行していきます。 - </para> - </entry> - <entry> - array(<quote>localhost</quote>, 0, <quote>testing123</quote>, 3, 3) - </entry> - </row> - <row> - <entry><quote>authtype</quote></entry> - <entry> - <para> - リクエストの認証方法。 - PAP, CHAP_MD5, MSCHAPv1, MSCHAPv2 が指定可能。 - </para> - <para> - 各メソッドごとに異なる依存性が存在します。 - PAP 以外のメソッドは、Crypt_CHAP パッケージを必要とします。 - MS-CHAP を使用する場合は、mhash 拡張が必要です。 - </para> - </entry> - <entry> - <quote>PAP</quote> - </entry> - </row> - </tbody> - </tgroup> - </table> - </para> - </refsect1> - - <refsect1 id="package.authentication.auth.intro-storage.soap"> - <title>SOAP</title> - <para> - 本ストレージを使用する場合、 - <link linkend="package.authentication.auth.auth.auth"> - <function>Auth constructor</function></link> - の引数は、配列となります。 - <table> - <title>配列のキーと値</title> - <tgroup cols="3"> - <thead> - <row> - <entry>キー</entry> - <entry>説明</entry> - <entry>デフォルト値</entry> - </row> - </thead> - <tbody> - <row> - <entry><quote>endpoint</quote></entry> - <entry> - 対象サービスの URI - </entry> - <entry /> - </row> - <row> - <entry><quote>namespace</quote></entry> - <entry> - 対象 WEB サービスのネームスペース - </entry> - <entry /> - </row> - <row> - <entry><quote>method</quote></entry> - <entry> - コールしたい SOAP メソッド - </entry> - <entry /> - </row> - <row> - <entry><quote>encoding</quote></entry> - <entry> - コンテントのエンコーディング - (例、<literal>utf8</literal>). - </entry> - <entry /> - </row> - <row> - <entry><quote>usernamefield</quote></entry> - <entry> - ユーザ名が保持されているフィールド名 - </entry> - <entry /> - </row> - <row> - <entry><quote>passwordfield</quote></entry> - <entry> - パスワードが保持されているフィールド名 - </entry> - <entry /> - </row> - <!-- XXX: Document _features element --> - </tbody> - </tgroup> - </table> - </para> - </refsect1> - - <refsect1 id="package.authentication.auth.intro-storage.vpopmail"> - <title>vpopmail</title> - <para> - このコンテナは、ユーザ名とパスワードの認証に - 既存の vpopmail サービスを使用します。 - </para> - <para> - 本ストレージは、引数を要求しません。 - </para> - </refsect1> - - <refsect1 id="package.authentication.auth.intro-storage.custom"> - <title>カスタム ストレージコンテナ</title> - <para> - 独自ストレージコンテナ使用の例 - </para> - <para> - 以下は、独自の Auth ストレージコンテナのスケルトンです。 - </para> - <example> - <title>CustomAuthContainer.php</title> - <programlisting role="php"> - <![CDATA[ -include_once 'Auth/Container.php'; - -class CustomAuthContainer extends Auth_Container -{ - /** - * コンストラクタ - */ - function CustomAuthContainer($params) - { - // ここで初期化 - } - - function fetchData($username, $password) - { - // 有効性のチェック他 - if($isvalid) { - // 何らかの動作を実行 - return true; - } - return false; - } -} - ]]> - </programlisting> - </example> - <para> - そして、以下はその使用方法です。 - </para> - - <example> - <title>authcustom.php</title> - <programlisting role="php"> - <![CDATA[ -include_once 'CustomAuthContainer.php'; -include_once 'Auth/Auth.php'; - -$auth_container = new CustomAuthContainer($params); -$myauth = new Auth($auth_container); - -$myauth->start(); -]]> - </programlisting> - </example> + <refsect1 id="package.authentication.auth.storage.available"> + <title>利用できるコンテナ</title> + <variablelist> + <varlistentry> + <term> + <literal> + <link linkend="package.authentication.auth.storage.array"> + Array + </link> + </literal> + </term> + <listitem> + <para> + PHP の配列を使用するストレージコンテナです。 + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + <literal> + <link linkend="package.authentication.auth.storage.db"> + DB + </link> + </literal> + </term> + <listitem> + <para> + PEAR DB を使用するストレージコンテナです。 + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + <literal> + <link linkend="package.authentication.auth.storage.dblite"> + DBLite + </link> + </literal> + </term> + <listitem> + <para> + DB コンテナをシンプルにしたもので、ユーザ認証の機能のみを持っています。 + ユーザ管理の関数は提供されていません。 + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + <literal> + <link linkend="package.authentication.auth.storage.file"> + File + </link> + </literal> + </term> + <listitem> + <para> + PEAR File_Passwd を使用するストレージコンテナです。 + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + <literal> + <link linkend="package.authentication.auth.storage.imap"> + IMAP + </link> + </literal> + </term> + <listitem> + <para> + IMAP サーバを使用するストレージコンテナです。 + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + <literal> + <link linkend="package.authentication.auth.storage.kadm5"> + KADM5 + </link> + </literal> + </term> + <listitem> + <para> + Kerberos V サーバを使用するストレージコンテナです。 + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + <literal> + <link linkend="package.authentication.auth.storage.ldap"> + LDAP + </link> + </literal> + </term> + <listitem> + <para> + LDAP サーバを使用するストレージコンテナです。 + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + <literal> + <link linkend="package.authentication.auth.storage.mdb"> + MDB + </link> + </literal> + </term> + <listitem> + <para> + PEAR MDB を使用するストレージコンテナです。 + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + <literal> + <link linkend="package.authentication.auth.storage.mdb2"> + MDB2 + </link> + </literal> + </term> + <listitem> + <para> + PEAR MDB2 を使用するストレージコンテナです。 + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + <literal> + <link linkend="package.authentication.auth.storage.pear"> + PEAR + </link> + </literal> + </term> + <listitem> + <para> + PEAR ウェブサイトを使用するストレージコンテナです。 + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + <literal> + <link linkend="package.authentication.auth.storage.pop3"> + POP3 + </link> + </literal> + </term> + <listitem> + <para> + POP3 サーバを使用するストレージコンテナです。 + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + <literal> + <link linkend="package.authentication.auth.storage.radius"> + RADIUS + </link> + </literal> + </term> + <listitem> + <para> + RADIUS サーバを使用するストレージコンテナです。 + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + <literal> + <link linkend="package.authentication.auth.storage.sap"> + SAP + </link> + </literal> + </term> + <listitem> + <para> + SAP サーバを使用するストレージコンテナです。 + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + <literal> + <link linkend="package.authentication.auth.storage.smbpasswd"> + SMBPasswd + </link> + </literal> + </term> + <listitem> + <para> + PEAR File_SMBPasswd を使用するストレージコンテナです。 + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + <literal> + <link linkend="package.authentication.auth.storage.soap"> + SOAP + </link> + </literal> + </term> + <listitem> + <para> + SOAP サービスを使用するストレージコンテナです。クライアントとしては + PEAR SOAP を使用します。 + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + <literal> + <link linkend="package.authentication.auth.storage.soap5"> + SOAP5 + </link> + </literal> + </term> + <listitem> + <para> + SOAP サービスを使用するストレージコンテナです。クライアントとしては + PHP5 SOAP を使用します。 + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + <literal> + <link linkend="package.authentication.auth.storage.vpopmail"> + vpopmail + </link> + </literal> + </term> + <listitem> + <para> + vpopmail を使用するストレージコンテナです。 + </para> + </listitem> + </varlistentry> + <varlistentry> + <term> + <literal> + <link linkend="package.authentication.auth.storage.custom"> + Custom + </link> + </literal> + </term> + <listitem> + <para> + 独自のストレージコンテナを作成するための説明です。 + </para> + </listitem> + </varlistentry> + </variablelist> </refsect1> + </refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/peardoc/ja/package/authentication/auth/constants.xml?r1=1.2&r2=1.3&diff_format=u Index: peardoc/ja/package/authentication/auth/constants.xml diff -u peardoc/ja/package/authentication/auth/constants.xml:1.2 peardoc/ja/package/authentication/auth/constants.xml:1.3 --- peardoc/ja/package/authentication/auth/constants.xml:1.2 Thu Mar 25 11:38:08 2004 +++ peardoc/ja/package/authentication/auth/constants.xml Sat Sep 16 09:40:15 2006 @@ -1,5 +1,6 @@ -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.2 Maintainer: haruki Status: ready --> +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: haruki Status: ready --> <refentry id="package.authentication.auth.constants"> <refnamediv> <refname>&title.constants;</refname> @@ -10,20 +11,48 @@ <para> -1 </para> - </refsect1> + <para> + セッションのアイドル時間が所定の時間をこえている場合に返されます。 + </para> + </refsect1> <refsect1 id="package.authentication.auth.constants.auth-expired"> <title><constant>AUTH_EXPIRED</constant></title> <para> -2 </para> - </refsect1> + <para> + セッションが期限切れになった場合に返されます。 + </para> + </refsect1> <refsect1 id="package.authentication.auth.constants.auth-wrong-login"> <title><constant>AUTH_WRONG_LOGIN</constant></title> <para> -3 </para> + <para> + 使用中の Auth コンテナが、与えられた ユーザ名/パスワード + の組み合わせを有効だと判断できなかった場合に返されます。 + </para> + </refsect1> + <refsect1 id="package.authentication.auth.constants.auth-method-not-supported"> + <title><constant>AUTH_METHOD_NOT_SUPPORTED</constant></title> + <para> + -4 + </para> + <para> + 使用中の Auth コンテナで、その関数が実装されていない場合に返されます。 + </para> + </refsect1> + <refsect1 id="package.authentication.auth.constants.auth-security-breach"> + <title><constant>AUTH_SECURITY_BREACH</constant></title> + <para> + -5 + </para> + <para> + 高度なセキュリティチェックで問題が見つかった場合に返されます。 + </para> </refsect1> - </refentry> + </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml http://cvs.php.net/viewvc.cgi/peardoc/ja/package/authentication/auth.xml?r1=1.4&r2=1.5&diff_format=u Index: peardoc/ja/package/authentication/auth.xml diff -u peardoc/ja/package/authentication/auth.xml:1.4 peardoc/ja/package/authentication/auth.xml:1.5 --- peardoc/ja/package/authentication/auth.xml:1.4 Wed Mar 9 15:50:14 2005 +++ peardoc/ja/package/authentication/auth.xml Sat Sep 16 09:40:15 2006 @@ -1,5 +1,6 @@ -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.7 Maintainer: haruki Status: ready --> +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.8 Maintainer: haruki Status: ready --> <sect1 id="package.authentication.auth"> <title>Auth</title> @@ -7,20 +8,59 @@ ユーザ認証の為のフレームワークを提供します。 </para> - &package.authentication.auth.constants; &package.authentication.auth.intro; &package.authentication.auth.intro-storage; + + &package.authentication.auth.storage.array; + &package.authentication.auth.storage.db; + &package.authentication.auth.storage.dblite; + &package.authentication.auth.storage.file; + &package.authentication.auth.storage.imap; + &package.authentication.auth.storage.kadm5; + &package.authentication.auth.storage.ldap; + &package.authentication.auth.storage.mdb; + &package.authentication.auth.storage.mdb2; + &package.authentication.auth.storage.pear; + &package.authentication.auth.storage.pop3; + &package.authentication.auth.storage.radius; + &package.authentication.auth.storage.sap; + &package.authentication.auth.storage.smbpasswd; + &package.authentication.auth.storage.soap; + &package.authentication.auth.storage.soap5; + &package.authentication.auth.storage.vpopmail; + &package.authentication.auth.storage.custom; + + &package.authentication.auth.auth-frontend-html; + &package.authentication.auth.constants; + &package.authentication.auth.auth.auth; + &package.authentication.auth.auth.getauth; + &package.authentication.auth.auth.getauthdata; &package.authentication.auth.auth.getstatus; &package.authentication.auth.auth.getusername; &package.authentication.auth.auth.sessionvalidthru; + + &package.authentication.auth.auth.setadvancedsecurity; + &package.authentication.auth.auth.setallowlogin; + &package.authentication.auth.auth.setauth; + &package.authentication.auth.auth.setauthdata; + &package.authentication.auth.auth.setexpire; + &package.authentication.auth.auth.setfailedlogincallback; + &package.authentication.auth.auth.setidle; + &package.authentication.auth.auth.setlogincallback; + &package.authentication.auth.auth.setlogoutcallback; &package.authentication.auth.auth.setsessionname; &package.authentication.auth.auth.setshowlogin; - &package.authentication.auth.auth.setexpire; - &package.authentication.auth.auth.setidle; + &package.authentication.auth.auth.start; &package.authentication.auth.auth.checkauth; + &package.authentication.auth.auth.logout; + + &package.authentication.auth.auth.listusers; + &package.authentication.auth.auth.adduser; + &package.authentication.auth.auth.removeuser; + &package.authentication.auth.auth.changepassword; </sect1> <!-- Keep this comment at the end of the file
« previous php.pear.doc (#8436) next »