xref: /freebsd/lib/libpam/modules/pam_radius/pam_radius.8 (revision 6e1fc0118033f42b7c0d3623c8f67a89ebecabb2)
1716eff47SDag-Erling Smørgrav.\"-
2c747c0c7SAndrzej Bialecki.\" Copyright (c) 1992, 1993, 1994
3c747c0c7SAndrzej Bialecki.\"	The Regents of the University of California.  All rights reserved.
4716eff47SDag-Erling Smørgrav.\" Copyright (c) 1999 Andrzej Bialecki <abial@FreeBSD.org>
5716eff47SDag-Erling Smørgrav.\" All rights reserved.
6716eff47SDag-Erling Smørgrav.\" Copyright (c) 2018 The University of Oslo
7c747c0c7SAndrzej Bialecki.\" All rights reserved.
8c747c0c7SAndrzej Bialecki.\"
9c747c0c7SAndrzej Bialecki.\" This code is derived from software donated to Berkeley by
10c747c0c7SAndrzej Bialecki.\" Jan-Simon Pendry.
11c747c0c7SAndrzej Bialecki.\"
12c747c0c7SAndrzej Bialecki.\" Redistribution and use in source and binary forms, with or without
13c747c0c7SAndrzej Bialecki.\" modification, are permitted provided that the following conditions
14c747c0c7SAndrzej Bialecki.\" are met:
15c747c0c7SAndrzej Bialecki.\" 1. Redistributions of source code must retain the above copyright
16c747c0c7SAndrzej Bialecki.\"    notice, this list of conditions and the following disclaimer.
17c747c0c7SAndrzej Bialecki.\" 2. Redistributions in binary form must reproduce the above copyright
18c747c0c7SAndrzej Bialecki.\"    notice, this list of conditions and the following disclaimer in the
19c747c0c7SAndrzej Bialecki.\"    documentation and/or other materials provided with the distribution.
20dda5b397SEitan Adler.\" 3. Neither the name of the University nor the names of its contributors
21c747c0c7SAndrzej Bialecki.\"    may be used to endorse or promote products derived from this software
22c747c0c7SAndrzej Bialecki.\"    without specific prior written permission.
23c747c0c7SAndrzej Bialecki.\"
24c747c0c7SAndrzej Bialecki.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
25c747c0c7SAndrzej Bialecki.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26c747c0c7SAndrzej Bialecki.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
27c747c0c7SAndrzej Bialecki.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
28c747c0c7SAndrzej Bialecki.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29c747c0c7SAndrzej Bialecki.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30c747c0c7SAndrzej Bialecki.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31c747c0c7SAndrzej Bialecki.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32c747c0c7SAndrzej Bialecki.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33c747c0c7SAndrzej Bialecki.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34c747c0c7SAndrzej Bialecki.\" SUCH DAMAGE.
35c747c0c7SAndrzej Bialecki.\"
36716eff47SDag-Erling Smørgrav.Dd May 16, 2018
375f95f24bSRuslan Ermilov.Dt PAM_RADIUS 8
38a307d598SRuslan Ermilov.Os
39c747c0c7SAndrzej Bialecki.Sh NAME
40c747c0c7SAndrzej Bialecki.Nm pam_radius
41c747c0c7SAndrzej Bialecki.Nd RADIUS authentication PAM module
42c747c0c7SAndrzej Bialecki.Sh SYNOPSIS
431642eb1aSMark Murray.Op Ar service-name
441642eb1aSMark Murray.Ar module-type
451642eb1aSMark Murray.Ar control-flag
461642eb1aSMark Murray.Pa pam_radius
471642eb1aSMark Murray.Op Ar options
48c747c0c7SAndrzej Bialecki.Sh DESCRIPTION
49c747c0c7SAndrzej BialeckiThe
50c747c0c7SAndrzej Bialecki.Nm
51c747c0c7SAndrzej Bialeckimodule provides authentication services based
52c747c0c7SAndrzej Bialeckiupon the RADIUS (Remote Authentication Dial In User Service) protocol
53c747c0c7SAndrzej Bialeckifor the PAM (Pluggable Authentication Module) framework.
54c747c0c7SAndrzej Bialecki.Pp
55c747c0c7SAndrzej BialeckiThe
56c747c0c7SAndrzej Bialecki.Nm
57c747c0c7SAndrzej Bialeckimodule accepts these optional parameters:
58c747c0c7SAndrzej Bialecki.Bl -tag -width Fl
59c747c0c7SAndrzej Bialecki.It Cm use_first_pass
60c747c0c7SAndrzej Bialeckicauses
61c747c0c7SAndrzej Bialecki.Nm
62c747c0c7SAndrzej Bialeckito use a previously entered password instead of prompting for a new one.
63c747c0c7SAndrzej BialeckiIf no password has been entered then authentication fails.
64c747c0c7SAndrzej Bialecki.It Cm try_first_pass
65c747c0c7SAndrzej Bialeckicauses
66c747c0c7SAndrzej Bialecki.Nm
671a0a9345SRuslan Ermilovto use a previously entered password, if one is available.
681a0a9345SRuslan ErmilovIf no
69c747c0c7SAndrzej Bialeckipassword has been entered,
70c747c0c7SAndrzej Bialecki.Nm
71c747c0c7SAndrzej Bialeckiprompts for one as usual.
72c747c0c7SAndrzej Bialecki.It Cm echo_pass
73c747c0c7SAndrzej Bialeckicauses echoing to be left on if
74c747c0c7SAndrzej Bialecki.Nm
75c747c0c7SAndrzej Bialeckiprompts for a password.
761798791dSRuslan Ermilov.It Cm conf Ns = Ns Ar pathname
77c747c0c7SAndrzej Bialeckispecifies a non-standard location for the RADIUS client configuration file
78a1d214e8SDag-Erling Smørgrav(normally located in
79a1d214e8SDag-Erling Smørgrav.Pa /etc/radius.conf ) .
80862b46f6SRuslan Ermilov.It Cm nas_id Ns = Ns Ar identifier
81a1d214e8SDag-Erling Smørgravspecifies a NAS identifier to send instead of the hostname.
82716eff47SDag-Erling Smørgrav.It Cm nas_ipaddr Ns Op No = Ns Ar address
83716eff47SDag-Erling Smørgravspecifies a NAS IP address to be sent.
84716eff47SDag-Erling SmørgravIf option is present, but there is no value provided then IP address
85716eff47SDag-Erling Smørgravcorresponding to the current hostname will be used.
86862b46f6SRuslan Ermilov.It Cm template_user Ns = Ns Ar username
87c747c0c7SAndrzej Bialeckispecifies a user whose
88c747c0c7SAndrzej Bialecki.Xr passwd 5
89c747c0c7SAndrzej Bialeckientry will be used as a template to create the session environment
900227791bSRuslan Ermilovif the supplied username does not exist in local password database.
91c6ff3a1bSSheldon HearnThe user
92c747c0c7SAndrzej Bialeckiwill be authenticated with the supplied username and password, but his
93c747c0c7SAndrzej Bialeckicredentials to the system will be presented as the ones for
94c747c0c7SAndrzej Bialecki.Ar username ,
951a0a9345SRuslan Ermilovi.e., his login class, home directory, resource limits, etc.\& will be set to ones
96c747c0c7SAndrzej Bialeckidefined for
97c747c0c7SAndrzej Bialecki.Ar username .
98c747c0c7SAndrzej Bialecki.Pp
99c747c0c7SAndrzej BialeckiIf this option is omitted, and there is no username
100c747c0c7SAndrzej Bialeckiin the system databases equal to the supplied one (as determined by call to
10142635956SRuslan Ermilov.Xr getpwnam 3 ) ,
102c747c0c7SAndrzej Bialeckithe authentication will fail.
103716eff47SDag-Erling Smørgrav.It Cm no_reply_message
104716eff47SDag-Erling Smørgravsuppress printing of the contents of any
105716eff47SDag-Erling Smørgrav.Cm Reply-Message
106716eff47SDag-Erling Smørgravattributes found in
107716eff47SDag-Erling Smørgrav.Cm Access-Accept
108716eff47SDag-Erling Smørgravand
109716eff47SDag-Erling Smørgrav.Cm Access-Reject
110716eff47SDag-Erling Smørgravresponses.
111716eff47SDag-Erling SmørgravThese are normally conveyed to the user as either informational or
112716eff47SDag-Erling Smørgraverror messages, depending on whether the access request was accepted
113716eff47SDag-Erling Smørgravor rejected.
114716eff47SDag-Erling Smørgrav.It Cm no_warn
115716eff47SDag-Erling Smørgravsuppress warning messages to the user.
116716eff47SDag-Erling SmørgravThese messages include reasons why the user's authentication attempt
117716eff47SDag-Erling Smørgravwas declined.
11842635956SRuslan Ermilov.El
119c747c0c7SAndrzej Bialecki.Sh FILES
120c747c0c7SAndrzej Bialecki.Bl -tag -width /etc/radius.conf -compact
121c747c0c7SAndrzej Bialecki.It Pa /etc/radius.conf
122c747c0c7SAndrzej BialeckiThe standard RADIUS client configuration file for
123c747c0c7SAndrzej Bialecki.Nm
124c747c0c7SAndrzej Bialecki.El
125c747c0c7SAndrzej Bialecki.Sh SEE ALSO
126*6e1fc011SGraham Percival.Xr pam 3 ,
127c747c0c7SAndrzej Bialecki.Xr passwd 5 ,
128*6e1fc011SGraham Percival.Xr radius.conf 5
129c747c0c7SAndrzej Bialecki.Sh HISTORY
130c747c0c7SAndrzej BialeckiThe
131c747c0c7SAndrzej Bialecki.Nm
132c747c0c7SAndrzej Bialeckimodule first appeared in
133c747c0c7SAndrzej Bialecki.Fx 3.1 .
134c747c0c7SAndrzej BialeckiThe
135c747c0c7SAndrzej Bialecki.Nm
136c747c0c7SAndrzej Bialeckimanual page first appeared in
137c747c0c7SAndrzej Bialecki.Fx 3.3 .
138c747c0c7SAndrzej Bialecki.Sh AUTHORS
139725ab628SRuslan Ermilov.An -nosplit
140c747c0c7SAndrzej BialeckiThe
141c747c0c7SAndrzej Bialecki.Nm
142c747c0c7SAndrzej Bialeckimanual page was written by
1432b7af31cSBaptiste Daroussin.An Andrzej Bialecki Aq Mt abial@FreeBSD.org .
144c747c0c7SAndrzej Bialecki.Pp
145c747c0c7SAndrzej BialeckiThe
146c747c0c7SAndrzej Bialecki.Nm
147c747c0c7SAndrzej Bialeckimodule was written by
1482b7af31cSBaptiste Daroussin.An John D. Polstra Aq Mt jdp@FreeBSD.org .
149