Sujet : Re: INN2 set up user authentication via ckpasswd
De : iulius (at) *nospam* nom-de-mon-site.com.invalid (Julien ÉLIE)
Groupes : news.software.nntpDate : 14. Jul 2025, 06:00:16
Autres entêtes
Organisation : Groupes francophones par TrigoFACILE
Message-ID : <10522t1$28l4l$1@news.trigofacile.com>
References : 1 2
User-Agent : Mozilla Thunderbird
Hi,
I added this to readers.conf:
auth: "/usr/lib/news/bin/auth/passwd/ckpasswd -f /etc/news/userdb"
What is the whole contents of your readers.conf file?
It needs at least something like:
auth "users" {
auth: "ckpasswd -f /etc/news/userdb"
default: "<unauthenticated>"
}
access "authenticatedpeople" {
users: "*"
newsgroups: "*"
}
access "restrictive" {
users: "<unauthenticated>"
newsgroups: "!*"
}
See
https://www.eyrie.org/~eagle/software/inn/docs/readers.conf.htmlThe rights for authenticated people (and for unauthenticated people) have to be explained.
I created a test user and got auth failure.
Here, if you successfully authenticate with the "test" user, his assigned identity is "test" in the "users" keyword of access blocks. When authentication fails, the identity is "<unauthenticated>" (the default value of the auth block).
~ htpasswd -nbd test test > /etc/news/userdb
More secure hashes are recommended, like ones obtained with:
openssl passwd -5 test
https://www.eyrie.org/~eagle/software/inn/docs/ckpasswd.html-- Julien ÉLIE« – Hou hou ! – Ouille, ouille ! – Ouf ! – Où ouf ? » (Astérix)