* Authinfo/Select Method question
@ 1997-01-15 17:28 Baba Z Buehler
1997-01-15 17:42 ` Kai Grossjohann
0 siblings, 1 reply; 6+ messages in thread
From: Baba Z Buehler @ 1997-01-15 17:28 UTC (permalink / raw)
Is there a way to put my user/password for a news server into the select
method? Or do I need to just write something to put into
nntp-server-opened-hook that sends it?
I don't need to go through a firewall or anything, I just don't want to type my
login/password every time Gnus connects.
Thanks,
--
# Baba Z Buehler - 'Hackito Ergo Sum'
# Beckman Institute Systems Services, Urbana Illinois
#
# "I am part of all that I have met." -- Alfred, Lord Tennyson
#
# PGP public key on WWW homepage and key servers (key id: C13D8EE1)
# WWW: http://www.beckman.uiuc.edu/~baba/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Authinfo/Select Method question
1997-01-15 17:28 Authinfo/Select Method question Baba Z Buehler
@ 1997-01-15 17:42 ` Kai Grossjohann
1997-01-15 17:56 ` Baba Z Buehler
0 siblings, 1 reply; 6+ messages in thread
From: Kai Grossjohann @ 1997-01-15 17:42 UTC (permalink / raw)
Cc: ding
>>>>> Baba Z Buehler writes:
Baba> Is there a way to put my user/password for a news server into
Baba> the select method? Or do I need to just write something to
Baba> put into nntp-server-opened-hook that sends it?
Turn to Mekka, shout three times ``I know where my towel is!'', and
type C-h f nntp-send-authinfo-from-file RET. You'll be enlightened.
8-)
kai
--
I wonder why nobody don't like me,
or is it de fact dat I'm ugly? -- Harry Belafonte
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Authinfo/Select Method question
1997-01-15 17:42 ` Kai Grossjohann
@ 1997-01-15 17:56 ` Baba Z Buehler
1997-01-15 19:00 ` Kai Grossjohann
1997-01-15 19:03 ` Randal Schwartz
0 siblings, 2 replies; 6+ messages in thread
From: Baba Z Buehler @ 1997-01-15 17:56 UTC (permalink / raw)
Cc: ding
Kai Grossjohann <grossjohann@charly.informatik.uni-dortmund.de> writes:
> Turn to Mekka, shout three times ``I know where my towel is!'', and
> type C-h f nntp-send-authinfo-from-file RET. You'll be enlightened.
>
Yes, Jedi Master, but this uses my login name... my account on the news server
has a different login than my regular UNIX account.
--
# Baba Z Buehler - 'Hackito Ergo Sum'
# Beckman Institute Systems Services, Urbana Illinois
#
# "How come that big box of bright ideas you sent
# me is the one they say fell off the truck?" -- Butch Hancock
#
# PGP public key on WWW homepage and key servers (key id: C13D8EE1)
# WWW: http://www.beckman.uiuc.edu/~baba/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Authinfo/Select Method question
1997-01-15 17:56 ` Baba Z Buehler
@ 1997-01-15 19:00 ` Kai Grossjohann
1997-01-15 21:17 ` Baba Z Buehler
1997-01-15 19:03 ` Randal Schwartz
1 sibling, 1 reply; 6+ messages in thread
From: Kai Grossjohann @ 1997-01-15 19:00 UTC (permalink / raw)
Cc: ding
>>>>> Baba Z Buehler writes:
Baba> Yes, Jedi Master, but this uses my login name... my account on
Baba> the news server has a different login than my regular UNIX
Baba> account.
Hm, here's a slightly modified nntp-send-authinfo-from-file.
(defun nntp-send-authinfo-from-file-1 ()
"Send the AUTHINFO to the nntp server.
This function is supposed to be called from `nntp-server-opened-hook'.
It will prompt for a password."
(when (file-exists-p "~/.nntp-userpass")
(nnheader-temp-write nil
(insert-file-contents "~/.nntp-userpass")
(goto-char (point-min))
(nntp-send-command "^.*\r?\n" "AUTHINFO USER"
(buffer-substring (point) (progn end-of-line) (point)))
(forward-line 1)
(nntp-send-command
"^.*\r?\n" "AUTHINFO PASS"
(buffer-substring (point) (progn (end-of-line) (point)))))))
This should read a ~/.nntp-userpass file consisting of two lines: the
first line contains the user name, the second line contains the
password.
Does this work?
kai
--
I wonder why nobody don't like me,
or is it de fact dat I'm ugly? -- Harry Belafonte
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Authinfo/Select Method question
1997-01-15 17:56 ` Baba Z Buehler
1997-01-15 19:00 ` Kai Grossjohann
@ 1997-01-15 19:03 ` Randal Schwartz
1 sibling, 0 replies; 6+ messages in thread
From: Randal Schwartz @ 1997-01-15 19:03 UTC (permalink / raw)
Cc: Kai Grossjohann, ding
>>>>> "Baba" == Baba Z Buehler <baba@beckman.uiuc.edu> writes:
Baba> Kai Grossjohann <grossjohann@charly.informatik.uni-dortmund.de> writes:
>> Turn to Mekka, shout three times ``I know where my towel is!'', and
>> type C-h f nntp-send-authinfo-from-file RET. You'll be enlightened.
>>
Baba> Yes, Jedi Master, but this uses my login name... my account on the news server
Baba> has a different login than my regular UNIX account.
in my .gnus.el:
(setq
gnus-select-method '(nntp "PRIVATE-NEWS.my-isp.com"
(nntp-server-opened-hook (MERLYN:nntp-authinfo-for-my-isp))
))
(defun MERLYN:nntp-authinfo-for-my-isp ()
(nntp-send-command "^.*\r?\n" "AUTHINFO USER randal")
(nntp-send-command "^.*\r?\n" "AUTHINFO PASS duh-you-think-I'd-tell-you?"))
Don't bother trying this for real.... this is an example, kids. :-)
It *would* have been nice to have this be a paramatized function, but
I didn't have time to fuss around. I need to save the time for
newsreading. :-)
--
Name: Randal L. Schwartz / Stonehenge Consulting Services (503)777-0095
Keywords: Perl training, UNIX[tm] consulting, video production, skiing, flying
Email: <merlyn@stonehenge.com> Snail: (Call) PGP-Key: (finger merlyn@ora.com)
Web: <A HREF="http://www.stonehenge.com/merlyn/">My Home Page!</A>
Quote: "I'm telling you, if I could have five lines in my .sig, I would!" -- me
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Authinfo/Select Method question
1997-01-15 19:00 ` Kai Grossjohann
@ 1997-01-15 21:17 ` Baba Z Buehler
0 siblings, 0 replies; 6+ messages in thread
From: Baba Z Buehler @ 1997-01-15 21:17 UTC (permalink / raw)
Cc: ding
Kai Grossjohann <grossjohann@charly.informatik.uni-dortmund.de> writes:
> Hm, here's a slightly modified nntp-send-authinfo-from-file.
>
> (defun nntp-send-authinfo-from-file-1 ()
> ...
> Does this work?
Yup, works like a charm... thanks!
b
--
# Baba Z Buehler - 'Hackito Ergo Sum'
# Beckman Institute Systems Services, Urbana Illinois
#
# "Let go over a cliff, die completely, and then come back
# to life---after that you cannot be deceived." -- Zen saying
#
# PGP public key on WWW homepage and key servers (key id: C13D8EE1)
# WWW: http://www.beckman.uiuc.edu/~baba/
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~1997-01-15 21:17 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-01-15 17:28 Authinfo/Select Method question Baba Z Buehler
1997-01-15 17:42 ` Kai Grossjohann
1997-01-15 17:56 ` Baba Z Buehler
1997-01-15 19:00 ` Kai Grossjohann
1997-01-15 21:17 ` Baba Z Buehler
1997-01-15 19:03 ` Randal Schwartz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).