For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > June 2007 > CPAN shell (LWP, Net::FTP) won't authenticate properly









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author CPAN shell (LWP, Net::FTP) won't authenticate properly
Richard Fernandez

2007-06-25, 9:59 pm

Hi folks,

I'm trying to use the CPAN shell to install some modules from our
internal CPAN mirror.
I'm using a URL of the form ftp://MyCpanMirror/u02/CPAN/ , and I have a
valid .netrc configured with a user and password for the mirror box.

At first I was able to query/install modules easily, but then I did an
"install Bundle::CPAN", and now I can't log into my CPAN mirror. To be
specific, LWP and Net::FTP are attempting to use an anonymous login,
which is not allowed, instead of trying to log in via the user
information contained in .netrc.

I've read the docs for CPAN, LWP::UserAgent, and Net::FTP, but I don't
see how to change this behavior. I was under the impression that if a
..netrc was available, Net::FTP at least, would use it for
authentication.

Here is a snip of the CPAN shell output:

cpan[1]> install DBD::Oracle
CPAN: Storable loaded ok (v2.08)
Going to read /iu36/s01/.cpan/Metadata
Database was generated on Fri, 22 Jun 2007 05:07:41 GMT
CPAN: LWP::UserAgent loaded ok (v2.003)
CPAN: Time::HiRes loaded ok (v1.52)
Fetching with LWP:
ftp://MyCpanMirror/u02/CPAN/authors/01mailrc.txt.gz
LWP failed with code[404] message[Can't chdir to u02]
Fetching with Net::FTP:
ftp://MyCpanMirror/u02/CPAN/authors/01mailrc.txt.gz
Couldn't login on MyCpanMirror: User anonymous unknown.
Fetching with Net::FTP
ftp://MyCpanMirror/u02/CPAN/authors/01mailrc.txt.gz.gz
Couldn't login on MyCpanMirror: User anonymous unknown.
Fetching with LWP:
http://www.perl.org/CPAN/authors/01mailrc.txt.gz

(I don't have access to the outside from this box)

What am I missing?

Thanks for the help!

richf

Richard Fernandez

2007-06-25, 9:59 pm

=20
One other thing. I am able to successfully login to the mirror box using
command line FTP and netrc for authentication.

richf
Tedtenup

2007-06-27, 10:31 am

Tara Reid and Christina Applegate , Satisfying Her Lesbian Girlfriend!

3gp funny clip gusanito postales gratis michael jackson doll xxx bbw movie xxx com porn movie to download
XXXXing free movie paris hilton sexy movie video my funny valentine free dvd movie label lesbian xxx video
download off tube video jesus music video myspace tube video usher baby picture madonna child book
free asian porn video boy movie park trailer celebrity xxx video tv movie klickfinder movie listing

windows movie maker col
free classic video game
free xxx shemale video
mature sex movie free
paris hilton video porn gratis
adult book store video
celebrity free movie sex
mature movie galleries
free xxx daily video clip
madonna costume
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com