PEAR Manual
This manual is provided as a courtesy. It is not an official source. Please check pear.php.net for updated information.
require_once 'File/Passwd/Smb.php';
mixed File_Passwd_Smb::staticAuth (string $file, string $user, string $pass, string $mode)
mixed File_Passwd_Smb::staticAuth
Static user authentication.
path to passwd file
user to authenticate
plaintext password
encryption mode ('nt'|'lm') NTHASH or LMHASH
Returns TRUE if authenticated, FALSE if not or PEAR_Error on failure.
Table 37-1. Possible PEAR_Error values
This function should be called statically.