🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
3 messages
3 total messages Started by Russ Allbery Thu, 15 Aug 2002 17:12
Re: Authentication over INN
#59883
Author: Russ Allbery
Date: Thu, 15 Aug 2002 17:12
63 lines
3159 bytes
Amr A Aysha <amr-aysha[SPAMFROZEN]@medracen.net> writes:

> Here is, my readers.conf for a set of newsgroups I need
> authentication.

> #------------------------------------------------------
> auth "prima" {
>         key: prima
>         hosts: "*.prima.com,prima.com"
>         auth: "ckpasswd -f /PATH/TO/prima.passwd"
>         default: "<PA>"
>         default-domain: "prima.com"
> }  

> access "prima" {
>         key: prima
>         users: "*"

Well, the first problem is that with this configuration, there's no need
for a user to authenticate.  If they don't authenticate, that auth block
assigns them a default identity of <PA>, which * matches, so they get
access anyway.

I think you want to drop the default key in your auth block.

> in my "prima.passwd" file, I have for each user one line
> like this: "username:encrypted password"

Right.

> Then when I connect to my server I have got the following message:
> "Error authorizing your password with the News Server - Server
> responded: 502 Authentication error"

> in my news.notice file, I have got those messages:

> #------------------------------------------------------
> Aug 15 12:56:20 othello nnrpd[5082]: SERVER perl filtering enabled
> Aug 15 12:56:20 othello nnrpd[5082]: ju.prima.com connect
> Aug 15 12:56:21 othello nnrpd[5082]: ju.prima.com bad_hook program caught 
> signal 11
> Aug 15 12:56:21 othello nnrpd[5082]: ju.prima.com bad_auth
> Aug 15 12:56:21 othello nnrpd[5082]: ju.prima.com times user 0.010 system 
> 0.020 elapsed 0.066
> #------------------------------------------------------

ckpasswd is segfaulting for some reason.  That's disturbing.

Try running it by hand.  Run ckpasswd -f /path/to/passwd/file and then on
its stdin give it:

    ClientAuthname: <username>
    ClientPassword: <password>

and see what happens.  You may want to do this under a debugger if it
segfaults again.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Authentication over INN
#59889
Author: Russ Allbery
Date: Thu, 15 Aug 2002 19:34
26 lines
1865 bytes
Amr A Aysha <amr-aysha[SPAMFROZEN]@medracen.net> writes:
> Russ Allbery <rra@stanford.edu> wrote:

>> ckpasswd is segfaulting for some reason.  That's disturbing.
>> 
>> Try running it by hand.  Run ckpasswd -f /path/to/passwd/file and then
>> on its stdin give it:
>> 
>>     ClientAuthname: <username>
>>     ClientPassword: <password>

> I did what you suggested me, but nothing!
> It seems that ckpasswd is freezed :-((

You have to hit Ctrl-D after entering that.

> Are there alternative of ckpasswd for INN's authenticating process?

No.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Authentication over INN
#59907
Author: Russ Allbery
Date: Fri, 16 Aug 2002 19:28
17 lines
1764 bytes
Amr A Aysha <amr-aysha[SPAMFROZEN]@medracen.net> writes:

> OK, As you expected there was a Segmentation fault
> This explains how of why. :-)

> I have to re-compile INN package, haven't I?

You need to figure out why there's a segmentation fault, primarily.  I
don't know what's causing that.  Running ckpasswd under a debugger is how
I'd try to figure that out.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
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