Chap Authentication failure

Alan DeKok aland at deployingradius.com
Tue Jun 17 15:13:18 CEST 2008


Sudarshan Soma wrote:
> Hi,
> Iam trying to understand CHALLENGE RESPONSE behaviour. I have tried to
> use CHAP protocol and issued the following.
>  echo 'User-Name="userX"'; echo 'CHAP-Password="stealme"' |
> /usr/local/bin/radclient -x 192.168.11.94:1812 auth testing12
> 
> It gives me the following error:
> User-Name="userX"
> Sending Access-Request of id 184 to 192.168.11.94 port 1812
>         CHAP-Password = 0xb83e2e295a4a0d3edddbfbb3a37058ff7a

  Read that.  You are NOT sending the User-Name attribute in the packet.

  Try:

$ (echo 'User-Name="userX"'; echo 'CHAP-Password="stealme"') |
/usr/local/bin/radclient -x 192.168.11.94:1812 auth testing12

  The brackets make all the difference.  This is Unix shell 101.

> rlm_chap: Attribute "User-Name" is required for authentication.

  Because you haven't sent the User-Name in the packet.

  Alan DeKok.



More information about the Freeradius-Users mailing list