.\" Automatically generated by Pod::Man 2.25 (Pod::Simple 3.20) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is turned on, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .ie \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . nr % 0 . rr F .\} .el \{\ . de IX .. .\} .\" .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). .\" Fear. Run. Save yourself. No user-serviceable parts. . \" fudge factors for nroff and troff .if n \{\ . ds #H 0 . ds #V .8m . ds #F .3m . ds #[ \f1 . ds #] \fP .\} .if t \{\ . ds #H ((1u-(\\\\n(.fu%2u))*.13m) . ds #V .6m . ds #F 0 . ds #[ \& . ds #] \& .\} . \" simple accents for nroff and troff .if n \{\ . ds ' \& . ds ` \& . ds ^ \& . ds , \& . ds ~ ~ . ds / .\} .if t \{\ . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' .\} . \" troff and (daisy-wheel) nroff accents .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' .ds 8 \h'\*(#H'\(*b\h'-\*(#H' .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] .ds ae a\h'-(\w'a'u*4/10)'e .ds Ae A\h'-(\w'A'u*4/10)'E . \" corrections for vroff .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' . \" for low resolution devices (crt and lpr) .if \n(.H>23 .if \n(.V>19 \ \{\ . ds : e . ds 8 ss . ds o a . ds d- d\h'-1'\(ga . ds D- D\h'-1'\(hy . ds th \o'bp' . ds Th \o'LP' . ds ae ae . ds Ae AE .\} .rm #[ #] #H #V #F C .\" ======================================================================== .\" .IX Title "AKLOG_DYNAMIC_AUTH 8" .TH AKLOG_DYNAMIC_AUTH 8 "2021-12-09" "OpenAFS" "AFS Command Reference" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" aklog_dynamic_auth \- LAM module to obtain AFS tokens from Kerberos tickets .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 3 \& K5AFS: \& program = /usr/lib/security/aklog_dynamic_auth \& options = authonly .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" \&\fBaklog_dynamic_auth\fR is an \s-1AIX\s0 \s-1LAM\s0 (Loadable Authentication Modules) module that can create new \s-1AFS\s0 sessions and acquire \s-1AFS\s0 tokens from Kerberos 5 tickets. It is similar in function to the \fIaklog\fR\|(1) program, and various \s-1PAM\s0 modules such as \fIpam_afs_session\fR\|(8). .PP \&\fBaklog_dynamic_auth\fR does not obtain any credentials on its own, nor does it deal with passwords of any kind. You must have another way of obtaining Kerberos 5 tickets before invoking \fBaklog_dynamic_auth\fR in order for it to do anything useful. \s-1AIX\s0 comes with a \fB\s-1KRB5\s0\fR \s-1LAM\s0 module that can do this. .SH "OPTIONS" .IX Header "OPTIONS" Beyond the normal \s-1LAM\s0 options, \fBaklog_dynamic_auth\fR understands the following options. .IP "\fBuidpag\fR" 4 .IX Item "uidpag" If this is specified, \fBaklog_dynamic_auth\fR will try to only utilize UID-based PAGs. This means that when acquiring credentials, \&\fBaklog_dynamic_auth\fR will not try to create a new \s-1PAG\s0, and instead will set tokens for the current \s-1UID\s0. If the current \s-1UID\s0 is root, \&\fBaklog_dynamic_auth\fR will look up the \s-1UID\s0 of the user we are authenticating for, and will set tokens for that \s-1UID\s0 instead. .Sp Specifying this option is necessary for \s-1AFS\s0 tokens to be refreshed with the \s-1CDE\s0 screen locking program, and possibly other \s-1LAM\s0 users. .Sp Note that if \fBaklog_dynamic_auth\fR is run from a context that has a real \&\s-1PAG\s0, it is impossible for it to set the tokens for a particular \s-1UID\s0. If \&\fBuidpag\fR is set and this situation is detected, \fBaklog_dynamic_auth\fR will log an error, but will attempt to continue and will just create a new \&\s-1PAG\s0, as if \fBuidpag\fR were not set. .IP "\fBlocaluid\fR" 4 .IX Item "localuid" Normally, \fBaklog_dynamic_auth\fR will look up the \s-1AFS\s0 \s-1ID\s0 of the username for which it is acquiring credentials by looking the in \s-1AFS\s0 Protection Database. Specifying the \fBlocaluid\fR option instead causes \&\fBaklog_dynamic_auth\fR to look up the relevant user via \fIgetpwnam\fR\|(3), and to use the returned \s-1UID\s0 for the \s-1AFS\s0 \s-1ID\s0. .Sp This will only work correctly if the IDs of local users and their \s-1AFS\s0 IDs in the \s-1AFS\s0 Protection Database are synchronized, and will only work for users of the local cell. .Sp Specifying \fBlocaluid\fR makes \fBaklog_dynamic_auth\fR avoid calling \s-1AFS\s0 pt routines, which can crash certain long-running daemons that call into \s-1LAM\s0. .SH "EXAMPLES" .IX Header "EXAMPLES" The following example allows the user \f(CW\*(C`userid\*(C'\fR to login with Kerberos 5 credentials and obtain \s-1AFS\s0 tokens on success. If Kerberos 5 authentication fails, we fall back to using local authentication. The \&\fBaklog_dynamic_aklog\fR options for \fBuidpag\fR and \fBlocaluid\fR .PP In \f(CW\*(C`/usr/lib/security/methods.cfg\*(C'\fR: .PP .Vb 4 \& KRB5: \& program = /usr/lib/security/KRB5 \& program_64 = /usr/lib/security/KRB5_64 \& options = authonly,kadmind=no \& \& K5AFS: \& program = /usr/lib/security/aklog_dynamic_auth \& options = uidpag,localuid,authonly .Ve .PP In \f(CW\*(C`/etc/security/user\*(C'\fR: .PP .Vb 2 \& userid: \& SYSTEM = "(KRB5[SUCCESS] and K5AFS) OR compat" .Ve .SH "SEE ALSO" .IX Header "SEE ALSO" \&\fIaklog\fR\|(1) .SH "COPYRIGHT" .IX Header "COPYRIGHT" Copyright Sine Nomine Associates 2011 .PP This documentation is covered by the \s-1BSD\s0 License as written in the doc/LICENSE file. This man page was written by Andrew Deason for OpenAFS.