Example #1
0
 def __call__(self, userid, **kwargs):
     result = UserInfoLDAP.__call__(self, userid, None, False)
     if self.verify_attr in result:
         for field in result[self.verify_attr]:
             if field in self.verify_attr_valid:
                 return True
     logger.warning(userid + "tries to use the service with the values " + result)
     return False
Example #2
0
 def __call__(self, userid, **kwargs):
     result = UserInfoLDAP.__call__(self, userid, None, False)
     if self.verify_attr in result:
         for field in result[self.verify_attr]:
             if field in self.verify_attr_valid:
                 return True
     logger.warning(userid + "tries to use the service with the values " + result)
     return False