Re: [solved] INN2 set up user authentication via ckpasswd

Liste des GroupesRevenir à ns nntp 
Sujet : Re: [solved] INN2 set up user authentication via ckpasswd
De : iulius (at) *nospam* nom-de-mon-site.com.invalid (Julien ÉLIE)
Groupes : news.software.nntp
Date : 16. Jul 2025, 06:09:43
Autres entêtes
Organisation : Groupes francophones par TrigoFACILE
Message-ID : <1057c6o$2c6pq$1@news.trigofacile.com>
References : 1 2 3 4 5
User-Agent : Mozilla Thunderbird
Hi,

Authentication works with the below configuration in readers.conf.
I suppose INN is choosing the first one that applies ?
Glad to hear that!
Both authentication and access blocks are checked from the *last* one in the readers.conf file to the first one (bottom up).  As soon as one matches, the corresponding identity or access is assigned to the user.

I needed to include the full path to ckpasswd as it is not in system path.
Strange.  There's normally no need in having the full path in system path as you seem to use the default one (/usr/lib/news/bin/auth/passwd) which is hard-coded in INN:
     tmp = concatpath(innconf->pathbin, INN_PATH_AUTHDIR);
     resdir = concatpath(tmp, INN_PATH_AUTHDIR_PASSWD);
     auth_external(&Client, command, resdir, username, password);
I suppose pathbin in inn.conf is "/usr/lib/news/bin".
Then the "auth" and "passwd" subdirectories are added to this path, and your ckpasswd program is started from there by default when no full path is given.

I also needed to make sure I was entering into mode reader before authenticating.
Ah, that was it!
Indeed, you need being in reader mode.  Sorry I did not spot that as I did not know the whole NNTP session.  The greeting banner would have been of help.
FWIW, authentication in transit mode is parametered in incoming.conf (see the password parameter) and applies to your peers.

I will follow your advice for a more secure password hashing scheme.
The default one does look rather weak.
Yes.
--
Julien ÉLIE
« Ma femme prétend que je n'écoute jamais ce qu'elle dit… enfin… un truc
   comme ça. » (Chevy Chase)

Date Sujet#  Auteur
12 Jul 25 * INN2 set up user authentication via ckpasswd6Anonymous
13 Jul 25 `* Re: INN2 set up user authentication via ckpasswd5Anonymous
14 Jul 25  `* Re: INN2 set up user authentication via ckpasswd4Julien ÉLIE
15 Jul03:40   `* Re: INN2 set up user authentication via ckpasswd3Anonymous
15 Jul04:35    `* [solved] INN2 set up user authentication via ckpasswd2Anonymous
16 Jul06:09     `- Re: [solved] INN2 set up user authentication via ckpasswd1Julien ÉLIE

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal