def check_auth(self, user, password, ip):

        self.logger.debug("Checking username and password for %s" % (user,))

        result = self.do_query('check_auth', {'username': user, 'password': password, 'ip': ip})

        if result:
            if result['result']:
                self.logger.debug("Password ok")
                return True
            else:
                self.logger.warning("Cannot auth: %s" % (result['error'], ))
                return False
        else:
            self.logger.error("No reply when check_auth ?")
            return False
Check an username and password
dataset/ETHPy150Open ebu/radiodns-plugit/RadioVisServer/radiodns.py/RadioDns_.check_auth