Radius Stress testing

Fajar A. Nugraha list at fajar.net
Mon Oct 1 12:11:18 CEST 2012


On Mon, Oct 1, 2012 at 5:02 PM, QASIM RAO <qasim2490 at hotmail.com> wrote:
> sir when i send accounting request using ntradping radius does not gives
> this error,  i there any kind on fault in my scrip..??

Look at the debug log when you send packets using ntradping. Then make
sure your script sends those attributes as well.


>  $r->add_attributes (
>         { Name => 'User-Name', Value => "82723EH5F75" },
>           { Name => 'Password', Value => "123456" },
>           { Name => 'Acct-Link-Count', Value => "111" },
>            { Name => 'Acct-Multi-Session-Id', Value => "NGI" },
>         { Name => 'Move-ID', Value => "4" },
>          { Name => 'Accounting-Type', Value => "1" },
>         { Name => 'Group-ID', Value => "0" }
>         );


No Accounting-Status-Type (or Acct-Status-Type)?

Selected lines from dictionary.rfc2866:
ATTRIBUTE	Acct-Status-Type			40	integer
VALUE	Acct-Status-Type		Start			1
VALUE	Acct-Status-Type		Stop			2
VALUE	Acct-Status-Type		Alive			3   # dup
VALUE	Acct-Status-Type		Interim-Update		3

Look at Authen::Radius documentation, find out what it calls AVP 40,
and add it to your script.

... or, depending on what you use your benchmark for, it might not matter.

Personally I just use radclient (with pre-generated attributes for
input) or radperf for benchmark.

-- 
Fajar


More information about the Freeradius-Users mailing list