Shortcut Menu

Skip

Main Navigation

Choose your language


ActiveXperts Network Component Add network capabilities to any Windows or .NET application

Quicklinks


RADIUS (Remote Authentication Dial In User Service) library for Windows

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 Network Component currently only supports authenticating users. This means that the Network Component 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 Network Component. Overview of all Network Component objects:

DnsServer & DnsRecord - Ftp & FtpFile - Http - Icmp - IPtoCountry - Msn - Ntp - Radius - Rsh - Scp - SFtp - Ssh - SnmpManager - SnmpTrapManager - SnmpMibBrowser - Tcp - Tftp - TraceRoute - Udp - Xen - Wake-on-LAN - Xen (Citrix)


Radius Sample code

Visual Basic .NET sample: Check authentication with a RADIUS server

Imports AxNetwork

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

Visual C# .NET sample: Check authentication with a RADIUS server

using System;
using AxNetwork;

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 Network Component samples. These samples are also part of the Network Component installation.

» Visit ftp.activexperts-labs.com