14.2.1.2.10. RADIUS Token

class privacyidea.lib.tokens.radiustoken.RadiusTokenClass(db_token)[source]
check_otp(otpval, counter=None, window=None, options=None)[source]

run the RADIUS request against the RADIUS server

Parameters:
  • otpval – the OTP value
  • counter (int) – The counter for counter based otp values
  • window – a counter window
  • options (dict) – additional token specific options
Returns:

counter of the matching OTP value.

Return type:

int

check_pin_local

lookup if pin should be checked locally or on radius host

Returns:bool
static get_class_info(key=None, ret='all')[source]

returns a subtree of the token definition

Parameters:
  • key (string) – subsection identifier
  • ret (user defined) – default return value, if nothing is found
Returns:

subsection if key exists or user defined

Return type:

dict or string

static get_class_prefix()[source]
static get_class_type()[source]
split_pin_pass(passw, user=None, options=None)[source]

Split the PIN and the OTP value. Only if it is locally checked and not remotely.

update(param)[source]