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 721a0a9345SRuslan Ermilovto use a previously entered password, if one is available. 731a0a9345SRuslan ErmilovIf no 74c747c0c7SAndrzej Bialeckipassword has been entered, 75c747c0c7SAndrzej Bialecki.Nm 76c747c0c7SAndrzej Bialeckiprompts for one as usual. 77c747c0c7SAndrzej Bialecki.It Cm echo_pass 78c747c0c7SAndrzej Bialeckicauses echoing to be left on if 79c747c0c7SAndrzej Bialecki.Nm 80c747c0c7SAndrzej Bialeckiprompts for a password. 811798791dSRuslan Ermilov.It Cm conf Ns = Ns Ar pathname 82c747c0c7SAndrzej Bialeckispecifies a non-standard location for the RADIUS client configuration file 83a1d214e8SDag-Erling Smørgrav(normally located in 84a1d214e8SDag-Erling Smørgrav.Pa /etc/radius.conf ) . 85862b46f6SRuslan Ermilov.It Cm nas_id Ns = Ns Ar identifier 86a1d214e8SDag-Erling Smørgravspecifies a NAS identifier to send instead of the hostname. 87862b46f6SRuslan Ermilov.It Cm template_user Ns = Ns Ar username 88c747c0c7SAndrzej Bialeckispecifies a user whose 89c747c0c7SAndrzej Bialecki.Xr passwd 5 90c747c0c7SAndrzej Bialeckientry will be used as a template to create the session environment 91c6ff3a1bSSheldon Hearnif the supplied username doesn't exist in local password database. 92c6ff3a1bSSheldon HearnThe user 93c747c0c7SAndrzej Bialeckiwill be authenticated with the supplied username and password, but his 94c747c0c7SAndrzej Bialeckicredentials to the system will be presented as the ones for 95c747c0c7SAndrzej Bialecki.Ar username , 961a0a9345SRuslan Ermilovi.e., his login class, home directory, resource limits, etc.\& will be set to ones 97c747c0c7SAndrzej Bialeckidefined for 98c747c0c7SAndrzej Bialecki.Ar username . 99c747c0c7SAndrzej Bialecki.Pp 100c747c0c7SAndrzej BialeckiIf this option is omitted, and there is no username 101c747c0c7SAndrzej Bialeckiin the system databases equal to the supplied one (as determined by call to 10242635956SRuslan Ermilov.Xr getpwnam 3 ) , 103c747c0c7SAndrzej Bialeckithe authentication will fail. 104f142677bSMaxim Sobolev.It Cm nas_ipaddr Ns Op No = Ns Ar address 105f142677bSMaxim Sobolevspecifies a NAS IP address to be sent. 106f142677bSMaxim SobolevIf option is present, but there is no value provided then IP address 107f142677bSMaxim Sobolevcorresponding to the current hostname will be used. 10842635956SRuslan Ermilov.El 109c747c0c7SAndrzej Bialecki.Sh FILES 110c747c0c7SAndrzej Bialecki.Bl -tag -width /etc/radius.conf -compact 111c747c0c7SAndrzej Bialecki.It Pa /etc/radius.conf 112c747c0c7SAndrzej BialeckiThe standard RADIUS client configuration file for 113c747c0c7SAndrzej Bialecki.Nm 114c747c0c7SAndrzej Bialecki.El 115c747c0c7SAndrzej Bialecki.Sh SEE ALSO 116c747c0c7SAndrzej Bialecki.Xr passwd 5 , 1175521ff5aSRuslan Ermilov.Xr radius.conf 5 , 1185521ff5aSRuslan Ermilov.Xr pam 8 119c747c0c7SAndrzej Bialecki.Sh HISTORY 120c747c0c7SAndrzej BialeckiThe 121c747c0c7SAndrzej Bialecki.Nm 122c747c0c7SAndrzej Bialeckimodule first appeared in 123c747c0c7SAndrzej Bialecki.Fx 3.1 . 124c747c0c7SAndrzej BialeckiThe 125c747c0c7SAndrzej Bialecki.Nm 126c747c0c7SAndrzej Bialeckimanual page first appeared in 127c747c0c7SAndrzej Bialecki.Fx 3.3 . 128c747c0c7SAndrzej Bialecki.Sh AUTHORS 129725ab628SRuslan Ermilov.An -nosplit 130c747c0c7SAndrzej BialeckiThe 131c747c0c7SAndrzej Bialecki.Nm 132c747c0c7SAndrzej Bialeckimanual page was written by 133c747c0c7SAndrzej Bialecki.An Andrzej Bialecki Aq abial@FreeBSD.org . 134c747c0c7SAndrzej Bialecki.Pp 135c747c0c7SAndrzej BialeckiThe 136c747c0c7SAndrzej Bialecki.Nm 137c747c0c7SAndrzej Bialeckimodule was written by 138c747c0c7SAndrzej Bialecki.An John D. Polstra Aq jdp@FreeBSD.org . 139