code: public CmsUser readUser(CmsRequestContext context, String username, String password) throws CmsException {
  
          CmsDbContext dbc = m_dbContextFactory.getDbContext(context);
          CmsUser result = null;
          try {
              result = m_driverManager.readUser(dbc, CmsOrganizationalUnit.removeLeadingSeparator(username), password);
          } catch (Exception e) {
              dbc.report(null, Messages.get().container(Messages.ERR_READ_USER_FOR_NAME_1, username), e);
          } finally {
              dbc.clear();
          }
          return result;
      }
docs: Returns a user object if the password for the user is correct.<p>
  
  If the user/password pair is not valid a <code>{@link CmsException}</code> is thrown.<p>
  
  @param context the current request context
  @param username the user name of the user that is to be read
  @param password the password of the user that is to be read
  
  @return user read
  
  @throws CmsException if operation was not successful