How to use the pyrad.tools.DecodeString function in pyrad

To help you get started, we’ve selected a few pyrad examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jamiesun / PyRadius / radiusd / utils.py View on Github external
def get_callingstationid(self):
        try:return tools.DecodeString(self.get(31)[0])
        except:return None
github jamiesun / PyRadius / radiusd / utils.py View on Github external
def get_macaddr(self):
        try:return tools.DecodeString(self.get(31)[0]).replace("-",":")
        except:return None
github jamiesun / PyRadius / radiusd / utils.py View on Github external
def get_acctsessionid(self):
        try:return tools.DecodeString(self.get(44)[0])
        except:return None
github jamiesun / PyRadius / radiusd / utils.py View on Github external
def get_username(self):
        try:return tools.DecodeString(self.get(1)[0])
        except:return None
github jamiesun / PyRadius / radiusd / utils.py View on Github external
def get_nasportid(self):
        try:return tools.DecodeString(self.get(87)[0])
        except:return None
github jamiesun / PyRadius / radiusd / utils.py View on Github external
def get_nasclass(self):
        try:return tools.DecodeString(self.get(25)[0])
        except:return None