9 More Discussions You Might Find Interesting
1. Solaris
I just installed this 11.2 ver and when I tell it to shutdown it takes for ever then just hangs with this just a little bit of that red line left to go, then it just sits there like forever until I get tired of looking at it then force a shutdown by holding my power button down until my laptop... (8 Replies)
Discussion started by: userx-bw
8 Replies
2. Shell Programming and Scripting
Version: AIX 6.1 (korn shell)
In the below output, the field with the heading 'Address' has some names like
hwproc214-priv1.gnas.wrd.netwhich are only partially displayed.
$ netstat -i
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
en2 1500 link#2 ... (3 Replies)
Discussion started by: polavan
3 Replies
3. Shell Programming and Scripting
Hi..
Can Anyone out there help me? I need to write a script to convert a file in EDCIDC format to CSV
The files will be transfered through sftp to the box. Is there a way to check the file has finished being transfered or still transfering. so that my conversion task will be performed after... (3 Replies)
Discussion started by: ramukandada
3 Replies
4. What is on Your Mind?
In honor of the anniversary of one of the best British shows (and memoriam of Graham Chapman)...
npjOSLCR2hE
9ZlBUglE6Hc (1 Reply)
Discussion started by: pludi
1 Replies
5. UNIX for Dummies Questions & Answers
This is my first post here, I tried searching the forum and other sites as well - but I still couldn't figure out exactly what UNIX is. I mean like for C programming we Turbo C++ IDE, and in same way different platforms for other languages.
What do we use for UNIX? I'm completely new to UNIX and... (2 Replies)
Discussion started by: j7x
2 Replies
6. UNIX for Dummies Questions & Answers
So I am ridiculously new to UNIX. The closest thing to it I use is Mac OS X. Recently I downloaded OpenDarwin 7.2.1 just to see what it was like. I popped it into Vmware, installation and boot work well, and I login.
Now I am presented with a console. I'm generally okay with command line... (2 Replies)
Discussion started by: sinister
2 Replies
7. Solaris
I have an Ultra 60, running Solaris 5.8. During boot all of a sudden it dies after Yp comes up then the netmasks are set and then I don't see anything any more. How do I tell whats causing it to hang at this point. I can login to it but can't tell what preocess is hung. /var/adm/messages has no... (7 Replies)
Discussion started by: frankkahle
7 Replies
8. UNIX for Dummies Questions & Answers
Ive decided to take a trip over to unix and see how it is due to the perl compatabilities, What distro would you recommend? Im somewhat new to perl, and would like something with a "n00b-friendly" environment. Ive been running Linux boxes for some time now, and want to try a new os also. (3 Replies)
Discussion started by: idontdowindows
3 Replies
9. UNIX for Dummies Questions & Answers
Hi there,
I am completely new to this forum but it say's it's for complete newbies too :)
I have some questions:
1: I want to learn Linux and some basic Unix commands. Is it best to install a text version of Linux/Unix? (to get to know the commands, instead of a shell app)
2: Are there... (8 Replies)
Discussion started by: Mecallie
8 Replies
LWP::Authen::Ntlm(3) User Contributed Perl Documentation LWP::Authen::Ntlm(3)
NAME
LWP::Authen::Ntlm - Library for enabling NTLM authentication (Microsoft) in LWP
SYNOPSIS
use LWP::UserAgent;
use HTTP::Request::Common;
my $url = 'http://www.company.com/protected_page.html';
# Set up the ntlm client and then the base64 encoded ntlm handshake message
my $ua = LWP::UserAgent->new(keep_alive=>1);
$ua->credentials('www.company.com:80', '', "MyDomain\MyUserCode", 'MyPassword');
$request = GET $url;
print "--Performing request now...-----------
";
$response = $ua->request($request);
print "--Done with request-------------------
";
if ($response->is_success) {print "It worked!->" . $response->code . "
"}
else {print "It didn't work!->" . $response->code . "
"}
DESCRIPTION
"LWP::Authen::Ntlm" allows LWP to authenticate against servers that are using the NTLM authentication scheme popularized by Microsoft.
This type of authentication is common on intranets of Microsoft-centric organizations.
The module takes advantage of the Authen::NTLM module by Mark Bush. Since there is also another Authen::NTLM module available from CPAN by
Yee Man Chan with an entirely different interface, it is necessary to ensure that you have the correct NTLM module.
In addition, there have been problems with incompatibilities between different versions of Mime::Base64, which Bush's Authen::NTLM makes
use of. Therefore, it is necessary to ensure that your Mime::Base64 module supports exporting of the encode_base64 and decode_base64
functions.
USAGE
The module is used indirectly through LWP, rather than including it directly in your code. The LWP system will invoke the NTLM
authentication when it encounters the authentication scheme while attempting to retrieve a URL from a server. In order for the NTLM
authentication to work, you must have a few things set up in your code prior to attempting to retrieve the URL:
o Enable persistent HTTP connections
To do this, pass the "keep_alive=>1" option to the LWP::UserAgent when creating it, like this:
my $ua = LWP::UserAgent->new(keep_alive=>1);
o Set the credentials on the UserAgent object
The credentials must be set like this:
$ua->credentials('www.company.com:80', '', "MyDomain\MyUserCode", 'MyPassword');
Note that you cannot use the HTTP::Request object's authorization_basic() method to set the credentials. Note, too, that the
'www.company.com:80' portion only sets credentials on the specified port AND it is case-sensitive (this is due to the way LWP is coded,
and has nothing to do with LWP::Authen::Ntlm)
AVAILABILITY
General queries regarding LWP should be made to the LWP Mailing List.
Questions specific to LWP::Authen::Ntlm can be forwarded to jtillman@bigfoot.com
COPYRIGHT
Copyright (c) 2002 James Tillman. All rights reserved. This program is free software; you can redistribute it and/or modify it under the
same terms as Perl itself.
SEE ALSO
LWP, LWP::UserAgent, lwpcook.
perl v5.16.2 2012-01-13 LWP::Authen::Ntlm(3)