radclient: problem with exit code 0 and 1

oz oz at bluemonk.de
Thu Mar 19 10:09:10 CET 2009


Hello,

Alan DeKok wrote:
> oz wrote:
>> for monitoring our radius-servers, I use radclient for a long time in a
>> script. After migration to another platform, radclient seems to work
>> else, than before.     If a monitored radiusd is down or the Auth of my
>> monitoring-user fails, radclient gets an expected answer, but exits with
>> status 0 in these cases.
> 
>   Hmm... good point.  I'll take a look at that.

the normal behavior of radclient seems to get lost somewhere in the versions 
later than freeradius-0.7, where it worked:

...
radclient: no response from server
host1:/usr/local/src/freeradius-0.7/src/main# echo $?
1

... with ./radclient -v
radclient: $Id: radclient.c,v 1.46 2002/06/21 19:57:26 cparker Exp $ built on 
Nov  5 2002 at 09:31:53

And it fails with later versions like
# radclient -v
radclient: $Id: radclient.c,v 1.72.2.1.2.7 2007/04/07 22:22:51 aland Exp $ 
built on No
v 16 2007 at 14:04:12

... from freeradius-1.1.7 and ...

radclient -v
radclient: $Id: radclient.c,v 1.120 2008/04/03 13:43:12 aland Exp $ built on 
Jul  7 20
08 at 16:01:22

... from freeradius-2.0.5:

radclient -v
radclient: $Id: radclient.c,v 1.120 2008/04/03 13:43:12 aland Exp $ built on 
Jul  7 20
08 at 16:01:22

Kind regards,
oz


>> I am running radclient from freeradius 1.1.3-3, Debian/etch amd64:
>> # radclient -v
>> radclient: $Id: radclient.c,v 1.72.2.1.2.5 2006/05/16 18:26:08 aland Exp
>> $ built on Dec 17 2006 at 01:07:36
> 
>   Err... that won't be fixed.
> 
>   The fix will be in a recent version of the server.  Not one that is
> three years old.
> 
>   Alan DeKok.
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html



More information about the Freeradius-Users mailing list