Article View: news.software.nntp
Article #50804Re: Authentication
From: Russ Allbery
Date: Sat, 24 Feb 2001 06:09
Date: Sat, 24 Feb 2001 06:09
25 lines
2110 bytes
2110 bytes
Jeffrey M Vinocur <jeff@litech.org> writes:
> Brad <flyboy@optushome.com.au> wrote:
>> To clarisfy what I meant, say with this post, my from name is "Brad"
>> Now if I used a user/pass of Bradley/password I would like the post to
>> appear to come from Bradley rather than Brad as I have set in my name
>> field in the news client. :) In other words, I need the from/name field
>> to be overwritten with the username from the authentication.
> You want _only_ the "name" part changed? (Leaving the email
> address however the user supplied it.)
> If so, that's pretty weird.
You can do that in the Perl posting filter, though, if you set the
variable that lets you modify headers. Just use getpwnam to look up the
password entry and grab the GECOS field (if I'm understanding what you're
wanting 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.
Technical Details
Message-ID:
<ylbsrsmx2m.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!supernews.google.com!sn-xit-02!sn-xit-04!supernews.com!feed.textport.net!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mailReferences:
<nzFl6.420$p5.1817@news1.rivrw1.nsw.optushome.com.au> <9779l2$rt3$1@allhats.xcski.com> <30Gl6.422$p5.1661@news1.rivrw1.nsw.optushome.com.au> <977akc$b6j$1@marduk.litech.org>Show Full Headers
Complete Article Headers
Message-ID: <ylbsrsmx2m.fsf@windlord.stanford.edu> Subject: Re: Authentication Date: Sat, 24 Feb 2001 06:09:21 +0000 From: Russ Allbery <rra@stanford.edu> References: <nzFl6.420$p5.1817@news1.rivrw1.nsw.optushome.com.au> <9779l2$rt3$1@allhats.xcski.com> <30Gl6.422$p5.1661@news1.rivrw1.nsw.optushome.com.au> <977akc$b6j$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!supernews.google.com!sn-xit-02!sn-xit-04!supernews.com!feed.textport.net!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 24 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.Stanford.EDU 982994962 26790 171.64.13.23 (24 Feb 2001 06:09:22 GMT) X-Complaints-To: news@news.stanford.edu User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)