Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vforteli/flexinets.radius.radiusclient
Radius client for .Net (Net Standard)
https://github.com/vforteli/flexinets.radius.radiusclient
dotnet netstandard radius radius-client rfc2865 rfc2866
Last synced: about 13 hours ago
JSON representation
Radius client for .Net (Net Standard)
- Host: GitHub
- URL: https://github.com/vforteli/flexinets.radius.radiusclient
- Owner: vforteli
- License: mit
- Created: 2017-08-14T09:07:00.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-09-10T18:27:34.000Z (about 3 years ago)
- Last Synced: 2024-11-16T10:07:01.486Z (2 days ago)
- Topics: dotnet, netstandard, radius, radius-client, rfc2865, rfc2866
- Language: C#
- Homepage:
- Size: 32.2 KB
- Stars: 12
- Watchers: 3
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Radius client library for .NET Standard
This library can be used to asynchronously send packets to Radius servers
## RadiusClient usage
```
var dictionary = new RadiusDictionary(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\radius.dictionary");
var radiusPacketParser = new RadiusPacketParser(NullLogger.Instance, dictionary)
var client = new RadiusClient(new IPEndPoint(IPAddress.Any, 1824), radiusPacketParser);var packet = new RadiusPacket(PacketCode.AccessRequest, 0, "xyzzy5461");
packet.AddAttribute("User-Name", "nemo");
packet.AddAttribute("User-Password", "arctangent");
packet.AddAttribute("NAS-IP-Address", IPAddress.Parse("192.168.1.16"));
packet.AddAttribute("NAS-Port", 3);var responsePacket = await client.SendPacketAsync(packet, new IPEndPoint(IPAddress.Parse("127.0.0.1"), 1812), TimeSpan.FromSeconds(11));
if (responsePacket.Code == PacketCode.AccessAccept)
{
// Hooray
}
```Multiple requests and responses can be made asynchronously on the same local port as long as the identifier and remote host:port remain unique
https://www.nuget.org/packages/Flexinets.Radius.RadiusClient/