Thread View: news.software.nntp
9 messages
9 total messages
Started by themf
Wed, 08 Jun 2005 00:50
NNTP authentication question
Author: themf
Date: Wed, 08 Jun 2005 00:50
Date: Wed, 08 Jun 2005 00:50
34 lines
2156 bytes
2156 bytes
Hello again, To those that read my last thread, this carries on from there. For those that haven't, it's a query on its own, I hope you can help. When my authenticating server gets a connection from a reader, the sequence it carries out goes like this: 200 localhost INN 2.3.5 ready 381 281 200 localhost INN 2.3.5 ready (posting OK) and THEN the actual authentication is done. I want to know what's going on. "281" is supposed to be "Authentication succeeded", first of all, no? It's -extremely- confusing and WRONG for it to pop up when no auth has been done in the first place! I want it be sent ONLY in the case of someone being successfully authenticated, and for NOTHING ELSE! Secondly, what's up with the "200".... and then ANOTHER "200" with the "posting OK"? And of course, what are the "381" and "281" in the middle and why are they being sent? Thanks. (Jeremy, I hope you're still around :), just read the last post you made in that thread, thanks a lot, friend :) )
Re: NNTP authentication question
Author: Clive D. W. Feather
Date: Wed, 08 Jun 2005 07:50
Date: Wed, 08 Jun 2005 07:50
30 lines
2305 bytes
2305 bytes
In article <1118191853.967433.36270@z14g2000cwz.googlegroups.com>, themf@graffiti.net writes >When my authenticating server gets a connection from a reader, the >sequence it carries out goes like this: > >200 localhost INN 2.3.5 ready >381 >281 >200 localhost INN 2.3.5 ready (posting OK) This doesn't make sense. The server should be sending *one* response and waiting for a command. What commands is it being sent? >And of course, what are the "381" and "281" in the middle and why are >they being sent? 381 is the response code for AUTHINFO USER meaning "you need to specify a password". 281 is the response code for all variants of AUTHINFO meaning "you have successfully authenticated". If the server is only allowing posting after authentication, the first 200 should be a 201. -- Clive D.W. Feather | Home: <clive@davros.org> Tel: +44 20 8495 6138 (work) | Web: <http://www.davros.org> Fax: +44 870 051 9937 | Work: <clive@demon.net> Please reply to the Reply-To address, which is: <clive@davros.org>
Re: NNTP authentication question
Author: Jeffrey M. Vinocur
Date: Wed, 08 Jun 2005 09:31
Date: Wed, 08 Jun 2005 09:31
15 lines
1507 bytes
1507 bytes
In article <fEuWKU0FNqpCFw4E@romana.davros.org>, Clive D. W. Feather <clive@davros.org> wrote: > >If the server is only allowing posting after authentication, the first >200 should be a 201. Unfortunately, after a 201, some client software will never attempt posting. So INN, if that's what it is he's running, will give 200 if there's any chance of being able to authenticate and end up with the ability to post. -- Jeffrey M. Vinocur jeff@litech.org
Re: NNTP authentication question
Author: themf
Date: Wed, 08 Jun 2005 15:52
Date: Wed, 08 Jun 2005 15:52
30 lines
2105 bytes
2105 bytes
Clive D. W. Feather wrote: > This doesn't make sense. The server should be sending *one* response and > waiting for a command. What commands is it being sent? > I was running Pan to get this trace. > >And of course, what are the "381" and "281" in the middle and why are > >they being sent? > > 381 is the response code for AUTHINFO USER meaning "you need to specify > a password". > > 281 is the response code for all variants of AUTHINFO meaning "you have > successfully authenticated". > It's -after- this sequence that the auth takes place, i.e. *Pan* is giving me a 501 AFTER this, if there's a wrong password, and going in if it isn't. Is Pan doing -two- auth sequences for some reason? Why would the first one give a 281 and the second a 501, which is what's happening?
Re: NNTP authentication question
Author: Russ Allbery
Date: Wed, 08 Jun 2005 19:23
Date: Wed, 08 Jun 2005 19:23
19 lines
1984 bytes
1984 bytes
themf <themf@graffiti.net> writes:
> It's -after- this sequence that the auth takes place, i.e. *Pan* is
> giving me a 501 AFTER this, if there's a wrong password, and going in
> if it isn't.
> Is Pan doing -two- auth sequences for some reason? Why would the first
> one give a 281 and the second a 501, which is what's happening?
I have no idea -- I really need to see the complete protocol trace to tell
you for sure, rather than just the numeric codes from the server. I need
to know what the client is sending. (Don't forget to mask out the
password, of course.)
--
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: NNTP authentication question
Author: themf
Date: Thu, 09 Jun 2005 02:42
Date: Thu, 09 Jun 2005 02:42
15 lines
2025 bytes
2025 bytes
Russ Allbery wrote: > I have no idea -- I really need to see the complete protocol trace to tell > you for sure, rather than just the numeric codes from the server. I need > to know what the client is sending. (Don't forget to mask out the > password, of course.) Er - it'll take a good bit of time to trace that :( All I'm doing is just telling it to "Download new messages from server", and I've obviously ticked off "Server requires authentication". It's sending whatever it is that newsreaders normally send, I guess :) Do you really need a complete trace? (And what good would it do anyway, I can't -change- it...., or other readers?)
Re: NNTP authentication question
Author: Russ Allbery
Date: Thu, 09 Jun 2005 02:51
Date: Thu, 09 Jun 2005 02:51
27 lines
2541 bytes
2541 bytes
themf <themf@graffiti.net> writes:
> Russ Allbery wrote:
>> I have no idea -- I really need to see the complete protocol trace to
>> tell you for sure, rather than just the numeric codes from the server.
>> I need to know what the client is sending. (Don't forget to mask out
>> the password, of course.)
> Er - it'll take a good bit of time to trace that :( All I'm doing is
> just telling it to "Download new messages from server", and I've
> obviously ticked off "Server requires authentication". It's sending
> whatever it is that newsreaders normally send, I guess :) Do you really
> need a complete trace? (And what good would it do anyway, I can't
> -change- it...., or other readers?)
Well, you've got *some* sort of trace already. If that's the only trace
that it can give you, it would be better off not having any tracing
support at all, since it's rather pointless.
If there's a bug in INN, I'd like to fix it. :) But I can't tell so far
whether there is one or not.
--
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: NNTP authentication question
Author: Clive D. W. Feather
Date: Fri, 10 Jun 2005 07:45
Date: Fri, 10 Jun 2005 07:45
23 lines
2271 bytes
2271 bytes
In article <1118245971.371423.107950@g47g2000cwa.googlegroups.com>, themf@graffiti.net writes >It's -after- this sequence that the auth takes place, Um, no. That 281 you reported shows that successful authentication has happened. >i.e. *Pan* is >giving me a 501 AFTER this, if there's a wrong password, and going in >if it isn't. 501 is the code for "syntax error in argument". It should *NOT* be used by a server to indicate a wrong password. We *NEED* a trace that shows the commands being sent as well as the responses being received. And we need two such traces, one with the right password and one with the wrong one. -- Clive D.W. Feather | Home: <clive@davros.org> Tel: +44 20 8495 6138 (work) | Web: <http://www.davros.org> Fax: +44 870 051 9937 | Work: <clive@demon.net> Please reply to the Reply-To address, which is: <clive@davros.org>
Re: NNTP authentication question
Author: Frank Slootweg
Date: Fri, 10 Jun 2005 09:49
Date: Fri, 10 Jun 2005 09:49
31 lines
2685 bytes
2685 bytes
themf@graffiti.net wrote: > > Russ Allbery wrote: > > > I have no idea -- I really need to see the complete protocol trace to tell > > you for sure, rather than just the numeric codes from the server. I need > > to know what the client is sending. (Don't forget to mask out the > > password, of course.) > > Er - it'll take a good bit of time to trace that :( All I'm doing is > just telling it to "Download new messages from server", and I've > obviously ticked off "Server requires authentication". It's sending > whatever it is that newsreaders normally send, I guess :) Do you really > need a complete trace? (And what good would it do anyway, I can't > -change- it...., or other readers?) I don't know which platform you run Pan on, but if it's (MS-)Windows, you could use Outlook Express to just get a comparable trace. You enable OE's NNTP logging with: Tools -> Options... -> Maintenance -> tick the "News" tick-box in the "Troubleshooting" section of the tab. Depending on your configuration, the file can be somewhat hard to find (if needed use Start -> Search). In my case it is in C:\Documents and Settings\<username>\Local Settings\Application Data\Identities\ <identity>\Microsoft\Outlook Express. The name of the file is the name of the News server as it appears in OE's "Folders" pane, with ".log" appended (in my case (because I use a local server (Hamster)), 127.0.0.1.log. I hope this helps.
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