radclient: problem with exit code 0 and 1

oz oz at bluemonk.de
Thu Mar 19 14:55:44 CET 2009



tnt at kalik.net wrote:
>>from that release. It was succesfully built, yeay, but has another bug with
>> masking the password when it is used in the radtest-script :-/
>>
>>  Sending Access-Request of id 110 to 192.168.X.X:1812
>>         User-Name = "testuser"
>>         User-Password = "\360\213[p\224\212I\314\217\343\361\214\370\326\351$"
>>
> 
> Not a bug. Shared secret is wrong.

It looks like a wrong shared secret, ...

usr/local/src/freeradius-0.9.2/src/main# ./radclient -d 
/usr/local/src/freeradius-0.9.2/share -f /home/me/radpacket -x 
192.168.111.18:1812 auth test123
Sending Access-Request of id 20 to 192.168.111.18:1812
         User-Name = "testuser"
         Password = "testpassword"
         NAS-IP-Address = pluto
         NAS-Port = 10
rad_recv: Access-Reject packet from host 192.168.111.18:1812, id=20, length=20
rad_decode: Received Access-Reject packet from 192.168.111.18 with invalid 
signature (err=2)!  (Shared secret is incorrect.)

... but it is not wrong, I used the same secret as on 2.1.4, where it works. I 
compiled both versions on an AMD64 arch and found some hints on the internet, 
that this might be the problem. Version 0.9.2 is from October 2003, so it is 
probably too old.

As Alan said, I have to wait for a new release of freeradius.

Thanks for your help,
oz




More information about the Freeradius-Users mailing list