コード例 #1
0
 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
コード例 #2
0
    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