Chap authentication

Kevin Bonner keb at pa.net
Thu Dec 14 17:09:05 CET 2006


On Thursday 14 December 2006 07:12, fjlagos at vtr.net wrote:
> How can i set a basic CHAP authentication? What parameters and files i must
> set?

The default freeradius config supports CHAP, so all you need to supply is a 
password for the user.  According to [1], CHAP requires the cleartext 
password.

> Can you send me an example?

A users file example with the default freeradius 1.1.3 config would be:

  userX  User-Password := "secretpass"

To test CHAP auth, run the following.

  ( echo 'User-Name = "userX"'; echo 'CHAP-Password = "secretpass"' ) | 
radclient your.radius.server:1812 auth your_secret

Kevin Bonner

[1] http://deployingradius.com/documents/protocols/compatibility.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20061214/3bbafb59/attachment.pgp>


More information about the Freeradius-Users mailing list