File_Passwd_Authdigest::userInRealm

File_Passwd_Authdigest::userInRealm() – Ckeck if a certain user is in a specific realm

Synopsis

require_once 'Passwd/Authdigest.php';

boolean File_Passwd_Authdigest::userInRealm ( string $user , string $realm )

Description

Ckeck if a certain user is in a specific realm.

Parameter

string $user

the user to check

string $realm

the realm the user shuold be in

Return value

Returns TRUE if user is in realm, FALSE if not or PEAR_Error on failure.

Possible PEAR_Error values
Error Code Summary
FILE_PASSWD_E_EXISTS_NOT specified realm doesn't exist

Note

This function can not be called statically.