Fork me on GitHub

Project Notes

FreeRADIUS Client


FreeRADIUS Client is a C framework and library for writing RADIUS Clients.

So far this is a fail. Builds OK, but I hit issues trying to get clients built with this library to talk to the FreeRADIUS Server. KIV for now.

Mac OS X Build

The steps to build and install are in ./download_and_make:

git clone
cd freeradius-client
autoreconf -fvi && ./configure && make && sudo make install
  • installs client sample programs to /usr/local/sbin
  • installs client configs to /usr/local/etc/radiusclient
  • installs the libfreeradius-client to /usr/local/lib

Edit /usr/local/etc/radiusclient/servers to set the shared secret

localhost/localhost                             testing123


  • radacct
  • radembedded - how to embed the configuration of a radius client, using the FreeRADIUS Client Library without an external configuration file
  • radexample - example skeleton client
  • radiusclient
  • radlogin
  • radstatus - get RADIUS server status

Test: radstatus

OK, first client test…

RADIUS: Status failure
RADIUS: Status failure

Hmm, not good. Client is not picking up the shared secret and no hint on the server that it receved a request.

From src/radstatus.c..

 * This is broken, now that send_server requires the secret to be passed
 * It will need to be collected as an additional argument on command line

OK, looks like this client library needs a bit of maintenance, certainly a bit more study than I’m prepared to do right now

Credits and References

About LCK#207 RADIUSMacOSinfrastructure
Project Source on GitHub Return to the Project Catalog

This page is a web-friendly rendering of my project notes shared in the LittleCodingKata GitHub repository.

LittleCodingKata is my collection of programming exercises, research and code toys broadly spanning things that relate to programming and software development (languages, frameworks and tools).

These range from the trivial to the complex and serious. Many are inspired by existing work and I'll note credits and references where applicable. The focus is quite scattered, as I variously work on things new and important in the moment, or go back to revisit things from the past.

This is primarily a personal collection for my own edification and learning, but anyone who stumbles by is welcome to borrow, steal or reference the work here. And if you spot errors or issues I'd really appreciate some feedback - create an issue, send me an email or even send a pull-request.