πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #90557

Re: identify user who posted via localhost

#90557
From: John
Date: Wed, 19 Jul 2023 15:12
46 lines
2800 bytes
Urs Janßen <urs@buil.tin.org> writes:

> In <86wmywpsey.fsf@building-m.net> on Wed, 19 Jul 2023 04:05:25,
>     John wrote:
>> This is a great idea and I've enabled it to *apparent* success (it
>> logged an error message about the ident daemon rejecting connections
>> until I actually installed identd, now it doesn't log), but I don't see
>> any logs letting me know that a user has posted, just the usual e.g.
>> 
>> nnrpd[2735057]: localhost post ok <1234567890.fsf@building-m.net>
>> 
>> Is there a log kept elsewhere after authentication?
>
> ! this is based on inn < 2.3 knowledge (the last version with local spool
> ! and the old overview names) some things may have changed (a lot).
>
> the username is just logged on connection (in news.notice) you have to
> track the pid afterwards, e.g.:
>
> akw% grep urs /var/log/news/news.notice
> Jul 19 06:21:59 akw nnrpd[19289]: akw.example.org user urs
>
> akw% grep 19289 /var/log/news/news.notice| grep post
> Jul 19 06:22:28 akw nnrpd[19289]: akw.example.org post ok <u97oe2$iqp$1@news.example.org>
> Jul 19 06:23:40 akw nnrpd[19289]: akw.example.org posts received 1 rejected 0

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? I can write a tiny auth program that just accepts any
password, but it's still kind of a hassle vs not having to provide
anything at all -- at that point I'd just as soon use ckpasswd and do
real authentication.


john
Technical Details
Message-ID: <86sf9koryo.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
References: <87edl61tjp.fsf@hope.eyrie.org> <86wmywpsey.fsf@building-m.net>

Show Full Headers
Complete Article Headers
Message-ID: <86sf9koryo.fsf@building-m.net>
Subject: Re: identify user who posted via localhost
Date: Wed, 19 Jul 2023 15:12:47 +0000
From: John <john@building-m.simplistic-anti-spam-measure.net>
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: Building M
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Cancel-Lock: sha1:LW+B0NdkjWWfOYHlsqGcq5nEQG4=