xref: /freebsd/lib/libpam/modules/pam_radius/pam_radius.8 (revision 1798791d24d371e78812304b3fa3ec7a87b84f98)
1c747c0c7SAndrzej Bialecki.\" Copyright (c) 1999
2c747c0c7SAndrzej Bialecki.\"	Andrzej Bialecki <abial@FreeBSD.org>.  All rights reserved.
3c747c0c7SAndrzej Bialecki.\"
4c747c0c7SAndrzej Bialecki.\" Copyright (c) 1992, 1993, 1994
5c747c0c7SAndrzej Bialecki.\"	The Regents of the University of California.  All rights reserved.
6c747c0c7SAndrzej Bialecki.\" All rights reserved.
7c747c0c7SAndrzej Bialecki.\"
8c747c0c7SAndrzej Bialecki.\" This code is derived from software donated to Berkeley by
9c747c0c7SAndrzej Bialecki.\" Jan-Simon Pendry.
10c747c0c7SAndrzej Bialecki.\"
11c747c0c7SAndrzej Bialecki.\" Redistribution and use in source and binary forms, with or without
12c747c0c7SAndrzej Bialecki.\" modification, are permitted provided that the following conditions
13c747c0c7SAndrzej Bialecki.\" are met:
14c747c0c7SAndrzej Bialecki.\" 1. Redistributions of source code must retain the above copyright
15c747c0c7SAndrzej Bialecki.\"    notice, this list of conditions and the following disclaimer.
16c747c0c7SAndrzej Bialecki.\" 2. Redistributions in binary form must reproduce the above copyright
17c747c0c7SAndrzej Bialecki.\"    notice, this list of conditions and the following disclaimer in the
18c747c0c7SAndrzej Bialecki.\"    documentation and/or other materials provided with the distribution.
19c747c0c7SAndrzej Bialecki.\" 3. All advertising materials mentioning features or use of this software
20c747c0c7SAndrzej Bialecki.\"    must display the following acknowledgement:
21c747c0c7SAndrzej Bialecki.\"	This product includes software developed by the University of
22c747c0c7SAndrzej Bialecki.\"	California, Berkeley and its contributors.
23c747c0c7SAndrzej Bialecki.\" 4. Neither the name of the University nor the names of its contributors
24c747c0c7SAndrzej Bialecki.\"    may be used to endorse or promote products derived from this software
25c747c0c7SAndrzej Bialecki.\"    without specific prior written permission.
26c747c0c7SAndrzej Bialecki.\"
27c747c0c7SAndrzej Bialecki.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
28c747c0c7SAndrzej Bialecki.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
29c747c0c7SAndrzej Bialecki.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
30c747c0c7SAndrzej Bialecki.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
31c747c0c7SAndrzej Bialecki.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
32c747c0c7SAndrzej Bialecki.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
33c747c0c7SAndrzej Bialecki.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
34c747c0c7SAndrzej Bialecki.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
35c747c0c7SAndrzej Bialecki.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
36c747c0c7SAndrzej Bialecki.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
37c747c0c7SAndrzej Bialecki.\" SUCH DAMAGE.
38c747c0c7SAndrzej Bialecki.\"
397f3dea24SPeter Wemm.\" $FreeBSD$
40c747c0c7SAndrzej Bialecki.\"
41a1d214e8SDag-Erling Smørgrav.Dd October 28, 2002
425f95f24bSRuslan Ermilov.Dt PAM_RADIUS 8
43a307d598SRuslan Ermilov.Os
44c747c0c7SAndrzej Bialecki.Sh NAME
45c747c0c7SAndrzej Bialecki.Nm pam_radius
46c747c0c7SAndrzej Bialecki.Nd RADIUS authentication PAM module
47c747c0c7SAndrzej Bialecki.Sh SYNOPSIS
481642eb1aSMark Murray.Op Ar service-name
491642eb1aSMark Murray.Ar module-type
501642eb1aSMark Murray.Ar control-flag
511642eb1aSMark Murray.Pa pam_radius
521642eb1aSMark Murray.Op Ar options
53c747c0c7SAndrzej Bialecki.Sh DESCRIPTION
54c747c0c7SAndrzej BialeckiThe
55c747c0c7SAndrzej Bialecki.Nm
56c747c0c7SAndrzej Bialeckimodule provides authentication services based
57c747c0c7SAndrzej Bialeckiupon the RADIUS (Remote Authentication Dial In User Service) protocol
58c747c0c7SAndrzej Bialeckifor the PAM (Pluggable Authentication Module) framework.
59c747c0c7SAndrzej Bialecki.Pp
60c747c0c7SAndrzej BialeckiThe
61c747c0c7SAndrzej Bialecki.Nm
62c747c0c7SAndrzej Bialeckimodule accepts these optional parameters:
63c747c0c7SAndrzej Bialecki.Bl -tag -width Fl
64c747c0c7SAndrzej Bialecki.It Cm use_first_pass
65c747c0c7SAndrzej Bialeckicauses
66c747c0c7SAndrzej Bialecki.Nm
67c747c0c7SAndrzej Bialeckito use a previously entered password instead of prompting for a new one.
68c747c0c7SAndrzej BialeckiIf no password has been entered then authentication fails.
69c747c0c7SAndrzej Bialecki.It Cm try_first_pass
70c747c0c7SAndrzej Bialeckicauses
71c747c0c7SAndrzej Bialecki.Nm
72c747c0c7SAndrzej Bialeckito use a previously entered password, if one is available.  If no
73c747c0c7SAndrzej Bialeckipassword has been entered,
74c747c0c7SAndrzej Bialecki.Nm
75c747c0c7SAndrzej Bialeckiprompts for one as usual.
76c747c0c7SAndrzej Bialecki.It Cm echo_pass
77c747c0c7SAndrzej Bialeckicauses echoing to be left on if
78c747c0c7SAndrzej Bialecki.Nm
79c747c0c7SAndrzej Bialeckiprompts for a password.
801798791dSRuslan Ermilov.It Cm conf Ns = Ns Ar pathname
81c747c0c7SAndrzej Bialeckispecifies a non-standard location for the RADIUS client configuration file
82a1d214e8SDag-Erling Smørgrav(normally located in
83a1d214e8SDag-Erling Smørgrav.Pa /etc/radius.conf ) .
84a1d214e8SDag-Erling Smørgrav.It Cm nas_id Ns No = Ns Ar identifier
85a1d214e8SDag-Erling Smørgravspecifies a NAS identifier to send instead of the hostname.
86c747c0c7SAndrzej Bialecki.It Cm template_user Ns No = 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
90c6ff3a1bSSheldon Hearnif the supplied username doesn't 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 ,
95c747c0c7SAndrzej Bialeckii.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.
10342635956SRuslan Ermilov.El
104c747c0c7SAndrzej Bialecki.Sh FILES
105c747c0c7SAndrzej Bialecki.Bl -tag -width /etc/radius.conf -compact
106c747c0c7SAndrzej Bialecki.It Pa /etc/radius.conf
107c747c0c7SAndrzej BialeckiThe standard RADIUS client configuration file for
108c747c0c7SAndrzej Bialecki.Nm
109c747c0c7SAndrzej Bialecki.El
110c747c0c7SAndrzej Bialecki.Sh SEE ALSO
111c747c0c7SAndrzej Bialecki.Xr passwd 5 ,
1125521ff5aSRuslan Ermilov.Xr radius.conf 5 ,
1135521ff5aSRuslan Ermilov.Xr pam 8
114c747c0c7SAndrzej Bialecki.Sh HISTORY
115c747c0c7SAndrzej BialeckiThe
116c747c0c7SAndrzej Bialecki.Nm
117c747c0c7SAndrzej Bialeckimodule first appeared in
118c747c0c7SAndrzej Bialecki.Fx 3.1 .
119c747c0c7SAndrzej BialeckiThe
120c747c0c7SAndrzej Bialecki.Nm
121c747c0c7SAndrzej Bialeckimanual page first appeared in
122c747c0c7SAndrzej Bialecki.Fx 3.3 .
123c747c0c7SAndrzej Bialecki.Sh AUTHORS
124725ab628SRuslan Ermilov.An -nosplit
125c747c0c7SAndrzej BialeckiThe
126c747c0c7SAndrzej Bialecki.Nm
127c747c0c7SAndrzej Bialeckimanual page was written by
128c747c0c7SAndrzej Bialecki.An Andrzej Bialecki Aq abial@FreeBSD.org .
129c747c0c7SAndrzej Bialecki.Pp
130c747c0c7SAndrzej BialeckiThe
131c747c0c7SAndrzej Bialecki.Nm
132c747c0c7SAndrzej Bialeckimodule was written by
133c747c0c7SAndrzej Bialecki.An John D. Polstra Aq jdp@FreeBSD.org .
134