Thanks a lot Alan. It worked. (echo 'User-Name="userX"'; echo 'CHAP-Password="secretpass"') | /usr/local/bin/radclient -x 192.168.11.94:1812 auth testing123 Sending Access-Request of id 85 to 192.168.11.94 port 1812 User-Name = "userX" CHAP-Password = 0x5514442c350a2fbb54e47ee2d499a3bcfe rad_recv: Access-Accept packet from host 192.168.11.94:1812, id=85, length=20
On Tue, Jun 17, 2008 at 6:43 PM, Alan DeKok <[EMAIL PROTECTED]> wrote: > 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. > - > List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html > - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html