🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
36 messages
36 total messages Started by Jeffrey M. Vinocur Tue, 07 Jan 2003 01:46
[attn client authors] Multiple AUTHINFOs per session
#62858
Author: Jeffrey M. Vinocur
Date: Tue, 07 Jan 2003 01:46
19 lines
1755 bytes
[ note that I've set followups to news.software.nntp ]

There is currently discussion on the ietf-nntp mailing list on
whether we should permit clients to perform multiple
authentications steps per session.  That is, after a successful
AUTHINFO, should the client be permitted to issue AUTHINFO again.

The consensus seems to be that there is no real-world use for
this functionality.  However, if you have written (or use) a
client which issues multiple AUTHINFOs in a single session, or if
you've written a server and see clients doing this, we want to
hear about it now rather than later.  Thus, please respond
either here or on ietf-nntp (or via email to me if you prefer).


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: [attn client authors] Multiple AUTHINFOs per session
#62888
Author: Heiko Studt
Date: Tue, 07 Jan 2003 06:14
46 lines
2647 bytes
Jeffrey M. Vinocur made me laugh on 07.01.2003 02:46:43:

> There is currently discussion on the ietf-nntp mailing list on
> whether we should permit clients to perform multiple
> authentications steps per session.  That is, after a successful
> AUTHINFO, should the client be permitted to issue AUTHINFO again.

> you've written a server and see clients doing this, we want to
> hear about it now rather than later.  Thus, please respond
> either here or on ietf-nntp (or via email to me if you prefer).

Hamster 2.0 (Server-Part) can Handle multiple AUTHINFO-Phases. It sets the
Logged-In-User auf 'NIL' if he gets an "AUTHINFO USER". If he gets a wrong
"AUTHINFO PASS" he disconnects the client.

---cServerNNTP.pas
        if UpperCase(copy(Par,1,4))='USER' then begin
           CurrentUserName := TrimWhSpace( copy( Par,6,Length(Par)-5) );
           CurrentUserID   := ACTID_INVALID;
           SendResult( '381 More authentication information required' );
           exit;
        end;
        if UpperCase(copy(Par,1,4))='PASS' then begin
           s := LoginUser( TrimWhSpace( copy( Par,6,Length(Par)-5 ) ) );
           SendResult( s );
           if (copy(s,1,3)<>'281') then Cmd_Quit('');  //JW 27.12.00 NNTP->Auto Logout
           exit;
        end;
---

Hamster 2.0 (Client-Part) don't use multiple AUTHINFO-Phases.

Download Hamster Classic (2.0):
http://www.tglsoft.com

Information about Hamster:
http://home.t-online.de/home/micha-wr/hamster/



MFG, HTH

-- 
Heiko Studt

Re: [attn client authors] Multiple AUTHINFOs per session
#62889
Author: Jøhnny Fävòrítê (it means "Machi...
Date: Tue, 07 Jan 2003 09:45
9 lines
1597 bytes
Jeffrey M. Vinocur wrote:
> There is currently discussion on the ietf-nntp mailing list on
> whether we should permit clients to perform multiple
> authentications steps per session.  That is, after a successful
> AUTHINFO, should the client be permitted to issue AUTHINFO again.

I am a client author and I don't do that, nor can I think of any reason
I'd ever need to.  Just one data point, in case you're looking for them.
Re: [attn client authors] Multiple AUTHINFOs per session
#62892
Author: Frode Gill
Date: Tue, 07 Jan 2003 10:30
15 lines
1637 bytes
Jeffrey M. Vinocur <jeff@litech.org> wrote:

> There is currently discussion on the ietf-nntp mailing list on
> whether we should permit clients to perform multiple
> authentications steps per session.  That is, after a successful
> AUTHINFO, should the client be permitted to issue AUTHINFO again.

I just received a bug-report about this, and you can read the reasoning at 
<URL:http://groups.google.com/groups?selm=oprifeznpwqx5eq7%40randomtox.dyndns.org&output=gplain>. 
 This could of course be solved by starting another session, but it would 
also be neat to do it by simply re-authenticating.

-- 
Frode Gill
Re: [attn client authors] Multiple AUTHINFOs per session
#62894
Author: Andrew - Supernews
Date: Tue, 07 Jan 2003 10:41
24 lines
2032 bytes
In article <oprimksdjah714hl@news.eunet.no>, Frode Gill wrote:
> Jeffrey M. Vinocur <jeff@litech.org> wrote:
>> There is currently discussion on the ietf-nntp mailing list on
>> whether we should permit clients to perform multiple
>> authentications steps per session.  That is, after a successful
>> AUTHINFO, should the client be permitted to issue AUTHINFO again.
> 
> I just received a bug-report about this, and you can read the reasoning at 
[de-googled msgid: <oprifeznpwqx5eq7@randomtox.dyndns.org>]
>  This could of course be solved by starting another session, but it would 
> also be neat to do it by simply re-authenticating.

In a situation like that, though, aren't you going to have to record the
last NEWGROUPS time separately for each username anyway? Does it really
make sense to try and do it in one session?

Or, put another way, what response would you like to see from the server
to indicate "no, you can't re-authenticate as a different user on this
session"?

-- 
Andrew, Supernews
http://www.supernews.com - individual and corporate NNTP services
Re: [attn client authors] Multiple AUTHINFOs per session
#62897
Author: Frode Gill
Date: Tue, 07 Jan 2003 12:53
31 lines
2265 bytes
Andrew - Supernews <andrew+nonews@supernews.com> wrote:

> In article <oprimksdjah714hl@news.eunet.no>, Frode Gill wrote:
>
>> I just received a bug-report about this, and you can read the reasoning 
>> at [de-googled msgid: <oprifeznpwqx5eq7@randomtox.dyndns.org>].
>> This could of course be solved by starting another session, but it would 
>> also be neat to do it by simply re-authenticating.
>
> In a situation like that, though, aren't you going to have to record the
> last NEWGROUPS time separately for each username anyway?

Yes.


> Does it really make sense to try and do it in one session?

As my code is structured, doing it in one session would be easiest, but 
starting a new session would also be trivial. Just giving an example of 
when it would be practical to send multiple AUTHINFOs in one session...


> Or, put another way, what response would you like to see from the server
> to indicate "no, you can't re-authenticate as a different user on this
> session"?

501? (452/482 would at least not be the correct ones)

-- 
Frode Gill
Re: [attn client authors] Multiple AUTHINFOs per session
#62919
Author: Russ Allbery
Date: Tue, 07 Jan 2003 19:00
19 lines
1784 bytes
Heiko Studt <UsenetBecky@goldpool.org> writes:

> Hamster 2.0 (Server-Part) can Handle multiple AUTHINFO-Phases. It sets
> the Logged-In-User auf 'NIL' if he gets an "AUTHINFO USER". If he gets a
> wrong "AUTHINFO PASS" he disconnects the client.

INN can too, if I recall properly, but it's more of a standardization
question because multiple AUTHINFOs in the same session can do strange
things with SASL.

Did anyone specifically request this, or did you just add it because it
was easy enough to do?

-- 
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: [attn client authors] Multiple AUTHINFOs per session
#62924
Author: Peter Robinson
Date: Tue, 07 Jan 2003 20:04
23 lines
1812 bytes
Jeffrey M. Vinocur <jeff@litech.org> wrote:

> That is, after a successful
> AUTHINFO, should the client be permitted to issue AUTHINFO again.

I am not doing that.

On a related note:  I have got it into my head (I'm not sure from where)
that the server is allowed to ask for authentication at any time, and
can even do so more than once in a single session.  Is this true?

Also, RFC 2980 says

} Clients must provide authentication when requested by the server.  It
} is possible that some implementations will accept authentication
} information at the beginning of a session, but this was not the
} original intent of the specification.

So clients shouldn't volunteer authentication information without being
asked.  Is this current best practice in, err, practice?

Peter
Re: [attn client authors] Multiple AUTHINFOs per session
#62930
Author: Heiko Studt
Date: Tue, 07 Jan 2003 21:25
45 lines
2828 bytes
Russ Allbery made me laugh on 07.01.2003 20:00:50:

> > Hamster 2.0 (Server-Part) can Handle multiple AUTHINFO-Phases. It sets
> > the Logged-In-User auf 'NIL' if he gets an "AUTHINFO USER". If he gets a
> > wrong "AUTHINFO PASS" he disconnects the client.
> INN can too, if I recall properly, but it's more of a standardization
> question because multiple AUTHINFOs in the same session can do strange
> things with SASL.

Only if SASL is not included in servr itself... ;-P
In Hamster that won't be a problem, because SASL itself is programmed
completly in the Hamster-Main-Source.

> Did anyone specifically request this, or did you just add it because it
> was easy enough to do?

As far as I can remember (its years now IIRC) I saw it myself and changed it.
After sending to our Sourcen-MailingList AFAIR another one made some changes
to it, but in common it should be my own change. I will try to find...

| V1.3.22.1 vom 17.1.2001
| - Fix: Doppelte Anmeldeproblematik {Heiko Studt}
| - Änderung/Fix: Bei fehlerhafter Anmeldung am NNTP-Client per Authinfo wird
|   die Verbindung automatisch vom Hamster geschlossen. Diese Reaktion kann
|   über [Setup] / local.authreq.closeiffalse=0 in der hamster.ini verhindert
|   werden {Joern Weber}

But atm I can't find out what had changed after 1.3.22.0
Perhpas *my* fix was in POP3 or SMTP or so. Sorry, I can't find out more
information without searching my old Mail-Database...
...DONE but I didn't find anything. :(



MFG

-- 
Heiko Studt

Re: [attn client authors] Multiple AUTHINFOs per session
#62931
Author: Russ Allbery
Date: Tue, 07 Jan 2003 23:24
41 lines
2757 bytes
Peter Robinson <pmrobinson@mail.com> writes:

> On a related note:  I have got it into my head (I'm not sure from where)
> that the server is allowed to ask for authentication at any time,

Yes.

> and can even do so more than once in a single session.

Now that's a rather interesting point that I hadn't thought about.

If the user has already authenticated, and then tries to read a newsgroup
that's only available to authenticated users but isn't available with the
user's current authentication, the server needs to *not* send a 480
response.  Hm.  I wonder what INN does there now.

> Also, RFC 2980 says

> } Clients must provide authentication when requested by the server.  It
> } is possible that some implementations will accept authentication
> } information at the beginning of a session, but this was not the
> } original intent of the specification.

> So clients shouldn't volunteer authentication information without being
> asked.  Is this current best practice in, err, practice?

No, not really, because unless you authenticate up front, a bunch of
newsgroups may be missing from LIST ACTIVE and other commands may not give
you what you expect.  You have to authenticate right up front to be sure
that you're seeing all of the data that you can see.

Hm.  That's interesting; I didn't realize that RFC 2980 says that.  That
should probably be explicitly changed (with reference to RFC 2980) in any
future standardization of AUTHINFO.

-- 
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: [attn client authors] Multiple AUTHINFOs per session
#62932
Author: Russ Allbery
Date: Tue, 07 Jan 2003 23:25
27 lines
2282 bytes
Heiko Studt <UsenetBecky@goldpool.org> writes:
> Russ Allbery made me laugh on 07.01.2003 20:00:50:

>> INN can too, if I recall properly, but it's more of a standardization
>> question because multiple AUTHINFOs in the same session can do strange
>> things with SASL.

> Only if SASL is not included in servr itself... ;-P

The problem, as I understand it, is that part of the SASL exchange is
negotiation of a security layer, and then there are weird edge cases and
security concerns when you renegotiate the security layer later.

> In Hamster that won't be a problem, because SASL itself is programmed
> completly in the Hamster-Main-Source.

That's interesting; that's the first reference I've ever seen to a server
that supports SASL for authentication right now over NNTP.  Could you give
us some more details of what your implementation looks like?  (Or is it
only for other protocols, not for NNTP?)

-- 
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: [attn client authors] Multiple AUTHINFOs per session
#62933
Author: Jeffrey M. Vinocur
Date: Wed, 08 Jan 2003 01:23
17 lines
1610 bytes
In article <ylptr8h794.fsf@windlord.stanford.edu>,
Russ Allbery  <rra@stanford.edu> wrote:
>
>That's interesting; that's the first reference I've ever seen to a server
>that supports SASL for authentication right now over NNTP.

I know there are a couple independent implementations based on
the last draft that Chris released and/or the current pre-draft.

And I was under the impression that Microsoft had somehow
implemented it as an AUTHINFO GENERIC.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: [attn client authors] Multiple AUTHINFOs per session
#62934
Author: Jeffrey M. Vinocur
Date: Wed, 08 Jan 2003 01:26
31 lines
1887 bytes
In article <oprimrf0iuh714hl@news.eunet.no>,
Frode Gill  <frodegill@opera.com> wrote:
>Andrew - Supernews <andrew+nonews@supernews.com> wrote:
>
>> Does it really make sense to try and do it in one session?
>
>As my code is structured, doing it in one session would be easiest, but 
>starting a new session would also be trivial. Just giving an example of 
>when it would be practical to send multiple AUTHINFOs in one session...

Hmm, noted for consideration.


>> Or, put another way, what response would you like to see from the server
>> to indicate "no, you can't re-authenticate as a different user on this
>> session"?
>
>501?

I think maybe 502.


>(452/482 would at least not be the correct ones)

Certainly not.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: [attn client authors] Multiple AUTHINFOs per session
#62935
Author: Jeffrey M. Vinocur
Date: Wed, 08 Jan 2003 01:47
67 lines
3778 bytes
In article <ylvg10h7bu.fsf@windlord.stanford.edu>,
Russ Allbery  <rra@stanford.edu> wrote:
>Peter Robinson <pmrobinson@mail.com> writes:
>
>> On a related note:  I have got it into my head (I'm not sure from where)
>> that the server is allowed to ask for authentication at any time,
>> and can even do so more than once in a single session.
>
>Now that's a rather interesting point that I hadn't thought about.
>
>If the user has already authenticated, and then tries to read a newsgroup
>that's only available to authenticated users but isn't available with the
>user's current authentication, the server needs to *not* send a 480
>response.

This was one of the funny implications I mentioned on ietf-nntp.
If we forbid multiple authentication steps, then a command which
originally was 480 could become 502 after authentication.


>Hm.  I wonder what INN does there now.

I was going to test this -- but the only way I can get INN to
return 480 is if readers.conf assigns no identity to the incoming
connection.  After any resolver, authenticator, or default: line
assigns an identity, we get "411 no such group" for any group not
currently visible, regardless of whether authentication would
affect the response.

(I was surprised by that.)


>> Also, RFC 2980 says
>
>> } Clients must provide authentication when requested by the server.  It
>> } is possible that some implementations will accept authentication
>> } information at the beginning of a session, but this was not the
>> } original intent of the specification.
>
>> So clients shouldn't volunteer authentication information without being
>> asked.  Is this current best practice in, err, practice?
>
>No, not really, because unless you authenticate up front, a bunch of
>newsgroups may be missing from LIST ACTIVE and other commands may not give
>you what you expect.  You have to authenticate right up front to be sure
>that you're seeing all of the data that you can see.
>
>Hm.  That's interesting; I didn't realize that RFC 2980 says that.  That
>should probably be explicitly changed (with reference to RFC 2980) in any
>future standardization of AUTHINFO.

Well, the "not the original intent" stuff is entirely gone.
There's a very clear implication that the client may volunteer
("Servers are not required to accept authentication
information that is volunteered by the client" is an excerpt from
the current pre-draft), although nothing really explicit.  I see
no reason not to make it completely unambiguous; will revise, and
also make explicit mention to 2980.

Hmm, this should probably have "Obseletes: 2980" at the top, I
guess.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: [attn client authors] Multiple AUTHINFOs per session
#62936
Author: Ken Murchison
Date: Wed, 08 Jan 2003 02:25
21 lines
1987 bytes

"Jeffrey M. Vinocur" wrote:
> 
> In article <ylptr8h794.fsf@windlord.stanford.edu>,
> Russ Allbery  <rra@stanford.edu> wrote:
> >
> >That's interesting; that's the first reference I've ever seen to a server
> >that supports SASL for authentication right now over NNTP.
> 
> I know there are a couple independent implementations based on
> the last draft that Chris released and/or the current pre-draft.

Cyrus v2.2 being one of them  ;)

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
Re: [attn client authors] Multiple AUTHINFOs per session
#62938
Author: J.B. Moreno
Date: Wed, 08 Jan 2003 02:46
27 lines
2075 bytes
Jeffrey M. Vinocur <jeff@litech.org> wrote:

> [ note that I've set followups to news.software.nntp ]
> 
> There is currently discussion on the ietf-nntp mailing list on
> whether we should permit clients to perform multiple
> authentications steps per session.  That is, after a successful
> AUTHINFO, should the client be permitted to issue AUTHINFO again.
> 
> The consensus seems to be that there is no real-world use for
> this functionality.  However, if you have written (or use) a
> client which issues multiple AUTHINFOs in a single session, or if
> you've written a server and see clients doing this, we want to
> hear about it now rather than later.  Thus, please respond
> either here or on ietf-nntp (or via email to me if you prefer).

Well, it's not quite what you're asking for -- but the other day I was
using a server via telnet, and I had to reauthenticate after every
command (most annoying).

They seem to have fixed the problem since, but I could imagine a client
always authenticating in response to a 480 response code.

-- 
JBM
"Your depression will be added to my own" --  Marvin of Borg
Re: [attn client authors] Multiple AUTHINFOs per session
#62946
Author: Jeffrey M. Vinocur
Date: Wed, 08 Jan 2003 04:24
16 lines
1507 bytes
In article <1fofhc4.i88k4z5sumxpN%planB@newsreaders.com>,
J.B. Moreno <planB@newsreaders.com> wrote:
>
>They seem to have fixed the problem since, but I could imagine a client
>always authenticating in response to a 480 response code.

Yeah, if authentication is not to be permitted, the server will
need to be designed to return 502 instead of 480, since the
client is correct in attempting to authenticate when it receives
480.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: [attn client authors] Multiple AUTHINFOs per session
#62947
Author: Curt Welch
Date: Wed, 08 Jan 2003 04:31
23 lines
2268 bytes
Russ Allbery <rra@stanford.edu> wrote:
> Heiko Studt <UsenetBecky@goldpool.org> writes:
>
> > Hamster 2.0 (Server-Part) can Handle multiple AUTHINFO-Phases. It sets
> > the Logged-In-User auf 'NIL' if he gets an "AUTHINFO USER". If he gets
> > a wrong "AUTHINFO PASS" he disconnects the client.
>
> INN can too, if I recall properly, but it's more of a standardization
> question because multiple AUTHINFOs in the same session can do strange
> things with SASL.

My server happens to allow switching the user multiple times in a session.
The user doesn't switch when the AUTHINFO USER command happens, so you can
send the AUTHINFO USER, then go back to doing normal newsrading stuff, and
send the AUTHINFO PASS at any time later.  If you get the pass right, it
switches, if you get it wrong, it disconnects.  You can send multiple
AUTHINFO USER commands as well with no effect.  The arg is just stored away
and remebered for later use when the AUTHINFO PASS command happens.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: [attn client authors] Multiple AUTHINFOs per session
#62948
Author: Russ Allbery
Date: Wed, 08 Jan 2003 05:47
34 lines
2864 bytes
Curt Welch <curt@kcwc.com> writes:

> My server happens to allow switching the user multiple times in a
> session.  The user doesn't switch when the AUTHINFO USER command
> happens, so you can send the AUTHINFO USER, then go back to doing normal
> newsrading stuff, and send the AUTHINFO PASS at any time later.  If you
> get the pass right, it switches, if you get it wrong, it disconnects.
> You can send multiple AUTHINFO USER commands as well with no effect.
> The arg is just stored away and remebered for later use when the
> AUTHINFO PASS command happens.

Do you happen to know whether anyone actually uses this capability?

We're trying to figure out how to handle this.  Requiring the server be
able to handle it looks like a bad idea.  Other options are saying that
you can't do this (in which case, the server is still free to handle it if
the client sends it anyway, of course, but the client's not supposed to),
advertising as an extension whether you can do it or not, or not
advertising and making the client just try and returning an error code if
they can't reauthenticate.

My personal inclination at the moment is to say that the results of
sending multiple AUTHINFO in the same session is undefined, meaning that
the server is free to reject it or to accept it but that the client can't
rely on it and should just open a new session if it wants to do this
portably, but running a close second would be just advertising an
extension saying whether or not you can do it.

-- 
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: [attn client authors] Multiple AUTHINFOs per session
#62950
Author: Heiko Studt
Date: Wed, 08 Jan 2003 06:16
15 lines
1666 bytes
Russ Allbery made me laugh on 08.01.2003 00:25:59:

> That's interesting; that's the first reference I've ever seen to a server
> that supports SASL for authentication right now over NNTP.  Could you give

Aaarg. Forget it. Am dreaming while I am thinking about IMAP, SMTP and POP3.
But Hamster can handle multiple AUTHINFOs. That's fact. :)


MFG, sorry.

-- 
Heiko Studt

Re: [attn client authors] Multiple AUTHINFOs per session
#62952
Author: Heiko Studt
Date: Wed, 08 Jan 2003 06:36
45 lines
3044 bytes
Russ Allbery made me laugh on 08.01.2003 06:47:51:

> My personal inclination at the moment is to say that the results of
> sending multiple AUTHINFO in the same session is undefined, meaning that

Why?
For example in IMAP you can try to "SELECT" after you had selected another
Mailbox and stay in selected state, while going to that mailbox.
AFAIR the same is if you try to AUTHENTICATE again. Allthough I didn't test
that in Hamster in reality.

If you try to re-authenticate it should either give an error or let it done
without problems. Perhaps there should be a new response-code of 4xx.

For example: (My bad english ;-))

USER == AUTHINFO USER
PASS == AUTHINFO PASS

| Clients MAY try to re-authenticate with USER/PASS. They MUST NOT depend 
| on it, it can fail. If the reauthentication fail, the client MAY
| send a QUIT and then reconnect with new USER/PASS. (new TCP-Thread)
| If the server does not support reauthentication it gives the responsecode 
| 4xy (Todo!) for an new USER. PASS MUST NOT be used without a prior USER 
| and MUST NOT sended twice after an USER. Servers SHOULD disconnect the 
| client softly with same procedure as the client sended a QUIT, 
| if the whole authentication fails. (Protection against DoS/Brute-Force)


> the server is free to reject it or to accept it but that the client can't
> rely on it and should just open a new session if it wants to do this
> portably, but running a close second would be just advertising an
> extension saying whether or not you can do it.

There was no CAPA-Command for NNTP, right? ;-)
Perhaps now it's time to initialize something like that. :-P



MFG

-- 
Heiko Studt

Re: [attn client authors] Multiple AUTHINFOs per session
#62958
Author: Ken Murchison
Date: Wed, 08 Jan 2003 14:25
33 lines
2452 bytes

Heiko Studt wrote:
> 
> Russ Allbery made me laugh on 08.01.2003 06:47:51:
> 
> > My personal inclination at the moment is to say that the results of
> > sending multiple AUTHINFO in the same session is undefined, meaning that
> 
> Why?
> For example in IMAP you can try to "SELECT" after you had selected another
> Mailbox and stay in selected state, while going to that mailbox.
> AFAIR the same is if you try to AUTHENTICATE again. Allthough I didn't test
> that in Hamster in reality.

Bad example.  IMAP SELECT is like NNTP GROUP.  You can't authenticate
multiple times in an IMAP session (or POP or SMTP).  This is precisely
why this discussion is taking place.

[...]
 
> There was no CAPA-Command for NNTP, right? ;-)
> Perhaps now it's time to initialize something like that. :-P

There is in the latest (expired) RFC 977bis draft.  Its called LIST
EXTENSIONS.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
Re: [attn client authors] Multiple AUTHINFOs per session
#62959
Author: Ken Murchison
Date: Wed, 08 Jan 2003 14:26
15 lines
1816 bytes

Russ Allbery wrote:
> 
> My personal inclination at the moment is to say that the results of
> sending multiple AUTHINFO in the same session is undefined, meaning that

That might be sufficient to appease all parties.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
Re: [attn client authors] Multiple AUTHINFOs per session
#62961
Author: Heiko Studt
Date: Wed, 08 Jan 2003 16:13
24 lines
2101 bytes
Ken Murchison made me laugh on 08.01.2003 15:25:33:

> Bad example.  IMAP SELECT is like NNTP GROUP.  You can't authenticate
> multiple times in an IMAP session (or POP or SMTP).  This is precisely
> why this discussion is taking place.

In POP3 you cant auth twice?

> > There was no CAPA-Command for NNTP, right? ;-)
> > Perhaps now it's time to initialize something like that. :-P
> There is in the latest (expired) RFC 977bis draft.  Its called LIST
> EXTENSIONS.

Then that should be in next RFC too. IMHO. Such a thing is not best for many
comfort options and so on, but it's better than nothing where you have to 'try'
before using an extension.


MFG

-- 
Heiko Studt

Re: [attn client authors] Multiple AUTHINFOs per session
#62963
Author: Ken Murchison
Date: Wed, 08 Jan 2003 17:28
31 lines
2487 bytes

Heiko Studt wrote:
> 
> Ken Murchison made me laugh on 08.01.2003 15:25:33:
> 
> > Bad example.  IMAP SELECT is like NNTP GROUP.  You can't authenticate
> > multiple times in an IMAP session (or POP or SMTP).  This is precisely
> > why this discussion is taking place.
> 
> In POP3 you cant auth twice?

I don't believe so.  A quick re-read of RFC 1939 seems to confirm this.
> 
> > > There was no CAPA-Command for NNTP, right? ;-)
> > > Perhaps now it's time to initialize something like that. :-P
> > There is in the latest (expired) RFC 977bis draft.  Its called LIST
> > EXTENSIONS.
> 
> Then that should be in next RFC too. IMHO. Such a thing is not best for many
> comfort options and so on, but it's better than nothing where you have to 'try'
> before using an extension.

It _will_ be in the next RFC (whenever that is).

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
Re: [attn client authors] Multiple AUTHINFOs per session
#62965
Author: Peter Robinson
Date: Wed, 08 Jan 2003 18:06
36 lines
2102 bytes
Russ Allbery <rra@stanford.edu> wrote:

> Peter Robinson <pmrobinson@mail.com> writes:
> 
> > On a related note:  I have got it into my head (I'm not sure from where)
> > that the server is allowed to ask for authentication at any time,
> 
> Yes.
> 
> > and can even do so more than once in a single session.
> 
> Now that's a rather interesting point that I hadn't thought about.

It would make it difficult for a client to use streamed ARTICLE commands
for instance, if a server is allowed to ask for reauthentication half
way through.  I don't suppose this is likely in practice, but it would
be nice if it wasn't allowed at all.

> > Also, RFC 2980 says [...]
> > So clients shouldn't volunteer authentication information without being
> > asked.  Is this current best practice in, err, practice?
> 
> No, not really, because

[snip reason]

Thanks.

> Hm.  That's interesting; I didn't realize that RFC 2980 says that.  That
> should probably be explicitly changed (with reference to RFC 2980) in any
> future standardization of AUTHINFO.

I hope so.

Peter
Re: [attn client authors] Multiple AUTHINFOs per session
#62964
Author: Jeffrey M. Vinocur
Date: Wed, 08 Jan 2003 18:24
28 lines
2140 bytes
In article <1fohb3j.zwbzh21k5dg3fN%pmrobinson@mail.com>,
Peter Robinson <pmrobinson@gmx.net> wrote:
>
>It would make it difficult for a client to use streamed ARTICLE commands
>for instance, if a server is allowed to ask for reauthentication half
>way through.  I don't suppose this is likely in practice

Well, I think the situation previously mentioned was a distinct
bug on the server's part.  That is, I think it's reasonable to
expect that in general, authenticating again with the same
credentials would get the same amount of access.


>but it would be nice if it wasn't allowed at all.

Suppose the next ARTICLE command, for some crazy reason
(uh...maybe the server implements "child-safe filters" and will
only show articles with certain content to users tagged as
adult), cannot be seen at the current level of access.  The
server has to either send 480 or 502...might as well be the one
as the other, provided it's actually going to accept a new
AUTHINFO.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: [attn client authors] Multiple AUTHINFOs per session
#62967
Author: Remco Blaakmeer
Date: Wed, 08 Jan 2003 18:36
33 lines
2371 bytes
On Wed, 08 Jan 2003 16:13:43 GMT, Heiko Studt <UsenetBecky@goldpool.org> wrote:
> Ken Murchison made me laugh on 08.01.2003 15:25:33:
> 
>> Bad example.  IMAP SELECT is like NNTP GROUP.  You can't authenticate
>> multiple times in an IMAP session (or POP or SMTP).  This is precisely
>> why this discussion is taking place.
> 
> In POP3 you cant auth twice?

Apparently not, or not on all servers.

$ telnet mail.chello.nl pop3
Trying 213.46.243.2...
Connected to mail.chello.nl.
Escape character is '^]'.
+OK InterMail POP3 server ready.
user j.blaakmeer
+OK please send PASS command
pass *****
+OK j.blaakmeer is welcome here
stat
+OK 3 10556
user j.blaakmeer
-ERR Invalid command; valid commands: CAPA, DELE, LIST, LAST, NOOP, RETR, RSET, STAT, TOP, UIDL or QUIT
quit
+OK j.blaakmeer InterMail POP3 server signing off.
Connection closed by foreign host.
$ 

Remco
-- 
remco3:  19:35:02 up 16 days, 34 min,  9 users,  load average: 2.14, 2.13, 2.09
Re: [attn client authors] Multiple AUTHINFOs per session
#62968
Author: Curt Welch
Date: Wed, 08 Jan 2003 18:46
78 lines
5306 bytes
Russ Allbery <rra@stanford.edu> wrote:
> Curt Welch <curt@kcwc.com> writes:
>
> > My server happens to allow switching the user multiple times in a
> > session.  The user doesn't switch when the AUTHINFO USER command
> > happens, so you can send the AUTHINFO USER, then go back to doing
> > normal newsrading stuff, and send the AUTHINFO PASS at any time later.
> > If you get the pass right, it switches, if you get it wrong, it
> > disconnects. You can send multiple AUTHINFO USER commands as well with
> > no effect. The arg is just stored away and remebered for later use when
> > the AUTHINFO PASS command happens.
>
> Do you happen to know whether anyone actually uses this capability?

I have no idea.  I would doubt that any real clients make use of it, but
I've never tried to check to be sure.  I've never seen a newsreader that
would allow you to enter multiple user names and passwords for the same
server and I can't think of any reason for doing so.  I've only used it
when using telnet for debugging reasons.

> We're trying to figure out how to handle this.  Requiring the server be
> able to handle it looks like a bad idea.

It's easy to support if the code is built into the server, but if you try
to structure your server so a front end application authenticates and then
passes the connection to the real server (and the server it gets passed to
might be different based on the authtentication) it could be close to
impossible to support.  I don't see a need for allowing it so it seems fine
to me to tell clients they must not try to authenticate twice on the same
connection.

> Other options are saying that
> you can't do this (in which case, the server is still free to handle it
> if the client sends it anyway, of course, but the client's not supposed
> to), advertising as an extension whether you can do it or not, or not
> advertising and making the client just try and returning an error code if
> they can't reauthenticate.
>
> My personal inclination at the moment is to say that the results of
> sending multiple AUTHINFO in the same session is undefined, meaning that
> the server is free to reject it or to accept it but that the client can't
> rely on it and should just open a new session if it wants to do this
> portably, but running a close second would be just advertising an
> extension saying whether or not you can do it.

It's tricky because if a lot of servers allow it some client might start
using it and then problems happen when they use a server which doesn't
allow it.  You get into those "the RFC says my server is right", vs "but
every other server works with this application so you need to fix your
server" arguments.

I think it might be better to decide one way or the other which it should
do and force everyone to do the same thing instead of leaving it mostly
"undefined".

The entire NNTP authentication system has always struck me as bizarre and
bac-asward to start with.  It should have been set up as a "front-door"
system in the first place.  A server which requires authentication should
return a code (like 480) in the banner which tells the client it must
authenticate before it can do anything and then return 500 codes for any
commands not yet valid if they try to use them before authenticating.  And
once authenticated, it should not be allowed to reauthenticate on the same
connection.  Connections are not so expensive that you need to re-use them
like that.  It's not like a dial-up connection where the client may only
have one modem to work with and a hang-up and re-connect will take many
seconds.

The whole concept of having to try to do something real (like a group
command) to try and find out if the server wants you to authenticate is
just plain wrong.

But trying to fix something like this which was done wrong to start with is
not always so easy...

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: [attn client authors] Multiple AUTHINFOs per session
#62970
Author: Heiko Studt
Date: Wed, 08 Jan 2003 20:43
14 lines
1608 bytes
Remco Blaakmeer made me laugh on 08.01.2003 19:36:37:

> > In POP3 you cant auth twice?
> Apparently not, or not on all servers.

You are right.


MFG

-- 
Heiko Studt

Re: [attn client authors] Multiple AUTHINFOs per session
#62976
Author: The Profiteer
Date: Thu, 09 Jan 2003 03:39
20 lines
1678 bytes
On 08 Jan 2003 18:46:14 GMT, curt@kcwc.com (Curt Welch) tossed the following
into news.software.nntp:

>
>It's tricky because if a lot of servers allow it some client might start
>using it and then problems happen when they use a server which doesn't
>allow it.  You get into those "the RFC says my server is right", vs "but
>every other server works with this application so you need to fix your
>server" arguments.
>

Would ANYBODY actually try such an argument?  In here of all places??? <g>


Be Well my brother...
Prof
Positronic Replicant Optimized for Fighting
-- 

Re: [attn client authors] Multiple AUTHINFOs per session
#62979
Author: Curt Welch
Date: Thu, 09 Jan 2003 08:07
29 lines
2488 bytes
The Profiteer <TheProfiteerBITESPAM@iplweb.org> wrote:
> On 08 Jan 2003 18:46:14 GMT, curt@kcwc.com (Curt Welch) tossed the
> following into news.software.nntp:
>
> >
> >It's tricky because if a lot of servers allow it some client might start
> >using it and then problems happen when they use a server which doesn't
> >allow it.  You get into those "the RFC says my server is right", vs "but
> >every other server works with this application so you need to fix your
> >server" arguments.
> >
>
> Would ANYBODY actually try such an argument?  In here of all places???
> <g>

:)

It's not just the argument that's the issue, it's the fact that you risk
causing people to waste time creating a client which they thought worked
great just to find out that on some small, but important, subset if
servers, it failed so all their time creating the client was mis-spent.
Server behavior tends to be used as the "real RFCs" of usenet.  So the
closer you can get them to all working the same way the better it is for
everyone.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: [attn client authors] Multiple AUTHINFOs per session
#62993
Author: Joern Weber
Date: Thu, 09 Jan 2003 18:24
20 lines
2014 bytes
Hi

Russ Allbery schrieb/wrote:

>> In Hamster that won't be a problem, because SASL itself is programmed
>> completly in the Hamster-Main-Source.
>
> That's interesting; that's the first reference I've ever seen to a server
> that supports SASL for authentication right now over NNTP.  Could you give
> us some more details of what your implementation looks like?  (Or is it
> only for other protocols, not for NNTP?)

The Hamster supports not SASL on the NNTP server. SASL is only for
SMTP,POP3,IMAP and Telnet available. 
The NNTP server supports only SSL/TLS to protect session and passwords.

Joern Weber
-- 
email@joernweber.de
Re: [attn client authors] Multiple AUTHINFOs per session
#62995
Author: Joern Weber
Date: Thu, 09 Jan 2003 18:39
30 lines
2211 bytes
Russ Allbery schrieb/wrote:

> Heiko Studt <UsenetBecky@goldpool.org> writes:
>
>> Hamster 2.0 (Server-Part) can Handle multiple AUTHINFO-Phases. It sets
>> the Logged-In-User auf 'NIL' if he gets an "AUTHINFO USER". If he gets a
>> wrong "AUTHINFO PASS" he disconnects the client.
>
> INN can too, if I recall properly, but it's more of a standardization
> question because multiple AUTHINFOs in the same session can do strange
> things with SASL.

Yes this correct.

> Did anyone specifically request this, 

The changes in the Hamster code is not basically intend to use multiple
authentication stages. The reason for this kind of implementation is a
deficiency of standardisation.

> or did you just add it because it was easy enough to do?

No. I'm basically have add it to prevent attacks. If a client send a
second AUTHINFO command the sever should invalid the current
authentication and require a new password for work again.

Joern Weber
-- 
email@joernweber.de
Re: [attn client authors] Multiple AUTHINFOs per session
#62996
Author: Jeffrey M. Vinocur
Date: Fri, 10 Jan 2003 00:05
14 lines
1539 bytes
In article <a93d92d6506e64c47d55be7bccc5a128@blechtrottel.joernweber.de>,
Joern Weber  <email@joernweber.de> wrote:
>
>No. I'm basically have add it to prevent attacks. If a client send a
>second AUTHINFO command the sever should invalid the current
>authentication and require a new password for work again.

Can you explain further the rationale here?


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: [attn client authors] Multiple AUTHINFOs per session
#63021
Author: Joern Weber
Date: Sat, 11 Jan 2003 09:57
34 lines
2839 bytes
Hi

Jeffrey M. Vinocur schrieb/wrote:

> In article <a93d92d6506e64c47d55be7bccc5a128@blechtrottel.joernweber.de>,
> Joern Weber  <email@joernweber.de> wrote:
>>
>> No. I'm basically have add it to prevent attacks. If a client send a
>> second AUTHINFO command the sever should invalid the current
>> authentication and require a new password for work again.
>
> Can you explain further the rationale here?

The reason of a second AUTHINFO command is possible (or probable) a wrong
client side of connection. In this case is not guaranteed that's in this
time the same user work on the client side of connection as by sending the
first AUTHINFO command. The robustness way for security is invalid the
first auth data and terminate the connection if the client not
completeness send the new auth data. Theoretically a other way for solve
this problem is, the server send after the second AUTHINFO command a error
messages. But this way is not compatible to common practice with AUTHINFO
command is allowable in all states. A separation of AUTHINFO USER and
AUTHINFO PASS command it IMHO a secure risc. The server is in a undefined
state if the client has send the AUTHINFO USER but not AUTHINFO PASS. The
change of account change has start a not end. For a secure standard is the
better solution if couple the both AUTHINFO command to one phase. 


sorry for my bad english

Joern Weber
-- 
email@joernweber.de
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