.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" 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 .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' '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 >0, 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. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "AUTH_KRB5 8" .TH AUTH_KRB5 8 2024-04-01 "INN 2.7.2" "InterNetNews Documentation" .\" 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 auth_krb5 \- nnrpd Kerberos v5 authenticator .SH SYNOPSIS .IX Header "SYNOPSIS" \&\fBauth_krb5\fR [\fB\-i\fR \fIinstance\fR] .SH DESCRIPTION .IX Header "DESCRIPTION" This program does authentication for \fBnnrpd\fR against a Kerberos\ v5\ KDC. This is NOT real Kerberos authentication using service tickets; instead, a username and password is used to attempt to obtain a Kerberos\ v5\ TGT to confirm that they are valid. As such, this authenticator assumes that \&\fBnnrpd\fR has been given the user's username and password, and therefore is not as secure as real Kerberos authentication. It generally should only be used with NNTP over TLS to protect the password from sniffing. .PP Normally, you do not want to use this authenticator. Instead, use \&\fBckpasswd\fR with PAM support and configure the \fBnnrpd\fR PAM stack to use a Kerberos PAM module. A full Kerberos PAM module is more sophisticated about how it validates passwords and has a much broader array of options than this authenticator. .SH OPTIONS .IX Header "OPTIONS" .IP "\fB\-i\fR \fIinstance\fR" 4 .IX Item "-i instance" If this option is given, \fIinstance\fR will be used as the instance of the principal received from \fBnnrpd\fR and authentication will be done against that principal instead of the base principal. In other words, a principal like \f(CW\*(C`user\*(C'\fR, when passed to \fBauth_krb5\fR invoked with \f(CW\*(C`\-i nntp\*(C'\fR, will be transformed into \f(CW\*(C`user/nntp\*(C'\fR before attempting Kerberos authentication. .Sp Since giving one's password to \fBnnrpd\fR is not as secure as normal Kerberos authentication, this option supports a configuration where all users are given a separate instance just for news authentication with its own password, so their regular account password isn't exposed via NNTP. .SH EXAMPLE .IX Header "EXAMPLE" The following readers.conf(5) fragment tells nnrpd to authenticate users by attempting to obtain Kerberos\ v5\ TGTs for them, appending an instance of \f(CW\*(C`nntp\*(C'\fR to usernames before doing so: .PP .Vb 3 \& auth kerberos { \& auth: "auth_krb5 \-i nntp" \& } \& \& access kerberos { \& users: "*/nntp" \& newsgroups: example.* \& } .Ve .PP Access is granted to the example.* groups for all users who successfully authenticate. .SH BUGS .IX Header "BUGS" Currently, any username containing realm information (containing \f(CW\*(C`@\*(C'\fR) is rejected. This is to prevent someone from passing in a username corresponding to a principal in another realm that they have access to and gaining access to the news server via it. However, this is also something that people may wish to do under some circumstances, so there should be a better way of handling it (such as, perhaps, a list of acceptable realms or a \fB\-r\fR flag specifying the realm in which to attempt authentication). .PP It's not clear the right thing to do when the username passed in contains a \f(CW\*(C`/\*(C'\fR and \fB\-i\fR was also given. Right now, \fBauth_krb5\fR will create a malformed Kerberos principal with multiple instances and attempt to authenticate against it, which will fail but perhaps not with the best error message. .SH HISTORY .IX Header "HISTORY" Originally written by Christopher P.\ Lindsey. This documentation was written by Russ Allbery based on Christopher's original \&\fIREADME\fR file. .SH "SEE ALSO" .IX Header "SEE ALSO" ckpasswd(8), nnrpd(8), readers.conf(5).