🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
6 messages
6 total messages Started by twigster Thu, 05 Jan 2006 20:06
[HELP ] identification with ckpasswd and INN2
#73008
Author: twigster
Date: Thu, 05 Jan 2006 20:06
50 lines
2228 bytes
Hi,

I don't manage to have my authentification working with inn2 and ckpasswd.

I'm trying to use "ckpasswd -f" which works as it can be seen :

the result of the test of ckpasswd :

!!!ROOT!!!:/etc/news# (echo 'ClientAuthname: admin' ; echo 
'ClientPassword: admin')  | /usr/lib/news/bin/auth/passwd/ckpasswd -f 
/etc/news/inn_pass
User:admin


---
my inn_pass has been generated with :
htpasswd -bc inn_pass admin admin
---

my readers.conf contains:

auth "worldwide" {
     auth: "/usr/lib/news/bin/auth/passwd/ckpasswd -f /etc/news/inn_pass"
     hosts: "*"
     default: "<unregistered>"
}

access "registereduser" {
     users: "admin"
     newsgroups: "*"
     access: RP
}

access "unregistereduser" {
     users: "<unregistered>"
     newsgroups: "!*, test"
     access: RP
}

------------

and when I try to login with and identification with thunderbird (I've 
checked the "Always request authentification when connecting to the 
server" in the server settings) using the login admin and pass admin but 
I get "Authentification error"

Please take a look. I really need help urgently

regards
Alexandre
Re: [HELP ] identification with ckpasswd and INN2
#73009
Author: Bozweb
Date: Thu, 05 Jan 2006 20:35
70 lines
2704 bytes
On Thu, 05 Jan 2006 21:06:04 +0100, twigster
<twigsterREMOVE@THISmelix.net> wrote:

>Hi,
>
>I don't manage to have my authentification working with inn2 and ckpasswd.
>
>I'm trying to use "ckpasswd -f" which works as it can be seen :
>
>the result of the test of ckpasswd :
>
>!!!ROOT!!!:/etc/news# (echo 'ClientAuthname: admin' ; echo 
>'ClientPassword: admin')  | /usr/lib/news/bin/auth/passwd/ckpasswd -f 
>/etc/news/inn_pass
>User:admin
>
>
>---
>my inn_pass has been generated with :
>htpasswd -bc inn_pass admin admin
>---
>
>my readers.conf contains:
>
>auth "worldwide" {
>     auth: "/usr/lib/news/bin/auth/passwd/ckpasswd -f /etc/news/inn_pass"
>     hosts: "*"
>     default: "<unregistered>"
>}
>
>access "registereduser" {
>     users: "admin"
>     newsgroups: "*"
>     access: RP
>}
>
>access "unregistereduser" {
>     users: "<unregistered>"
>     newsgroups: "!*, test"
>     access: RP
>}
>
>------------
>
>and when I try to login with and identification with thunderbird (I've 
>checked the "Always request authentification when connecting to the 
>server" in the server settings) using the login admin and pass admin but 
>I get "Authentification error"
>
>Please take a look. I really need help urgently
>
>regards
>Alexandre

Have you create a passwordfile? 
Name the file whatever you like.
And then create the password with htpasswd.
htpasswd nntpusers admin
New password: 
Re-type new password: 

auth "INTERNET" {
        hosts: "*"
        auth: "ckpasswd -f /usr/local/news/etc/nntpusers"


thats it.

http://news.bozweb.net/
Key: 0x82DEE1A0
Re: [HELP ] identification with ckpasswd and INN2
#73016
Author: Jeffrey M. Vinocur
Date: Thu, 05 Jan 2006 22:07
49 lines
2280 bytes
In article <43bd7c1b$0$4347$626a54ce@news.free.fr>,
twigster  <twigsterREMOVE@THISmelix.net> wrote:
>
>!!!ROOT!!!:/etc/news# (echo 'ClientAuthname: admin' ; echo 
>'ClientPassword: admin')  | /usr/lib/news/bin/auth/passwd/ckpasswd -f 
>/etc/news/inn_pass
>User:admin

Okay, that looks promising.


>auth "worldwide" {
>     auth: "/usr/lib/news/bin/auth/passwd/ckpasswd -f /etc/news/inn_pass"
>     hosts: "*"
>     default: "<unregistered>"
>}
>
>access "registereduser" {
>     users: "admin"
>     newsgroups: "*"
>     access: RP
>}
>
>access "unregistereduser" {
>     users: "<unregistered>"
>     newsgroups: "!*, test"
>     access: RP
>}

Your readers.conf looks good as well.  I'm surprised it isn't
working.

The only idea I have is that you don't need the full path to the
authenticator.  (It should work, at least in recent INN, but in
older versions it didn't and I don't know exactly what you have.)

So try this instead:

    auth: "ckpasswd -f /etc/news/inn_pass"

If that doesn't work, you should look in the news.notice log to
see what message it gives when you try authenticating.  If you
don't understand the message, post it here.



-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: [HELP ] identification with ckpasswd and INN2
#73017
Author: F. Senault
Date: Thu, 05 Jan 2006 22:11
20 lines
1886 bytes
Le 5 janvier 2006 à 21:06, twigster a écrit :

> Hi,
> 
> I don't manage to have my authentification working with inn2 and ckpasswd.
> 
> I'm trying to use "ckpasswd -f" which works as it can be seen :
> 
> the result of the test of ckpasswd :
> 
> !!!ROOT!!!:/etc/news# (echo 'ClientAuthname: admin' ; echo 
  ^^^^^^^^^^^^^^^^^^^^^
Simple suggestion...  Is the password file readable by the news user ?
What if you try the same after a su - news ?

Fred
-- 
Today is a good day. Not because anything wonderful is happening, so
much, but because my definition of a 'bad day' has been revised.
                                                (Chris Klein in the SDM)
Re: [HELP ] identification with ckpasswd and INN2
#73028
Author: twigster
Date: Mon, 09 Jan 2006 11:01
4 lines
1370 bytes
ok it was the read permissions on the file for the user news !

thank you to all of you
Alex
Re: [HELP ] identification with ckpasswd and INN2
#73031
Author: F. Senault
Date: Mon, 09 Jan 2006 12:11
15 lines
1940 bytes
Le 9 janvier 2006 à 12:01, twigster a écrit :

> ok it was the read permissions on the file for the user news !

Always, always, always work as user "news".  Create and configure its
account like yours, with all the aliasses, scripts and editors configs
you use.  And don't ever again touch user root for anything else than
upgrading INN...

Fred
-- 
I'll cross my heart and hope to die but the needle's already in my eye.
And all the world's weight is on my back and i don't even know why.  And
what I used to think was me is just a fading memory. I looked him right
in the eye and said "goodbye."             (Nine Inch Nails, Down in It)
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