1*716eff47SDag-Erling Smørgrav.\"- 2c747c0c7SAndrzej Bialecki.\" Copyright (c) 1992, 1993, 1994 3c747c0c7SAndrzej Bialecki.\" The Regents of the University of California. All rights reserved. 4*716eff47SDag-Erling Smørgrav.\" Copyright (c) 1999 Andrzej Bialecki <abial@FreeBSD.org> 5*716eff47SDag-Erling Smørgrav.\" All rights reserved. 6*716eff47SDag-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.\" 367f3dea24SPeter Wemm.\" $FreeBSD$ 37c747c0c7SAndrzej Bialecki.\" 38*716eff47SDag-Erling Smørgrav.Dd May 16, 2018 395f95f24bSRuslan Ermilov.Dt PAM_RADIUS 8 40a307d598SRuslan Ermilov.Os 41c747c0c7SAndrzej Bialecki.Sh NAME 42c747c0c7SAndrzej Bialecki.Nm pam_radius 43c747c0c7SAndrzej Bialecki.Nd RADIUS authentication PAM module 44c747c0c7SAndrzej Bialecki.Sh SYNOPSIS 451642eb1aSMark Murray.Op Ar service-name 461642eb1aSMark Murray.Ar module-type 471642eb1aSMark Murray.Ar control-flag 481642eb1aSMark Murray.Pa pam_radius 491642eb1aSMark Murray.Op Ar options 50c747c0c7SAndrzej Bialecki.Sh DESCRIPTION 51c747c0c7SAndrzej BialeckiThe 52c747c0c7SAndrzej Bialecki.Nm 53c747c0c7SAndrzej Bialeckimodule provides authentication services based 54c747c0c7SAndrzej Bialeckiupon the RADIUS (Remote Authentication Dial In User Service) protocol 55c747c0c7SAndrzej Bialeckifor the PAM (Pluggable Authentication Module) framework. 56c747c0c7SAndrzej Bialecki.Pp 57c747c0c7SAndrzej BialeckiThe 58c747c0c7SAndrzej Bialecki.Nm 59c747c0c7SAndrzej Bialeckimodule accepts these optional parameters: 60c747c0c7SAndrzej Bialecki.Bl -tag -width Fl 61c747c0c7SAndrzej Bialecki.It Cm use_first_pass 62c747c0c7SAndrzej Bialeckicauses 63c747c0c7SAndrzej Bialecki.Nm 64c747c0c7SAndrzej Bialeckito use a previously entered password instead of prompting for a new one. 65c747c0c7SAndrzej BialeckiIf no password has been entered then authentication fails. 66c747c0c7SAndrzej Bialecki.It Cm try_first_pass 67c747c0c7SAndrzej Bialeckicauses 68c747c0c7SAndrzej Bialecki.Nm 691a0a9345SRuslan Ermilovto use a previously entered password, if one is available. 701a0a9345SRuslan ErmilovIf no 71c747c0c7SAndrzej Bialeckipassword has been entered, 72c747c0c7SAndrzej Bialecki.Nm 73c747c0c7SAndrzej Bialeckiprompts for one as usual. 74c747c0c7SAndrzej Bialecki.It Cm echo_pass 75c747c0c7SAndrzej Bialeckicauses echoing to be left on if 76c747c0c7SAndrzej Bialecki.Nm 77c747c0c7SAndrzej Bialeckiprompts for a password. 781798791dSRuslan Ermilov.It Cm conf Ns = Ns Ar pathname 79c747c0c7SAndrzej Bialeckispecifies a non-standard location for the RADIUS client configuration file 80a1d214e8SDag-Erling Smørgrav(normally located in 81a1d214e8SDag-Erling Smørgrav.Pa /etc/radius.conf ) . 82862b46f6SRuslan Ermilov.It Cm nas_id Ns = Ns Ar identifier 83a1d214e8SDag-Erling Smørgravspecifies a NAS identifier to send instead of the hostname. 84*716eff47SDag-Erling Smørgrav.It Cm nas_ipaddr Ns Op No = Ns Ar address 85*716eff47SDag-Erling Smørgravspecifies a NAS IP address to be sent. 86*716eff47SDag-Erling SmørgravIf option is present, but there is no value provided then IP address 87*716eff47SDag-Erling Smørgravcorresponding to the current hostname will be used. 88862b46f6SRuslan Ermilov.It Cm template_user Ns = Ns Ar username 89c747c0c7SAndrzej Bialeckispecifies a user whose 90c747c0c7SAndrzej Bialecki.Xr passwd 5 91c747c0c7SAndrzej Bialeckientry will be used as a template to create the session environment 920227791bSRuslan Ermilovif the supplied username does not exist in local password database. 93c6ff3a1bSSheldon HearnThe user 94c747c0c7SAndrzej Bialeckiwill be authenticated with the supplied username and password, but his 95c747c0c7SAndrzej Bialeckicredentials to the system will be presented as the ones for 96c747c0c7SAndrzej Bialecki.Ar username , 971a0a9345SRuslan Ermilovi.e., his login class, home directory, resource limits, etc.\& will be set to ones 98c747c0c7SAndrzej Bialeckidefined for 99c747c0c7SAndrzej Bialecki.Ar username . 100c747c0c7SAndrzej Bialecki.Pp 101c747c0c7SAndrzej BialeckiIf this option is omitted, and there is no username 102c747c0c7SAndrzej Bialeckiin the system databases equal to the supplied one (as determined by call to 10342635956SRuslan Ermilov.Xr getpwnam 3 ) , 104c747c0c7SAndrzej Bialeckithe authentication will fail. 105*716eff47SDag-Erling Smørgrav.It Cm no_reply_message 106*716eff47SDag-Erling Smørgravsuppress printing of the contents of any 107*716eff47SDag-Erling Smørgrav.Cm Reply-Message 108*716eff47SDag-Erling Smørgravattributes found in 109*716eff47SDag-Erling Smørgrav.Cm Access-Accept 110*716eff47SDag-Erling Smørgravand 111*716eff47SDag-Erling Smørgrav.Cm Access-Reject 112*716eff47SDag-Erling Smørgravresponses. 113*716eff47SDag-Erling SmørgravThese are normally conveyed to the user as either informational or 114*716eff47SDag-Erling Smørgraverror messages, depending on whether the access request was accepted 115*716eff47SDag-Erling Smørgravor rejected. 116*716eff47SDag-Erling Smørgrav.It Cm no_warn 117*716eff47SDag-Erling Smørgravsuppress warning messages to the user. 118*716eff47SDag-Erling SmørgravThese messages include reasons why the user's authentication attempt 119*716eff47SDag-Erling Smørgravwas declined. 12042635956SRuslan Ermilov.El 121c747c0c7SAndrzej Bialecki.Sh FILES 122c747c0c7SAndrzej Bialecki.Bl -tag -width /etc/radius.conf -compact 123c747c0c7SAndrzej Bialecki.It Pa /etc/radius.conf 124c747c0c7SAndrzej BialeckiThe standard RADIUS client configuration file for 125c747c0c7SAndrzej Bialecki.Nm 126c747c0c7SAndrzej Bialecki.El 127c747c0c7SAndrzej Bialecki.Sh SEE ALSO 128c747c0c7SAndrzej Bialecki.Xr passwd 5 , 1295521ff5aSRuslan Ermilov.Xr radius.conf 5 , 1305521ff5aSRuslan Ermilov.Xr pam 8 131c747c0c7SAndrzej Bialecki.Sh HISTORY 132c747c0c7SAndrzej BialeckiThe 133c747c0c7SAndrzej Bialecki.Nm 134c747c0c7SAndrzej Bialeckimodule first appeared in 135c747c0c7SAndrzej Bialecki.Fx 3.1 . 136c747c0c7SAndrzej BialeckiThe 137c747c0c7SAndrzej Bialecki.Nm 138c747c0c7SAndrzej Bialeckimanual page first appeared in 139c747c0c7SAndrzej Bialecki.Fx 3.3 . 140c747c0c7SAndrzej Bialecki.Sh AUTHORS 141725ab628SRuslan Ermilov.An -nosplit 142c747c0c7SAndrzej BialeckiThe 143c747c0c7SAndrzej Bialecki.Nm 144c747c0c7SAndrzej Bialeckimanual page was written by 1452b7af31cSBaptiste Daroussin.An Andrzej Bialecki Aq Mt abial@FreeBSD.org . 146c747c0c7SAndrzej Bialecki.Pp 147c747c0c7SAndrzej BialeckiThe 148c747c0c7SAndrzej Bialecki.Nm 149c747c0c7SAndrzej Bialeckimodule was written by 1502b7af31cSBaptiste Daroussin.An John D. Polstra Aq Mt jdp@FreeBSD.org . 151