Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var hostname = "SRV3011:1812";
- var sharedKey = "iAXc3B4.KV-m";
- var username = "svcMideye";
- var password = "";
- var rc = new RadiusClient(hostname, sharedKey);
- var authPacket = rc.Authenticate(username, password);
- authPacket.SetAttribute(new VendorSpecificAttribute(10, 1, UTF8Encoding.UTF8.GetBytes("Testing")));
- authPacket.SetAttribute(new VendorSpecificAttribute(10, 2, new[] { (byte)7 }));
- var receivedPacket = rc.SendAndReceivePacket(authPacket).Result;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement