IPWorks Auth 2020 Python Edition

Questions / Feedback?

RADIUS Class

Properties   Methods   Events   Configuration Settings   Errors  

The RADIUS class provides an easy way to authenticate users.

Syntax

class ipworksauth.RADIUS

Remarks

The RADIUS component implements support for Remote Authentication Dial In User Service (RADIUS).

Authentication

The class can be used to authenticate users with a RADIUS server. To begin set the following properties:

To authenticate the user call authenticate. If the method returns without error the user was successfully authenticated. The Attr* properties will hold information about the attributes in the response.

The auth_mechanism property may be set to specify the authentication mechanism used.

Property List


The following is the full list of the properties of the class with short descriptions. Click on the links for further details.

attr_countThe number of records in the Attr arrays.
attr_typeThe type of the attribute.
attr_nameA text description of the attribute type.
attr_valueThe attribute value.
auth_mechanismThe authentication mechanism to be used when connecting to the RADIUS server.
eap_anonymous_identityThe identity to use when using PEAP or EAP-TLS.
local_hostThe name of the local host or user-assigned IP interface through which connections are initiated or accepted.
local_portThe UDP port in the local host where UDPPort binds.
passwordThe user's password.
remote_hostThe address of the remote host. Domain names are resolved to IP addresses.
remote_portThe port for the RADIUS server (default is 1812).
shared_secretThe RADIUS shared secret.
ssl_cert_encodedThe certificate (PEM/base64 encoded).
ssl_cert_storeThe name of the certificate store for the client certificate.
ssl_cert_store_passwordIf the certificate store is of a type that requires a password, this property is used to specify that password in order to open the certificate store.
ssl_cert_store_typeThe type of certificate store for this certificate.
ssl_cert_subjectThe subject of the certificate used for client authentication.
timeoutA timeout for the class.
userThe name of the user to authenticate.

Method List


The following is the full list of the methods of the class with short descriptions. Click on the links for further details.

authenticateAuthenticates the user.
configSets or retrieves a configuration setting.
do_eventsProcesses events from the internal message queue.
interruptInterrupt the current method.
resetResets the class properties to their default values.

Event List


The following is the full list of the events fired by the class with short descriptions. Click on the links for further details.

on_attributeFires for each attribute that is received.
on_errorInformation about errors during data delivery.
on_logFires with log information during processing.
on_ssl_server_authenticationFired after the server presents its certificate to the client.
on_ssl_statusShows the progress of the secure connection.

Configuration Settings


The following is a list of configuration settings for the class with short descriptions. Click on the links for further details.

SendMessageAuthenticatorWhether to send the Message-Authenticator attribute.
CaptureIPPacketInfoUsed to capture the packet information.
DestinationAddressUsed to get the destination address from the packet information.
DontFragmentUsed to set the Don't Fragment flag of outgoing packets.
LocalHostThe name of the local host through which connections are initiated or accepted.
LocalPortThe port in the local host where the class binds.
MaxPacketSizeThe maximum length of the packets that can be received.
QOSDSCPValueUsed to specify an arbitrary QOS/DSCP setting (optional).
QOSTrafficTypeUsed to specify QOS/DSCP settings (optional).
ShareLocalPortIf set to True, allows more than one instance of the class to be active on the same local port.
SourceIPAddressUsed to set the source IP address used when sending a packet.
SourceMacAddressUsed to set the source MAC address used when sending a packet.
UseConnectionDetermines whether to use a connected socket.
UseIPv6Whether or not to use IPv6.
AbsoluteTimeoutDetermines whether timeouts are inactivity timeouts or absolute timeouts.
FirewallDataUsed to send extra data to the firewall.
InBufferSizeThe size in bytes of the incoming queue of the socket.
OutBufferSizeThe size in bytes of the outgoing queue of the socket.
BuildInfoInformation about the product's build.
CodePageThe system code page used for Unicode to Multibyte translations.
LicenseInfoInformation about the current license.
ProcessIdleEventsWhether the class uses its internal event loop to process events when the main thread is idle.
SelectWaitMillisThe length of time in milliseconds the class will wait when DoEvents is called if there are no events to process.
UseInternalSecurityAPITells the class whether or not to use the system security libraries or an internal implementation.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks Auth 2020 Python Edition - Version 20.0 [Build 8155]