🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
3 messages
3 total messages Started by Giovanni Lopedote Mon, 18 Sep 2000 00:00
ckpasswd options?
#48432
Author: Giovanni Lopedote
Date: Mon, 18 Sep 2000 00:00
48 lines
2060 bytes
(real email address at the bottom of the page)

Hallo everyone, I'm running INN 2.3.0 and I want to leave some local
newsgroups accessible via the AUTHINFO USER/PASS command while allowing
access to all the others without a password, e.g:

local.* accessible by everyone
local.admin.* accessible by some authenthicated users
local.foo.* accessible to some other autenthicated users

All users don't need to have a shell account on the system. This means
ckpasswd should rely on a file with the users db.

I think this should be done this way:
auth "all_users" {
  auth: "/usr/local/news/bin/ckpasswd <?>"
  hosts: *
  # ckpasswd returns user <ADMIN>@internet
  # or it returns <FOO>@internet
  # or it fails and then the auth is the default:
  default: <UNKNOWN>@internet
 }

access "all" {
  users: <UNKNOWN>@internet
  newgroups: "local.*,!local.admin.*,!local.foo.*"
}
access "admins" {
  users: <ADMIN>@internet
  newgroups: "local.*,!local.foo.*"
}
access "foos" {
  users: <FOO>@internet
  newgroups: "local.*,!local.admin.*"
}

The trouble is: what are the options of ckpasswd? How do I create the users
db and how I tell ckpasswd to use it for authenthication? I wasn't able to
find the info in the documentation... hope you can help.

Thanks

Giovanni Lopedote
neuromante@gmx.net



Re: ckpasswd options?
#48439
Author: Andy
Date: Mon, 18 Sep 2000 00:00
50 lines
2200 bytes
In article <8q5oce$h57$1@nread1.inwind.it>, Giovanni Lopedote wrote:
>(real email address at the bottom of the page)
>
>Hallo everyone, I'm running INN 2.3.0 and I want to leave some local
>newsgroups accessible via the AUTHINFO USER/PASS command while allowing
>access to all the others without a password, e.g:
>
>local.* accessible by everyone
>local.admin.* accessible by some authenthicated users
>local.foo.* accessible to some other autenthicated users
>
>All users don't need to have a shell account on the system. This means
>ckpasswd should rely on a file with the users db.
>
>I think this should be done this way:
>auth "all_users" {
>  auth: "/usr/local/news/bin/ckpasswd <?>"
>  hosts: *
>  # ckpasswd returns user <ADMIN>@internet
>  # or it returns <FOO>@internet
>  # or it fails and then the auth is the default:
>  default: <UNKNOWN>@internet
> }
>
>access "all" {
>  users: <UNKNOWN>@internet
>  newgroups: "local.*,!local.admin.*,!local.foo.*"
>}
>access "admins" {
>  users: <ADMIN>@internet
>  newgroups: "local.*,!local.foo.*"
>}
>access "foos" {
>  users: <FOO>@internet
>  newgroups: "local.*,!local.admin.*"
>}
>
>The trouble is: what are the options of ckpasswd? How do I create the users
>db and how I tell ckpasswd to use it for authenthication? I wasn't able to
>find the info in the documentation... hope you can help.

Thats freaky, I just posted a similar message wondering how to create the DB.

Maybe its a sign...  :)

-- 
Andy Coates, Systems Engineer
Carrier1 UK Ltd, London Docklands

Re: ckpasswd options?
#48443
Author: Giovanni Lopedote
Date: Tue, 19 Sep 2000 00:00
62 lines
2996 bytes
(real email address at the bottom of the page)
I couldn't wait so I've gone directly into the code of ckpasswd.c and tried
to understand how it works on my own. So, this is an attempt of
documentation for INN 2.3.0's ckpasswd... I hope this can help people
configuring it.

ckpasswd accepts three authentication methods. The user/pass are sent to it
by nnrpd through the AUTHINFO USER/PASS commands. It returns the user name
or an error message if authentication fails ("user unknown" or "password
doesn't match").

ckpasswd -s checks for user/pass against the system shell accounts;
ckpasswd -d <file> uses a db file instead, accessed through the dbm library;
this options is present only if dbm library was found in the system at
compile time. But, I don't know what progs I should use to make this db
file;
ckpasswd -f <file> finally, uses a text file with encrypted passwords. Each
line of this file consists of a couple <user>:<pass encrypted with crypt
library>. No comments or blank lines are allowed. If you have Apache
installed, this auth file can be easily created and modified using Apache's
"htpasswd -d" (see manpage for details). ***NOTE***: the -f option of
ckpasswd DOESN'T WORK in the one shipped with INN 2.3.0 distribution, as
there's a bug in it. Refer to my message "Got it! ckpasswd -f bug (INN
2.3.0)" for an easy fix.

now, there's the solution I've found for me. In my example:

> local.* accessible by everyone
> local.admin.* accessible by some authenticated users
> local.foo.* accessible to some other autenticated users
>
> All users don't need to have a shell account on the system.

I have created the file /usr/local/news/db/newsusers with htpasswd -d; then

auth "all_users" {
  hosts: *
  auth: "ckpasswd -f  /usr/local/news/db/newsusers"
  default: <UNKNOWN>
}

access "admins" {
  users: "[list of authorized users for local.admin.*]"
  newsgroups: "local.*,!local.foo.*"
}
access "foos" {
  users: "[list of authorized users for local.foo.*]"
  newsgroups: "local.*,!local.admin.*"
}
access "all" {
  users: <UNKNOWN>
  newsgroups: "local.*,!local.admin.*,!local.foo.*"
}

Giovanni Lopedote
Bari, Italy
neuromante@gmx.net




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