O'Reilly logo

FreeRADIUS Beginner's Guide by Dirk van der Walt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – incorporating expiration and linelog modules

Isaac suspects that some of the students at the university have tried to gain Wi-Fi access illegally. He would like to log all the failed authentication attempts to a dedicated log file. While he is at it, he would also like to add an expiry date to each student to prevent them from gaining access to the network after the end of the semester. To implement this, he makes use of the expiration and linelog modules in FreeRADIUS. Let's see how it's done:

  1. Edit the linelog file inside the modules sub-directory under the FreeRADIUS configuration directory. Change the following line:
    Access-Request = "Requested access: %{User-Name}"

    to:

    Access-Request = "Request access: %{User-Name} %{User-Password} ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required