xref: /openbsd-src/libexec/login_radius/login_radius.8 (revision 41ce3b17e73f6b7d2d9e1a3d961e4bab2d895cb5)
1*41ce3b17Snaddy.\" $OpenBSD: login_radius.8,v 1.16 2022/03/31 17:27:18 naddy Exp $
24ac31360Smillert.\"
34ac31360Smillert.\" Copyright (c) 1996 Berkeley Software Design, Inc. All rights reserved.
44ac31360Smillert.\"
54ac31360Smillert.\" Redistribution and use in source and binary forms, with or without
64ac31360Smillert.\" modification, are permitted provided that the following conditions
74ac31360Smillert.\" are met:
84ac31360Smillert.\" 1. Redistributions of source code must retain the above copyright
94ac31360Smillert.\"    notice, this list of conditions and the following disclaimer.
104ac31360Smillert.\" 2. Redistributions in binary form must reproduce the above copyright
114ac31360Smillert.\"    notice, this list of conditions and the following disclaimer in the
124ac31360Smillert.\"    documentation and/or other materials provided with the distribution.
134ac31360Smillert.\" 3. All advertising materials mentioning features or use of this software
144ac31360Smillert.\"    must display the following acknowledgement:
154ac31360Smillert.\"	This product includes software developed by Berkeley Software Design,
164ac31360Smillert.\"	Inc.
174ac31360Smillert.\" 4. The name of Berkeley Software Design, Inc.  may not be used to endorse
184ac31360Smillert.\"    or promote products derived from this software without specific prior
194ac31360Smillert.\"    written permission.
204ac31360Smillert.\"
214ac31360Smillert.\" THIS SOFTWARE IS PROVIDED BY BERKELEY SOFTWARE DESIGN, INC. ``AS IS'' AND
224ac31360Smillert.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
234ac31360Smillert.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
244ac31360Smillert.\" ARE DISCLAIMED.  IN NO EVENT SHALL BERKELEY SOFTWARE DESIGN, INC. BE LIABLE
254ac31360Smillert.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
264ac31360Smillert.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
274ac31360Smillert.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
284ac31360Smillert.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
294ac31360Smillert.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
304ac31360Smillert.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
314ac31360Smillert.\" SUCH DAMAGE.
324ac31360Smillert.\"
334ac31360Smillert.\"	BSDI $From: login_radius.8,v 1.2 1996/11/11 18:42:02 prb Exp $
344ac31360Smillert.\"
35*41ce3b17Snaddy.Dd $Mdocdate: March 31 2022 $
364ac31360Smillert.Dt LOGIN_RADIUS 8
374ac31360Smillert.Os
384ac31360Smillert.Sh NAME
394ac31360Smillert.Nm login_radius
401afaaab6Ssthen.Nd provide RADIUS authentication type
414ac31360Smillert.Sh SYNOPSIS
424ac31360Smillert.Nm login_radius
43174e0a2eSmillert.Op Fl d
444ac31360Smillert.Op Fl s Ar service
459981753dSsobrado.Op Fl v Ar name Ns = Ns Ar value
464ac31360Smillert.Ar user
474ac31360Smillert.Op Ar class
484ac31360Smillert.Sh DESCRIPTION
494ac31360SmillertThe
504ac31360Smillert.Nm
511afaaab6Ssthenutility contacts a RADIUS server to authenticate a
52501e2bc7Smillert.Ar user .
53501e2bc7SmillertIf no
54501e2bc7Smillert.Ar class
55501e2bc7Smillertis specified, the login class will be obtained from the password database.
56501e2bc7Smillert.Pp
574ac31360SmillertWhen executed as the name
58501e2bc7Smillert.Pa login_ Ns Ar style ,
59501e2bc7Smillert.Nm
601afaaab6Ssthenwill request that the RADIUS server use the authentication specified by
61501e2bc7Smillert.Ar style .
624ac31360Smillert.Pp
639981753dSsobradoThe options are as follows:
644ac31360Smillert.Bl -tag -width indent
65174e0a2eSmillert.It Fl d
66174e0a2eSmillertDebug mode.
67720a7a94SjmcOutput is sent to the standard output instead of the
68720a7a94Sjmc.Bx
69720a7a94SjmcAuthentication backchannel.
709981753dSsobrado.It Fl s Ar service
714ac31360SmillertSpecify the service.
724ac31360SmillertCurrently only
734ac31360Smillert.Li challenge ,
744ac31360Smillert.Li login ,
754ac31360Smillertand
764ac31360Smillert.Li response
774ac31360Smillertare supported.
789981753dSsobrado.It Fl v Ar name Ns = Ns Ar value
794ac31360SmillertThis option and its value are ignored.
804ac31360Smillert.El
814ac31360Smillert.Pp
824ac31360SmillertThe
834ac31360Smillert.Nm
841afaaab6Ssthenutility needs to know a shared secret for each RADIUS server it talks to.
854ac31360SmillertShared secrets are stored in the file
864ac31360Smillert.Pa /etc/raddb/servers
874ac31360Smillertwith the format:
884ac31360Smillert.Bd -literal -offset indent
894ac31360Smillertserver shared_secret
904ac31360Smillert.Ed
914ac31360Smillert.Pp
921afaaab6SsthenIt is expected that rather than requesting the RADIUS style directly
931afaaab6Ssthen(in which case the server uses a default style) that
944ac31360Smillert.Nm
954ac31360Smillertwill be linked to the various mechanisms desired.
964ac31360SmillertFor instance, to have all CRYPTOCard and ActivCard authentication take
9729ec0a10Sjmcplace on a remote server via the RADIUS protocol, remove the
984ac31360Smillert.Pa login_activ
994ac31360Smillertand
1004ac31360Smillert.Pa login_crypto
1014ac31360Smillertmodules and link
1024ac31360Smillert.Pa login_radius
1034ac31360Smillertto both of those names.
1044ac31360SmillertNow when the user requests one of those authentication styles,
1054ac31360Smillert.Nm
1061afaaab6Ssthenwill automatically forward the request to the remote RADIUS server
1074ac31360Smillertand request it do the requested style of authentication.
108501e2bc7Smillert.Sh LOGIN.CONF VARIABLES
109501e2bc7SmillertThe
110501e2bc7Smillert.Nm
1111afaaab6Ssthenutility uses the following RADIUS-specific
1124ac31360Smillert.Pa /etc/login.conf
113501e2bc7Smillertvariables:
114501e2bc7Smillert.Bl -tag -width radius-challenge-styles
1159962a266Smillert.It radius-port
1161afaaab6SsthenPort name or number to connect to on the RADIUS server.
117501e2bc7Smillert.It radius-server
1181afaaab6SsthenHostname of the RADIUS server to contact.
119501e2bc7Smillert.It radius-server-alt
1201afaaab6SsthenAlternate RADIUS server to use when the primary is not responding.
121501e2bc7Smillert.It radius-challenge-styles
1221afaaab6SsthenComma-separated list of authentication styles that the RADIUS server
123501e2bc7Smillertknows about.
124*41ce3b17SnaddyIf the user's authentication style is in this list, the challenge will
1251afaaab6Ssthenbe provided by the RADIUS server.
126501e2bc7SmillertIf not,
127501e2bc7Smillert.Nm
128501e2bc7Smillertwill prompt the user for the password before sending the request
1291afaaab6Ssthen(along with the password) to the RADIUS server.
130484d8f52Smillert.It radius-timeout
1311afaaab6SsthenNumber of seconds to wait for a response from the RADIUS server.
132501e2bc7SmillertDefaults to 2 seconds.
133501e2bc7Smillert.It radius-retries
1341afaaab6SsthenNumber of times to attempt to contact the RADIUS server before giving up
135501e2bc7Smillert(or falling back to the alternate server if there is one).
136501e2bc7SmillertDefaults to 6 tries.
137501e2bc7Smillert.El
138501e2bc7Smillert.Sh FILES
139501e2bc7Smillert.Bl -tag -compact -width xetcxraddbxserversxx
140501e2bc7Smillert.It Pa /etc/login.conf
141501e2bc7Smillertlogin configuration database
142501e2bc7Smillert.It Pa /etc/raddb/servers
1431afaaab6Ssthenlist of RADIUS servers and their associated shared secrets
144501e2bc7Smillert.El
1454ac31360Smillert.Sh SEE ALSO
146046e7ae9Smarc.Xr login 1 ,
1471afaaab6Ssthen.Xr login.conf 5 ,
1481afaaab6Ssthen.Xr radiusd 8
1491afaaab6Ssthen.Sh STANDARDS
1501afaaab6Ssthen.Rs
1511afaaab6Ssthen.%A C. Rigney
1521afaaab6Ssthen.%A S. Willens
1531afaaab6Ssthen.%A A. Rubens
1541afaaab6Ssthen.%A W. Simpson
1551afaaab6Ssthen.%D June 2000
1561afaaab6Ssthen.%R RFC 2865
1571afaaab6Ssthen.%T "Remote Authentication Dial In User Service (RADIUS)"
1581afaaab6Ssthen.Re
159501e2bc7Smillert.Sh CAVEATS
1600c1ccf3aSmillertFor
1610c1ccf3aSmillert.Nm
1620c1ccf3aSmillertto function, the
1630c1ccf3aSmillert.Pa /etc/raddb
1640c1ccf3aSmillertdirectory must be owned by group
1650c1ccf3aSmillert.Dq _radius
1660c1ccf3aSmillertand have group-execute permissions.
1670c1ccf3aSmillertLikewise, the
1680c1ccf3aSmillert.Pa /etc/raddb/servers
1690c1ccf3aSmillertfile must be readable by group
1700c1ccf3aSmillert.Dq _radius .
171