Thread View: news.software.nntp
3 messages
3 total messages
Started by Eric Sorenson
Fri, 04 Feb 2000 00:00
AUTHINFO discrepancies..
Author: Eric Sorenson
Date: Fri, 04 Feb 2000 00:00
Date: Fri, 04 Feb 2000 00:00
33 lines
2226 bytes
2226 bytes
Hi all - I have set up a local-newsgroups-only innd server (2.2), and hacked up nntp_auth.pl such that it authenticates every non-local connection against our MySQL database of usernames and passwords and grants access to all newsgroups if you succeed, disconnects you if you fail. It works beautifully.. for SOME newsreaders. Others, notably tin and Netscape news, handle the authentication properly (I have enabled debugging in both my auth.pl and for each nnrpd which starts up), but after receiving the "281 Ok" after a successful authentication, apparently never flip the "posting is OK now" bit inside them. Posting / followup commands are disabled, but attempts to use the commands don't cause the client contact the server at all. Has anyone else run into this before? I'm compiling a debug-enabled tin now, but netscape's another story. The other possibility besides "Damn, These Things Are Broken" is that my server isn't returning the proper response after a good auth, and it's my fault somehow. But my perl program follows the API Russ's update to README.perl_filter describes, and the REST of the clients work OK, so I don't think that is what's going on here. Any comments on what the right behavior ought to be on the client side (I couldn't find any "NNRP Protocol Specification" RFC), history of this seemingly undocumented part of NNTP, and so forth would be greatly appreciated. -- -=Eric Sent via Deja.com http://www.deja.com/ Before you buy.
Re: AUTHINFO discrepancies..
Author: Eric Sorenson
Date: Fri, 04 Feb 2000 00:00
Date: Fri, 04 Feb 2000 00:00
23 lines
1395 bytes
1395 bytes
In article <949682283.517523@news.netscum.dk>, Jeremy <bofh@netscum.dk> wrote: > I notice the README.perl_hook says that you can return a 480 on connect > to mean 'authentication required'. Don't do that. Use 200 if the client > is ever going to be allowed to post. Ah, I had a little confusion there. My perl connect callback now returns 480, but the banner that nnrpd prints when it interprets that response is 200. Seems to be working happily with all the clients I have at hand. Thanks. -- -=Eric Sent via Deja.com http://www.deja.com/ Before you buy.
Re: AUTHINFO discrepancies..
Author: Jeremy
Date: Fri, 04 Feb 2000 00:00
Date: Fri, 04 Feb 2000 00:00
25 lines
1715 bytes
1715 bytes
Eric Sorenson <eric@explosive.net> wrote: > It works beautifully.. for SOME newsreaders. Others, notably tin > and Netscape news, handle the authentication properly (I have enabled > debugging in both my auth.pl and for each nnrpd which starts up), but > after receiving the "281 Ok" after a successful authentication, > apparently never flip the "posting is OK now" bit inside them. Posting / > followup commands are disabled, but attempts to use the commands don't > cause the client contact the server at all. Make sure you're returning a 200, not a 201, to the client, on connect. Some clients take a code other than 200 as meaning they can't ever post. The response code is meant to indicate the greatest level of permission that can be attained, even if further authentication is required to get there, so a 201 can be interpreted as "you'll never be able to post here, no matter what you do." I notice the README.perl_hook says that you can return a 480 on connect to mean 'authentication required'. Don't do that. Use 200 if the client is ever going to be allowed to post. -- Jeremy ( jeremy@exit109.com | bofh@netscum.dk )
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