{
if (_requireName==null)
return true;
// Authenticate with realm
UserRealm realm=context.getRealm();
Principal principal=realm==null?null:realm.authenticate(user,pass,request);
if (principal==null)
{
// Have to authenticate the user with the password file
String code=getUserCode(user);
String salt=code!=null?code.substring(0,2):user;