LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-20-2013, 03:01 PM   #1
aoscott
LQ Newbie
 
Registered: Mar 2013
Location: Oakland, CA
Posts: 23

Rep: Reputation: Disabled
Problem setting up perl module Apache2::AuthenNTLM for apache


Hi all,

I am trying to get the perl module Apache2::AuthenNTLM in apache. This is authenticate against Windows Active directory. I have looked through various walkthoughs online, however I am facing an error in the log indicating Apache2::AuthenNTLM cannot be found.

Code:
[Wed Mar 20 19:44:35 2013] [error] [client 127.0.0.1] failed to resolve handler `Apache::AuthenNTLM': Can't locate Apache/AuthenNTLM.pm in @INC (@INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 . /etc/httpd) at (eval 2) line 3.\n

Upon further investigation @INC referrs to the perl path and can be views using perl -V. Here are the results and the end of the file:

Code:
 Compiled at May  3 2011 11:19:27
  @INC:
    /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi
    /usr/lib/perl5/site_perl/5.8.8
    /usr/lib/perl5/site_perl
    /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi
    /usr/lib/perl5/vendor_perl/5.8.8
    /usr/lib/perl5/vendor_perl
    /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi
    /usr/lib/perl5/5.8.8

I am able to find AuthenNTLM.pm in the following directory which is listed in the @INC path.

Code:
/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/Apache2

ls- l

-r--r--r-- 1 root root 31254 Apr 28  2005 AuthenNTLM.pm
These are the settings I have added to either a file in /etc/httpd/conf.d or to .htaccess

Code:
<Directory "/">
PerlAuthenHandler Apache2::AuthenNTLM
AuthType ntlm,basic
require valid-user
PerlAddVar ntdomain "nt_domainname pdc bdc"
PerlSetVar defaultdomain nt_domainname
PerlSetVar splitdomainprefix 1
PerlSetVar ntlmdebug 0
PerlsetVar ntlmauthoritative off
</Directory>


Can anyone who has setup apache to authenticate with Active Directory tell me where I'm going wrong with this and possibly suggest other solutions?

Thanks
 
Old 03-20-2013, 03:46 PM   #2
aoscott
LQ Newbie
 
Registered: Mar 2013
Location: Oakland, CA
Posts: 23

Original Poster
Rep: Reputation: Disabled
A quick update...

I have verified Apache2::AuthenNTLM is installed


[root@ Apache2-AuthenNTLM-0.02]# instmodsh -l
Available commands are:
l - List all installed modules
m <module> - Select a module
q - Quit the program
cmd? l
Installed modules are:
Apache2::AuthenNTLM
Perl
cmd?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] *** ERROR: PERL module Apache::DBI is not installed ! anjumanu321 Linux - Newbie 9 04-23-2015 03:40 PM
[perl] getting apache::mp3 module working deus1 Programming 4 08-06-2005 05:47 PM
Problem with perl module for w3c validator to work on my local Apache+PHP+perl instal tbamt Linux - Software 0 12-16-2004 05:37 PM
Perl error after upgrade apache -> apache2 FloFri Debian 6 05-25-2004 04:36 AM
Perl error after upgrade apache -> apache2 FloFri Debian 0 05-25-2004 01:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration