×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

undefined subroutine in a popular perl Module

undefined subroutine in a popular perl Module

undefined subroutine in a popular perl Module

(OP)
Hello Tek Tippers,

I cannot get my head around why I am getting this error, when trying to access my website.

Undefined subroutine &LWP::Authen::Ntlm::ntlm_domain called at /tmp/perl/LWP/Authen/NTLM.pm line 36.

I am using NTLM v.5 and tried to upgrade to v.6 and even downgrade to v.1, only to get the same error.

Any idea?

Thanks!

package LWP::Authen::Ntlm;

use strict;
use vars qw/$VERSION/;

$VERSION = '5.827';

use Authen::NTLM "1.02";
use MIME::Base64 "2.12";


use vars qw($VERSION @ISA @EXPORT);
require Exporter;



sub authenticate {
my($class, $ua, $proxy, $auth_param, $response,
$request, $arg, $size) = @_;

my($user, $pass) = $ua->get_basic_credentials($auth_param->{realm},
$request->uri, $proxy);

unless(defined $user and defined $pass) {
return $response;
}

if (!$ua->conn_cache()) {
warn "The keep_alive option must be enabled for NTLM authentication to work. NTLM authentication aborted.\n";
return $response;
}
my($domain, $username) = split(/\\/, $user);

print "$domain,$username\n";

ntlm_domain($domain);
ntlm_user($username);
ntlm_password($pass);


my $auth_header = $proxy ? "Proxy-Authorization" : "Authorization";

RE: undefined subroutine in a popular perl Module

(OP)
I needed to have Authen::NTLM module installed. Authen::Ntlm and Authen::NTLM are different modules. Ntlm requires NTLM. Works now!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close