🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #91532

Re: INN2: authentication

#91532
From: Ivo Gandolfo
Date: Thu, 01 Feb 2024 16:59
40 lines
1681 bytes
On 01/02/2024 16:47, Kyonshi wrote:
> 
> 
> I am wondering if I even can properly call the ckpasswd program with 
> this path. (the path is where the program is located on this system)


The correct way (this is a working example, adapt to your system):

cat /etc/news/readers.conf

# Setup auth for user's
auth user {
     hosts: *
     auth: "/usr/lib/news/bin/auth/passwd/ckpasswd -f /etc/news/userdb"
     default: <FAIL>
}

# If the user if autenticated use this access
access all {
     users: "user,*@your.host.here.com, !localhost, !<FAIL>*"
     newsgroups: *
     access: "RPN"
     perlfilter: true
}

# If user don't have do login, see (and post) only on local group
access fail {
     users: "<FAIL>*"
     newsgroups: !*,local.*
     access: "RP"
     perlfilter: true
}



Sincerely

-- 
Ivo Gandolfo
Technical Details
Message-ID: <upgilh$i67g$1@paganini.bofh.team>
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: <21rs8k-gbo.ln1@moria.erebor.sync.net>

Show Full Headers
Complete Article Headers
Message-ID: <upgilh$i67g$1@paganini.bofh.team>
Subject: Re: INN2: authentication
Date: Thu, 1 Feb 2024 17:59:29 +0100
From: Ivo Gandolfo <usenet@bofh.team>
References: <21rs8k-gbo.ln1@moria.erebor.sync.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: To protect and to server
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 1 Feb 2024 16:59:29 -0000 (UTC)
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha256:BDTqnyKtV1HOzwJkat4g9rwp0Rpq+MacZMTsZVHj5Jc=
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.3