Base SoH code for Microsoft NAP.
[freeradius.git] / man / man1 / radtest.1
1 .TH RADTEST 1 "3 August 2010" "" "FreeRADIUS Daemon"
2 .SH NAME
3 radtest - send packets to a RADIUS server, show reply
4 .SH SYNOPSIS
5 .B radtest
6 .RB [ \-d
7 .IR raddb_directory ]
8 .RB [ \-t
9 .IR pap/chap/mschap ]
10 .RB [ \-x
11 .IR ]
12 .I user password radius-server nas-port-number secret
13 .RB [ ppphint ]
14 .RB [ nasname ]
15 .SH DESCRIPTION
16 \fBradtest\fP is a frontend to \fBradclient\fP(1). It generates a
17 list of attribute/value pairs based on the command line arguments,
18 and feeds these into \fBradclient\fP. It's a fast and convenient
19 way to test a radius server.
20
21 .SH OPTIONS
22
23 .IP "\-d \fIraddb_directory\fP"
24 The directory that contains the RADIUS dictionary files. Defaults to
25 \fI/etc/raddb\fP.
26
27 .IP "\-t \fIpap/chap/mschap/eap-md5\fP"
28 Choose the authentiction method to use.  e.g. "-t pap", "-t chap", "-t
29 mschap", or "-t eap-md5",.  Defaults to "pap".  Using EAP-MD5 requires
30 that the "radeapclient" program is installed.
31
32 .IP "\-x"
33 Enables debugging output for the RADIUS client.
34
35 .IP user
36 Username to send.
37
38 .IP password
39 Password of the user.
40
41 .IP radius-server
42 Hostname or IP address of the radius server. Optionally, you may specify a
43 port by appending :port
44
45 .IP nas-port-number
46 The value of the NAS-Port attribute. Is an integer between 0 and 2^31,
47 and it really doesn't matter what you put here. \fI10\fP will do fine.
48
49 .IP secret
50 The shared secret for this client.
51
52 .IP ppphint
53 If you put an integer > 0 here, radtest (or actually radclient) will
54 add the attribute \fIFramed-Protocol = PPP\fP to the request packet.
55
56 .IP nasname
57 If present, this will be resolved to an IP address and added to
58 the request packet as the \fINAS-IP-Address\fP attribute. If you
59 don't specify it, the local hostname of the system will be used.
60
61 .SH SEE ALSO
62 radiusd(8),
63 radclient(1).
64 .SH AUTHOR
65 Miquel van Smoorenburg, miquels@cistron.nl.