Article View: news.software.nntp
Article #59883Re: Authentication over INN
From: Russ Allbery
Date: Thu, 15 Aug 2002 17:12
Date: Thu, 15 Aug 2002 17:12
63 lines
3159 bytes
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.
Technical Details
Message-ID:
<ylsn1gxcyx.fsf@windlord.stanford.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mailReferences:
<Xns926B8418C78AE0c3248daaa6d597a84a6@62.4.16.73>Show Full Headers
Complete Article Headers
Message-ID: <ylsn1gxcyx.fsf@windlord.stanford.edu> Subject: Re: Authentication over INN Date: Thu, 15 Aug 2002 10:12:54 -0700 From: Russ Allbery <rra@stanford.edu> References: <Xns926B8418C78AE0c3248daaa6d597a84a6@62.4.16.73> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 62 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.Stanford.EDU 1029431575 28051 171.64.13.23 (15 Aug 2002 17:12:55 GMT) X-Complaints-To: news@news.stanford.edu User-Agent: Gnus/5.090008 (Oort Gnus v0.08) XEmacs/21.4 (Honest Recruiter, sparc-sun-solaris2.6) Cancel-Lock: sha1:gNT8d5rXcRvKcqsnSbTcJLtu3j4=