Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

A formal parsing algorithm should not always be used. -- D. Gries


computers / news.software.nntp / Re: Authenticating BBS users

SubjectAuthor
* Authenticating BBS usersNigel Reed
`* Re: Authenticating BBS usersRuss Allbery
 `- Re: Authenticating BBS usersNigel Reed

1
Authenticating BBS users

<20220929150152.2fbdbe5e@wibble.sysadmininc.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=1237&group=news.software.nntp#1237

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.endofthelinebbs.com!.POSTED.47.186.43.57!not-for-mail
From: sys...@endofthelinebbs.com (Nigel Reed)
Newsgroups: news.software.nntp
Subject: Authenticating BBS users
Date: Thu, 29 Sep 2022 15:01:52 -0500
Organization: End Of The Line BBS
Message-ID: <20220929150152.2fbdbe5e@wibble.sysadmininc.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: www.sysadmininc.com; posting-host="47.186.43.57";
logging-data="1300397"; mail-complaints-to="usenet@www.sysadmininc.com"
X-Newsreader: Claws Mail 4.0.0git423 (GTK 3.24.20; x86_64-pc-linux-gnu)
 by: Nigel Reed - Thu, 29 Sep 2022 20:01 UTC

Hi all,

I must admit I've not done much with user authentication other than the
basic readers.conf stuff, and then I'm not sure I fully understand that
but anyway...I digress.

I would like users on my bulletin board to be able to use my usenet
server, but logging in with their BBS username and password. These are
stored on a different server to the innd server.

I'm open to suggestions on how I can authenticate the BBS users. I have
a couple of options, when a new user registers and I verify them, I can
manually run a script to update the news server, but then I'd have to
remember to manually remove them if I delete the account.

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'm sure I'm not the only one who needs to do with so thought I'd ask
rather than re-write the wheel.

Thanks,

--
End Of The Line BBS - Plano, TX
telnet endofthelinebbs.com 23

Re: Authenticating BBS users

<87tu4pwttv.fsf@hope.eyrie.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=1238&group=news.software.nntp#1238

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!paganini.bofh.team!news.killfile.org!news.eyrie.org!.POSTED!not-for-mail
From: eag...@eyrie.org (Russ Allbery)
Newsgroups: news.software.nntp
Subject: Re: Authenticating BBS users
Date: Thu, 29 Sep 2022 18:10:20 -0700
Organization: The Eyrie
Message-ID: <87tu4pwttv.fsf@hope.eyrie.org>
References: <20220929150152.2fbdbe5e@wibble.sysadmininc.com>
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=
 by: Russ Allbery - Fri, 30 Sep 2022 01:10 UTC

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.

Re: Authenticating BBS users

<20220930041540.5793db2c@wibble.sysadmininc.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=1239&group=news.software.nntp#1239

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.endofthelinebbs.com!.POSTED.47.186.43.57!not-for-mail
From: sys...@endofthelinebbs.com (Nigel Reed)
Newsgroups: news.software.nntp
Subject: Re: Authenticating BBS users
Date: Fri, 30 Sep 2022 04:15:40 -0500
Organization: End Of The Line BBS
Message-ID: <20220930041540.5793db2c@wibble.sysadmininc.com>
References: <20220929150152.2fbdbe5e@wibble.sysadmininc.com>
<87tu4pwttv.fsf@hope.eyrie.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: www.sysadmininc.com; posting-host="47.186.43.57";
logging-data="1362298"; mail-complaints-to="usenet@www.sysadmininc.com"
X-Newsreader: Claws Mail 4.0.0git423 (GTK 3.24.20; x86_64-pc-linux-gnu)
 by: Nigel Reed - Fri, 30 Sep 2022 09:15 UTC

On Thu, 29 Sep 2022 18:10:20 -0700
Russ Allbery <eagle@eyrie.org> wrote:

> 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.

Thank you. Sounds like every I need right there. I'll take a look at
the examples. I can write a program to listen to encrypted auth
requests on the BBS side easily enough so I think I'm good.

Thanks,

--
End Of The Line BBS - Plano, TX
telnet endofthelinebbs.com 23

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor