🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #72386

Re: Authentication advice

#72386
From: John F. Morse
Date: Wed, 05 Oct 2005 03:15
115 lines
4659 bytes
Jeffrey M. Vinocur wrote:

>In article <VdJ_e.335084$5N3.160472@bgtnsc05-news.ops.worldnet.att.net>,
>John F. Morse <xanadu.bbs@invalid.net> wrote:
>
>>Access to the open groups would be available to anybody, including the 
>>users of the newspaper groups. No password should be needed (I believe 
>>"authuser" will not be sent).
>>    
>>
>
>Open posting access to?  That could potentially get you in
>trouble, but we'll let it be for now.
>  
>


Open to anyone. No password required. Such would be the religious groups.


>So assuming your newspaper groups are in local.newspapers.*, and
>local.newspapers.access-restricted is that special group where
>you leave an announcement telling people how to get access but
>nobody else could post there (if you still like that idea), and
>your other groups are in local.religion.*, you'd want a
>readers.conf that looks something like this:
>
>  auth "global" {
>    hosts: "*"
>    auth: "ckpasswd -f /path/to/password/file"
>    default: "<anonymous>"
>  }
>
>  auth "localhost" {   # might be useful for testing
>    hosts: "stdin,localhost,127.0.0.1"
>    auth: "ckpasswd -f /path/to/password/file"  # can test auth
>    default: "<localhost>"                      # but don't have to
>  }
>
>
>
>  access "authenticated" {
>    users: "*"
>    read: "local.*"
>    post: "local.*,!local.newspapers.access-restricted"
>  }
>
>  access "special" {
>    users: "xanadu,<localhost>"
>    newsgroups: "*"
>    access: "RPNAL"
>  }
>
>  access "public" {
>    users: "<anonymous>"
>    read: "local.religion.*,local.newspapers.access-restricted"
>    post: "local.religion.*"
>

I modified you example to that shown below.

When attempting to gain access from another Debian box, which did work 
with the original readers.conf, I get no authentication prompting for 
any username or password.

Thunderbird gives me the following error message: "A News (NNTP) error 
occurred: NNTP server unavailable. Try later."

This error is when I try to download any new articles, or when I try to 
refresh the list of newsgroups.

If I check "Always request authentication when connecting to this 
server" in the Thunderbird account settings for this news server, I get 
the same message. This must be unchecked for my original readers.conf to 
work.

Any ideas, or do you see any errors in the readers.conf below?

I had to use the full path to ckpasswd or it cannot find the file 
(ckpasswd: command not found).

------------------------------------------------------------------------

auth "global" {
    hosts: "*"
    auth: "/usr/lib/news/bin/auth/passwd/ckpasswd -f /var/lib/news/passlist"
    default: "<anonymous>
}

auth "localhost" {
    hosts: "stdin,localhost,127.0.0.1"
    auth: "/usr/lib/news/bin/auth/passwd/ckpasswd -f /var/lib/news/passlist"
    default: "<localhost>"
}

access "authenticated" {
    users "*"
    read: "brisbee,computers,petchat,raucouscaucus,soapbox"
    post: "brisbee,computers,petchat,raucouscaucus,soapbox"
}

access "special" {
    users: "<localhost>"
    newsgroups: "*"
    access: "RPNAL"
}

access: "public" {
    users: "<anonymous>"
    read: "local.*"
    post: "local.*"
)

-- 
John
Technical Details
Message-ID: <zzH0f.109820$qY1.395@bgtnsc04-news.ops.worldnet.att.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wn13feed!worldnet.att.net!bgtnsc04-news.ops.worldnet.att.net.POSTED!17a21c27!not-for-mail
References: <2b9f5$4335ae05$4097152a$18719@EVERESTKC.NET> <CqTZe.81538$qY1.40661@bgtnsc04-news.ops.worldnet.att.net> <dh9oli$l6c$1@puck.litech.org> <VdJ_e.335084$5N3.160472@bgtnsc05-news.ops.worldnet.att.net> <dhk6r1$iuf$3@puck.litech.org>

Show Full Headers
Complete Article Headers
Message-ID: <zzH0f.109820$qY1.395@bgtnsc04-news.ops.worldnet.att.net>
Subject: Re: Authentication advice
Date: Wed, 05 Oct 2005 03:15:43 GMT
From: "John F. Morse" <xanadu.bbs@invalid.net>
References: <2b9f5$4335ae05$4097152a$18719@EVERESTKC.NET> <CqTZe.81538$qY1.40661@bgtnsc04-news.ops.worldnet.att.net> <dh9oli$l6c$1@puck.litech.org> <VdJ_e.335084$5N3.160472@bgtnsc05-news.ops.worldnet.att.net> <dhk6r1$iuf$3@puck.litech.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wn13feed!worldnet.att.net!bgtnsc04-news.ops.worldnet.att.net.POSTED!17a21c27!not-for-mail
Reply-To: xanadu.bbs@invalid.net
Organization: Xanadu BBS
User-Agent: Debian Thunderbird 1.0.2 (X11/20050331)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: news.software.nntp
In-Reply-To: <dhk6r1$iuf$3@puck.litech.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 115
NNTP-Posting-Host: 65755ec4ebddbde431db2a10299388f5
X-Complaints-To: abuse@worldnet.att.net
X-Trace: bgtnsc04-news.ops.worldnet.att.net 1128482143
NNTP-Posting-Date: Wed, 05 Oct 2005 03:15:43 GMT