🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #89670

Re: Authenticating BBS users

#89670
From: Russ Allbery
Date: Fri, 30 Sep 2022 01:10
29 lines
1848 bytes
Nigel Reed <sysop@endofthelinebbs.com> writes:

> The other is some sort of auth script that checks the users entered
> username & password against the BBS database which can then provide a
> yes/no as to whether they should be allowed in.

I would do this, but then I've written tons of scripts like this so it's
fairly easy for me.  The protocol is documented in EXAMPLES in ckpasswd.
If you specify a program with the auth: key in the auth block of
readers.conf, it is run when the user authenticates and gets:

    ClientAuthname: <username>
    ClientPassword: <password>

on standard input.  It should print:

    User: <username>

and exit with status 0 on successful authentication, and print some error
message and exit with non-zero status 

The program can then do whatever you want, such as reach out to your BBS
system to check the username and password.

-- 
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: <87tu4pwttv.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: <20220929150152.2fbdbe5e@wibble.sysadmininc.com>

Show Full Headers
Complete Article Headers
Message-ID: <87tu4pwttv.fsf@hope.eyrie.org>
Subject: Re: Authenticating BBS users
Date: Thu, 29 Sep 2022 18:10:20 -0700
From: Russ Allbery <eagle@eyrie.org>
References: <20220929150152.2fbdbe5e@wibble.sysadmininc.com>
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; logging-data="22514"; mail-complaints-to="news@eyrie.org"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:E+sSSL62JWUbf1ixhaNE3kgsKgg=