🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
3 messages
3 total messages Started by Kyonshi Thu, 01 Feb 2024 15:47
INN2: authentication
#91531
Author: Kyonshi
Date: Thu, 01 Feb 2024 15:47
18 lines
1358 bytes
I am trying to set up INN2 right now, and I can access it as localhost. 
What doesn't seem to work is authentication from remote. I have this 
defined in my readers.conf right now which should give me a way to 
authenticate with a single text file containing username:password 
combinations. I previously tried with the database option, but that 
didn't work either.

  auth all {
         auth: "/usr/lib/news/bin/auth/passwd/ckpasswd -f /etc/news/newsuse"
     }
     access full {
         users: *
         newsgroups: *
     }


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)
Re: INN2: authentication
#91532
Author: 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
Re: INN2: authentication
#91533
Author: Kyonshi
Date: Thu, 01 Feb 2024 18:34
42 lines
1912 bytes
On 2/1/2024 5:59 PM, Ivo Gandolfo wrote:
> 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
> 

Ah, that's how this is supposed to work. I didn't get that from the 
documentation at all. Thanks! Gonna try that out.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads