'REMOTE_USER user Authentication
:type self: User model'

def auth_user_remote_user(self, username):

    user = self.find_user(username=username)
    if ((user is None) or (not user.is_active())):
        log.info(LOGMSG_WAR_SEC_LOGIN_FAILED.format(username))
        return None
    else:
        self.update_user_auth_stat(user)
        return user
