11642eb1aSMark Murray.\" Copyright (c) 1999 21642eb1aSMark Murray.\" Andrzej Bialecki <abial@FreeBSD.org>. All rights reserved. 31642eb1aSMark Murray.\" 41642eb1aSMark Murray.\" Copyright (c) 1992, 1993, 1994 51642eb1aSMark Murray.\" The Regents of the University of California. All rights reserved. 61642eb1aSMark Murray.\" All rights reserved. 71642eb1aSMark Murray.\" 81642eb1aSMark Murray.\" This code is derived from software donated to Berkeley by 91642eb1aSMark Murray.\" Jan-Simon Pendry. 101642eb1aSMark Murray.\" 111642eb1aSMark Murray.\" Redistribution and use in source and binary forms, with or without 121642eb1aSMark Murray.\" modification, are permitted provided that the following conditions 131642eb1aSMark Murray.\" are met: 141642eb1aSMark Murray.\" 1. Redistributions of source code must retain the above copyright 151642eb1aSMark Murray.\" notice, this list of conditions and the following disclaimer. 161642eb1aSMark Murray.\" 2. Redistributions in binary form must reproduce the above copyright 171642eb1aSMark Murray.\" notice, this list of conditions and the following disclaimer in the 181642eb1aSMark Murray.\" documentation and/or other materials provided with the distribution. 19dda5b397SEitan Adler.\" 3. Neither the name of the University nor the names of its contributors 201642eb1aSMark Murray.\" may be used to endorse or promote products derived from this software 211642eb1aSMark Murray.\" without specific prior written permission. 221642eb1aSMark Murray.\" 231642eb1aSMark Murray.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 241642eb1aSMark Murray.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 251642eb1aSMark Murray.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 261642eb1aSMark Murray.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 271642eb1aSMark Murray.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 281642eb1aSMark Murray.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 291642eb1aSMark Murray.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 301642eb1aSMark Murray.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 311642eb1aSMark Murray.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 321642eb1aSMark Murray.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 331642eb1aSMark Murray.\" SUCH DAMAGE. 341642eb1aSMark Murray.\" 35*c8d84fa7SDag-Erling Smørgrav.Dd May 17, 2023 361642eb1aSMark Murray.Dt PAM_TACPLUS 8 3708ecaa10SRuslan Ermilov.Os 381642eb1aSMark Murray.Sh NAME 391642eb1aSMark Murray.Nm pam_tacplus 401642eb1aSMark Murray.Nd TACACS+ authentication PAM module 411642eb1aSMark Murray.Sh SYNOPSIS 421642eb1aSMark Murray.Op Ar service-name 431642eb1aSMark Murray.Ar module-type 441642eb1aSMark Murray.Ar control-flag 451642eb1aSMark Murray.Pa pam_tacplus 461642eb1aSMark Murray.Op Ar options 471642eb1aSMark Murray.Sh DESCRIPTION 481642eb1aSMark MurrayThe 491642eb1aSMark Murray.Nm 501642eb1aSMark Murraymodule provides authentication services based 511642eb1aSMark Murrayupon the TACACS+ protocol 521642eb1aSMark Murrayfor the PAM (Pluggable Authentication Module) framework. 531642eb1aSMark Murray.Pp 541642eb1aSMark MurrayThe 551642eb1aSMark Murray.Nm 561642eb1aSMark Murraymodule accepts these optional parameters: 57e8b02a42SRuslan Ermilov.Bl -tag -width ".Cm use_first_pass" 581642eb1aSMark Murray.It Cm use_first_pass 591642eb1aSMark Murraycauses 601642eb1aSMark Murray.Nm 611642eb1aSMark Murrayto use a previously entered password instead of prompting for a new one. 621642eb1aSMark MurrayIf no password has been entered then authentication fails. 631642eb1aSMark Murray.It Cm try_first_pass 641642eb1aSMark Murraycauses 651642eb1aSMark Murray.Nm 6608ecaa10SRuslan Ermilovto use a previously entered password, if one is available. 6708ecaa10SRuslan ErmilovIf no 681642eb1aSMark Murraypassword has been entered, 691642eb1aSMark Murray.Nm 701642eb1aSMark Murrayprompts for one as usual. 711642eb1aSMark Murray.It Cm echo_pass 721642eb1aSMark Murraycauses echoing to be left on if 731642eb1aSMark Murray.Nm 741642eb1aSMark Murrayprompts for a password. 7508ecaa10SRuslan Ermilov.It Cm conf Ns = Ns Ar pathname 761642eb1aSMark Murrayspecifies a non-standard location for the TACACS+ client configuration file 7708ecaa10SRuslan Ermilov(normally located in 7808ecaa10SRuslan Ermilov.Pa /etc/tacplus.conf ) . 7908ecaa10SRuslan Ermilov.It Cm template_user Ns = Ns Ar username 801642eb1aSMark Murrayspecifies a user whose 811642eb1aSMark Murray.Xr passwd 5 821642eb1aSMark Murrayentry will be used as a template to create the session environment 8308ecaa10SRuslan Ermilovif the supplied username does not exist in local password database. 841642eb1aSMark MurrayThe user 851642eb1aSMark Murraywill be authenticated with the supplied username and password, but his 861642eb1aSMark Murraycredentials to the system will be presented as the ones for 871642eb1aSMark Murray.Ar username , 881a0a9345SRuslan Ermilovi.e., his login class, home directory, resource limits, etc.\& will be set to ones 891642eb1aSMark Murraydefined for 901642eb1aSMark Murray.Ar username . 911642eb1aSMark Murray.Pp 921642eb1aSMark MurrayIf this option is omitted, and there is no username 931642eb1aSMark Murrayin the system databases equal to the supplied one (as determined by call to 941642eb1aSMark Murray.Xr getpwnam 3 ) , 951642eb1aSMark Murraythe authentication will fail. 961642eb1aSMark Murray.El 971642eb1aSMark Murray.Sh FILES 981642eb1aSMark Murray.Bl -tag -width /etc/tacplus.conf -compact 991642eb1aSMark Murray.It Pa /etc/tacplus.conf 1001642eb1aSMark MurrayThe standard TACACS+ client configuration file for 1011642eb1aSMark Murray.Nm 1021642eb1aSMark Murray.El 1031642eb1aSMark Murray.Sh SEE ALSO 104*c8d84fa7SDag-Erling Smørgrav.Xr pam 3 , 1051642eb1aSMark Murray.Xr passwd 5 , 1061642eb1aSMark Murray.Xr tacplus.conf 5 , 107*c8d84fa7SDag-Erling Smørgrav.Xr nss_tacplus 8 1081642eb1aSMark Murray.Sh HISTORY 1091642eb1aSMark MurrayThe 1101642eb1aSMark Murray.Nm 1111642eb1aSMark Murraymodule first appeared in 1121642eb1aSMark Murray.Fx 3.1 . 1131642eb1aSMark Murray.Sh AUTHORS 1141642eb1aSMark Murray.An -nosplit 1151642eb1aSMark MurrayThe 1161642eb1aSMark Murray.Nm 1171642eb1aSMark Murraymanual page was written by 1182b7af31cSBaptiste Daroussin.An Andrzej Bialecki Aq Mt abial@FreeBSD.org 1191642eb1aSMark Murrayand adapted to TACACS+ from RADIUS by 1202b7af31cSBaptiste Daroussin.An Mark R V Murray Aq Mt markm@FreeBSD.org . 1211642eb1aSMark Murray.Pp 1221642eb1aSMark MurrayThe 1231642eb1aSMark Murray.Nm 1241642eb1aSMark Murraymodule was written by 1252b7af31cSBaptiste Daroussin.An John D. Polstra Aq Mt jdp@FreeBSD.org . 126