🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #55556

Re: Is there a hack to support paswords that contain spaces?

#55556
From: Jeffrey M. Vinocur
Date: Sun, 09 Dec 2001 03:11
57 lines
2874 bytes
In article <ylg06l5r1p.fsf@windlord.stanford.edu>,
Russ Allbery  <rra@stanford.edu> wrote:
>Jeremy <jeremy@exit109.com> writes:
>
>> Is there any particular reason not to just take anything between
>> "authinfo pass " and end-of-line as the password, as is?
>
>No, except that it won't work with AUTHINFO SIMPLE.

I don't know anything about SIMPLE except what I just googled
for, which found a 1998 version of Stan Barber's draft.  But
given:

    The client must then send the username followed by 
    one or more space characters followed by the
    password. 

I don't see that conflicting with taking the password to be
everything beginning with the first non-whitespace after the
username.  Am I missing something?

If not, then it looks like the patch is pretty easy, I'd be happy
to do it.


Oh wait.  Implementing this for nnrpd could be a bit hairy...

We've only got the already-argified command in scope.  Ho hum.
So that leaves four options, as far as I see.

- forget the whole thing

- glom the rest of the arguments back together with spaces; this
  is an awful hack but in practice should be just dandy[1]

- change the prototype of everything in nnrpd/commands.c to also
  take the original buffer as input; this is pretty awful

- change Argify to special case for authinfo and ignore
  whitespace after the password begins; this is *really* awful


Russ, any thoughts?



[1] I can't imagine anyone ever putting a tab in a password, so
    that leaves consecutive spaces.  Which I guess *could*
    happen, but I'd be awfully surprised.  We're talking mostly
    about naive users, I think, and...I dunno, it just doesn't
    seem very likely.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Technical Details
Message-ID: <9uuko7$br8$1@marduk.litech.org>
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!news.ems.psu.edu!news.litech.org!not-for-mail
References: <9urfpi$7vi$1@teta.doit.wisc.edu> <ylwuzybpvz.fsf@windlord.stanford.edu> <1007846386.132947@ok-corral.gunslinger.net> <ylg06l5r1p.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <9uuko7$br8$1@marduk.litech.org>
Subject: Re: Is there a hack to support paswords that contain spaces?
Date: Sun, 09 Dec 2001 03:11:03 +0000
From: jeff@litech.org (Jeffrey M. Vinocur)
References: <9urfpi$7vi$1@teta.doit.wisc.edu> <ylwuzybpvz.fsf@windlord.stanford.edu> <1007846386.132947@ok-corral.gunslinger.net> <ylg06l5r1p.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!news.ems.psu.edu!news.litech.org!not-for-mail
Newsgroups: news.software.nntp
Organization: Lithium Technologies
Lines: 56
Sender: jeff@litech.org
NNTP-Posting-Host: marduk.litech.org
X-Trace: marduk.litech.org 1007867463 12136 128.84.154.54 (9 Dec 2001 03:11:03 GMT)
X-Complaints-To: usenet@litech.org
NNTP-Posting-Date: Sun, 9 Dec 2001 03:11:03 +0000 (UTC)
X-Newsreader: trn 4.0-test76 (Apr 2, 2001)
Originator: jeff@litech.org (Jeffrey M. Vinocur)