def setUser(self, user, report): ''' :param user: a User() object, consisting of loginname and realm :param report: tbdf. ''' (uuserid, uidResolver, uidResolverClass) = getUserResolverId(user, report) self.token.LinOtpIdResolver = uidResolver self.token.LinOtpIdResClass = uidResolverClass self.token.LinOtpUserid = uuserid