Quicklinks
RADIUS (Remote Authentication Dial In User Service) is a networking protocol that provides centralized authentication and authorization management for computers to connect and use a network service. It was originally developed by Livingston Enterprises in 1991 as an access server authentication and accounting protocol and later brought into the IETF standards where it is described in RCF 2865 and RCF 2866.
RADIUS is a client/server protocol that uses UDP as a transport. A RADIUS server is usually a background process running on a UNIX or Windows NT server. The RADIUS component in activesocket currently only supports authenticating users. This means that the activesocket RADIUS implementation can be used to check against a RADIUS server whether or not a user has access to a network.
The Radius object is part of the ActiveSocket component. Overview of all ActiveSocket objects:
Imports ASOCKETLib
Module RadiusDemo
Sub Main()
Dim objRadius As Radius = New Radius
Dim strHost, strUser, strPassword, strSecret As String
objRadius.Clear()
strHost = "myradius01.mydomain.intra"
strUser = "myradiusacc"
strPassword = "myradiuspassw"
strSecret = "mysecret"
objRadius.CheckAccess( strHost, strUser, strPassword, strSecret )
Console.WriteLine( "CheckAccess, result: " & objRadius.LastError.ToString() )
Console.WriteLine("Ready.")
End Sub
End Module
using System;
using ASOCKETLib;
namespace RadiusDemo
{
class RadiusDemo
{
static void Main(string[] args)
{
string strHost = "", strUser = "", strPassword = "", strSecret = "";
Radius objRadius = new Radius();
objRadius.Clear();
strHost = "myradius01.mydomain.intra";
strUser = "myradiusacc";
strPassword = "myradiuspassw";
strSecret = "mysecret";
objRadius.CheckAccess( strHost, strUser, strPassword, strSecret );
Console.WriteLine("CheckAccess, result: " + objRadius.LastError.ToString() );
Console.WriteLine("Ready.");
}
}
}
On ftp.activexperts-labs.com, you can find a lot of ActiveSocket samples. These samples are also part of the ActiveSocket installation.
» Visit ftp.activexperts-labs.com