File_Passwd::factory (Previous) (Next) File_SMBPasswd

Last updated: Sun, 16 May 2004

File_Passwd::staticAuth()

File_Passwd::staticAuth() -- Fast authentication

Описание

Static user autentication.

Though this approach should be reasonable fast, it is NOT with APR compatible MD5 encryption used for htpasswd style password files encrypted in MD5.

Generating one MD5 password takes about 0.25 seconds!

Depending on $type, $opt should be:

  • Smb:

    encryption method (NT or LM)

  • Unix:

    encryption method (des or md5)

  • Authbasic:

    encryption method (des, sha or md5)

  • Authdigest:

    the realm the user is in

  • Cvs:

    n/a (empty)

  • Custom:

    array of 2 elements: encryption function and delimiter

Параметр

string $type

Unix, Cvs, Smb, Authbasic or Authdigest

string $file

path to passwd file

string $user

the user to authenticate

string $pass

the plaintext password

mixed $opt

  • Smb:

    ntlm

  • Unix:

    desmd5

  • Authbasic:

    desshamd5

  • Authdigest:

    the realm the user is in

  • Cvs:

    n/a (empty)

  • Custom:

    array of 2 elements: encryption function and delimiter

Заметка

Эта функция должна вызываться статически.

File_Passwd::factory (Previous) (Next) File_SMBPasswd

Download Documentation Last updated: Sun, 16 May 2004
Hosting
HIVE: All information for read only. Please respect copyright!
Hosted by hive йца: йХЕБЯЙЮЪ ЦНПНДЯЙЮЪ АХАКХНРЕЙЮ