Re: Radius querying utility?

Patrick J. Steranka (steranka@uunet.uu.net)
Thu, 21 Sep 1995 15:23:53 -0400

John Capo writes:
> Chris Woods writes:
> > On Wed, 20 Sep 1995, Dick St.Peters wrote:
> > > Is there a utility/tool for querying radius daemons ?

I have a utility but it is written in C++ and based on code that I am
not allowed to "share". While I can't share the code, I can at least
share what it does.

(1) The program is called ping-radius.

(2) The program prompts the user for each input that can vary, and has
defaults that are appropriate for our environment.

(3) The program prints a debug version of the packet that was sent and
waits for 10 seconds for a response.

(4) After 10 seconds the program exits. If a response is received,
then the packet received is decoded and printed.

I used it mainly for debugging the code that I must maintain, so I am
the primary user of the program. In short, it isn't pretty but it
does what I need it to do.

The defaults are in brackets [].
-- patrick --
Below is some sample output...

steranka@foo 15: ping-radius
Binding...
Bound to 0.0.0.0:9998
Send To Who (enter IP:PORT): [10.0.0.2:1645]
Login: [UU/ppp00001]
Password: [MyPasswd]
Enter secret to use to encrypt password: [Talk2Me]
Send this packet from what UDP port: [9997]
Say packet was from NAS IP Addr: [204.177.240.1]
Do Chap or PAP style login: [pap]

Outgoing (to server 10.0.0.4:1745)
Access-Request packet: code=1, identifier 3, length 55
auth: 9D 44 2A B4 38 6C 42 B6 A0 A1 6D 02 18 D1 8E E6
attr: type User-Name [1], len 13 name = "UU/ppp00001"
attr: type User-Password [2], len 10 passwd = ""
attr: type NAS-Identifier [4], len 6 NAS ID = 10.0.0.1
attr: type NAS-Port [5], len 6 NAS PORT = 1645

---

Received (from server 10.0.0.4:1745) Access-Accept packet: code=2, identifier 3, length 99 auth: E2 AE 6B 3A CF 60 B0 B3 04 B4 30 70 6A 38 33 13 attr: type User-Service [6], len 6 data = 00 00 00 02 attr: type Framed-Protocol [7], len 6 data = 00 00 00 01 attr: type (unknown type) [218], len 6 data = 00 00 00 02 attr: type Framed-Netmask [9], len 6 data = FF FF FF FF attr: type Reply-Message [18], len 25 data = 57 65 6C 63 6F 6D 65 20 ... attr: type (unknown type) [244], len 6 data = 00 00 00 00 attr: type Framed-Route [22], len 24 data = 32 30 36 2E 36 35 2E 32 ...

---