xref: /openbsd-src/usr.sbin/radiusctl/radiusctl.8 (revision f2da64fbbbf1b03f09f390ab01267c93dfd77c4c)
1.\"	$OpenBSD: radiusctl.8,v 1.3 2015/08/25 01:21:57 yasuoka Exp $
2.\"
3.\" Copyright (c) YASUOKA Masahiko <yasuoka@yasuoka.net>
4.\"
5.\" Permission to use, copy, modify, and distribute this software for any
6.\" purpose with or without fee is hereby granted, provided that the above
7.\" copyright notice and this permission notice appear in all copies.
8.\"
9.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16.\"
17.\"
18.Dd $Mdocdate: August 25 2015 $
19.Dt RADIUSCTL 8
20.Os
21.Sh NAME
22.Nm radiusctl
23.Nd control the RADIUS protocol daemon
24.Sh SYNOPSIS
25.Nm
26.Ar command
27.Op Ar argument ...
28.Sh DESCRIPTION
29The
30.Nm
31utility controls the
32.Xr radiusd 8
33daemon.
34.Pp
35The following commands are available:
36.Bl -tag -width Ds
37.It Xo
38.Cm test
39.Ar hostname
40.Ar radius_secret
41.Ar user_name
42.Op options
43.Xc
44Sends a RADIUS authentication request packet and shows the result.
45The request is for the user specified by
46.Ar user_name
47and sent to the RADIUS server specified by
48.Ar hostname .
49.Ar radius_secret
50is the shared secret with the server.
51The options are as follows:
52.Bl -tag -width Ds
53.It Cm method Ar method
54Use
55.Ar method
56for authentication.
57It can be either
58.Cm pap ,
59.Cm chap ,
60or
61.Cm mschapv2 .
62If this option is omitted,
63.Cm pap
64is used.
65.It Cm nas-port Ar nas-port
66Specify an integer value for the NAS-Port attribute in the packet.
67If this option is omitted, 0 is used.
68.It Cm password Ar password
69Use
70.Ar password
71for
72.Ar user_name .
73.It Cm port Ar port
74Use
75.Ar port
76when sending a packet to
77.Ar hostname .
78If the port is omitted,
79the default port number 1812 is used.
80.El
81.El
82.Sh SEE ALSO
83.Xr radiusd 8
84