Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
FreeRADIUS Beginner's Guide

You're reading from   FreeRADIUS Beginner's Guide Master authentication, authorization, and accessing your network resources using FreeRADIUS

Arrow left icon
Product type Paperback
Published in Sep 2011
Publisher Packt
ISBN-13 9781849514088
Length 344 pages
Edition 1st Edition
Arrow right icon
Toc

Table of Contents (16) Chapters Close

Preface 1. Introduction to AAA and RADIUS FREE CHAPTER 2. Installation 3. Getting Started with FreeRADIUS 4. Authentication 5. Sources of Usernames and Passwords 6. Accounting 7. Authorization 8. Virtual Servers 9. Modules 10. EAP 11. Dictionaries 12. Roaming and Proxying 13. Troubleshooting A. Pop Quiz Answers Index

Time for action – authenticating a user with FreeRADIUS

We continue with our exercise from the previous chapter where we authenticate a user defined in the users file. Instead of looking at the feedback of the radtest command, we will now look at the output of the FreeRADIUS server running in debug mode.

  1. Ensure you are root in order to edit the users file.
  2. Define Alice as a FreeRADIUS test user. Add the following lines at the top of the users file. Make sure the second line is indented by a single tab character.
    "alice" Cleartext-Password := "passme"
        Reply-Message = "Hello, %{User-Name}"
  3. Start the FreeRADIUS server in debug mode. Ensure there is not already an instance running by shutting it down through the start-up script. We assume Ubuntu in this instance.
    $> sudo su
    #> /etc/init.d/freeradius stop
    #> freeradius -X
    
  4. Authenticate Alice using the following command:
    $> radtest alice passme 127.0.0.1 100 testing123
    
  5. The debug output of FreeRADIUS...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image