File_Passwd_Common::_auth() -- Base method for File_Passwd::staticAuth()
Opis
Base method for File_Passwd_*::staticAuth()
(związane z developerem pakietu)
Parametr
- string
$file
path to passwd file
- string
$id
user_id to search for
Zwracana wartość
Returns string line of passwd file containing $id,
FALSE if $id wasn't found, or PEAR_Error on failure.
Tabela 39-1. Możliwe wartości PEAR_Error
| Error Code | Summary |
|---|
| FILE_PASSWD_E_EXISTS_NOT | passwd file doesn't exist |
| FILE_PASSWD_E_FILE_NOT_OPENED | passwd file couldn't be opened in read mode |
| FILE_PASSWD_E_FILE_NOT_LOCKED | passwd file couldn't be locked shared |
| FILE_PASSWD_E_FILE_NOT_UNLOCKED | passwd file couldn't be unlocked (only if auth fails) |
| FILE_PASSWD_E_FILE_NOT_CLOSED | passwd file couldn't be closed (only if auth fails) |
Uwagi
Ta funkcja nie może być wywołana
statycznie.