Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 03-20-2013, 03:01 PM   #1
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.

[Wed Mar 20 19:44:35 2013] [error] [client] failed to resolve handler `Apache::AuthenNTLM': Can't locate Apache/ 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:

 Compiled at May  3 2011 11:19:27

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


ls- l

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

<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

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?

Old 03-20-2013, 03:46 PM   #2
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:


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

All times are GMT -5. The time now is 08:34 AM.

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