File_Passwd::factory (Previous) (Next) MP3_Id

View this page in Last updated: Sun, 24 Aug 2008
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

File_Passwd::staticAuth()

File_Passwd::staticAuth() -- 高速な認証

説明

静的なユーザ認証を行います。

この手法はそれなりに高速に動作します。ただ、MD5 暗号化された htpasswd 形式で使用される APR 互換の MD5 暗号化を使用する場合には そのようにはなりません。

ひとつの MD5 パスワードを生成するには、およそ 0.25 秒かかります!

$opt の内容は、 $type の設定内容によって変わります。

  • Smb:

    暗号化方式(NT あるいは LM)

  • Unix:

    暗号化方式(des あるいは md5)

  • Authbasic:

    暗号化方式(des、sha あるいは md5)

  • Authdigest:

    ユーザの所属する realm

  • Cvs:

    n/a(空要素)

  • Custom:

    2 つの要素(暗号化関数および区切り文字)からなる配列

パラメータ

string $type

Unix、Cvs、Smb、Authbasic あるいは Authdigest 。

string $file

パスワードファイルへのパス。

string $user

認証するユーザ名。

string $pass

プレーンテキスト形式のパスワード。

mixed $opt

  • Smb:

    nt | lm

  • Unix:

    des | md5

  • Authbasic:

    des | sha | md5

  • Authdigest:

    ユーザが所属する realm

  • Cvs:

    n/a(空要素)

  • Custom:

    暗号化関数(encryption)および区切り文字 (delimiter)の 2 つの要素をもつ配列

注意

この関数は、スタティックにコール されます。

File_Passwd::factory (Previous) (Next) MP3_Id

Download Documentation Last updated: Sun, 24 Aug 2008
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.