http://www.tech-faq.com/radius.shtml
dive in here
http://savannah.gnu.org/projects/radius/