
radius-net
this project purpose a .Net library to authenticate with a Radius server.
sample code
RadiusClient rc = new RadiusClient(hostname,sharesecret);
RadiusPacket authPacket = rc.Authenticate(login,password);
if(authPacket == null) throw new Exception ("Can't contact remote radius server !");
switch (authPacket.Type) {
case RadiusPacketType.ACCESS_ACCEPT :
Console.WriteLine("accepted");
foreach (RadiusAttribute attr in authPacket.Attributes) {
Console.WriteLine(attr.Type.ToString()+ " = " + attr.Value);
}
break;
default :
Console.WriteLine("rejected");
break;
}
}
Project Information
- License: GNU Lesser GPL
- 5 stars
- svn-based source control