Emulate a radius server in .NET

.net, authentication, encryption, radius-protocol

Solution

RADIUS is just a network service protocol like any other so...

Question #1 - can you emulate a RADIUS server in .NET?

Yes absolutely. The protocol is documented in

RFC 2865 : Remote Authentication Dial In User Service

Create a server process that hosts a UDP listener that handles the protocol and gives appropriate responses.

Question #2 - shared-secret auth

MS-CHAP enabled a shared-secret challenges

Question #3 - done before?

Yes TekRADIUS was written in .NET so it is certainly possible.

http://www.tekradius.com/

I'd T-shirt size this as a large to extra-large problem if you were looking to create a complete solution. Compatibility is the biggest challenge to completeness - of course you may be able to scope down this problem.

Problem

We have a wireless controller that prompts client machines for a username and pass using radius, the wireless controller than relays that request to us, where we need to then send that request to a third party unencrypted. - is it possible to emulate a radius server in .net is there an api. - is there a radius encryption algo short of clear text that allows for decryption with a shared key between my app server and the wireless controller. - anybody done this before?

Original source