🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #90558

Re: identify user who posted via localhost

#90558
From: Russ Allbery
Date: Wed, 19 Jul 2023 15:52
34 lines
2348 bytes
John <john@building-m.simplistic-anti-spam-measure.net> writes:

> It seems I spoke too soon... I thought adding "res" would resolve the
> username without necessarily requiring further authentication, but Gnus
> is prompting me for a password and I see this in my log file:

> nnrpd[2796111]: localhost (::1) connect - port 119
> nnrpd[2796111]: Reading access from /etc/news/readers.conf
> nnrpd[2796111]: localhost res starting resolver ident
> nnrpd[2796111]: localhost res resolver successful, user john
> nnrpd[2796111]: localhost res john
> nnrpd[2796111]: localhost no_match_user john <localhost>
> nnrpd[2796111]: localhost no_access_realm

> Is there a way to do the username resolution but *not* prompt for a
> password at all?

You have to make sure there's an access stanza that matches all possible
identities returned from the auth stanza.  In your case, presumably that
means you want an access stanza with users: "*".

The way readers.conf works is that the auth block assigns an identity and
the access block that matches that identity says what permissions the user
has.  Presumably previously you had an auth block that matched users from
localhost and assigned the <localhost> identity and had an access stanza
that matched that identity, but now that you're using ident, the identity
is now something like "john" instead of "<localhost>" and it's not
matching any more.

-- 
Russ Allbery (eagle@eyrie.org)             <https://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <https://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <878rbbyk3w.fsf@hope.eyrie.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <87edl61tjp.fsf@hope.eyrie.org> <86wmywpsey.fsf@building-m.net>

Show Full Headers
Complete Article Headers
Message-ID: <878rbbyk3w.fsf@hope.eyrie.org>
Subject: Re: identify user who posted via localhost
Date: Wed, 19 Jul 2023 08:52:19 -0700
From: Russ Allbery <eagle@eyrie.org>
References: <87edl61tjp.fsf@hope.eyrie.org> <86wmywpsey.fsf@building-m.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: hope.eyrie.org;
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Cancel-Lock: sha1:rtNXFshYhZVeacKf+O+g/XR6otY=