Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-19-2016, 02:56 AM   #1
LQ Newbie
Registered: Jan 2014
Posts: 4

Rep: Reputation: Disabled
Question NTLM on new Apache 2.4 in Debian 8.4

I've recently installed the new Debian 8.4 with Apache 2.4.10 with the purpose of installing a intranet.
One of the things the intranet must contain is the retrieval of the username through $_SERVER['REMOTE_USER'] from the Windows PC's that connect to this server. The package mod_auth_ntlm_winbind was installed along with the following /etc/apache2/httpd.conf file:
DirectoryIndex index.php index.html index.htm KeepAlive on <Directory "/var/www/html/test">
   PerlAuthenHandler "Apache2::AuthenNTLM"
   AuthType ntlm,basic
   AuthName "NTLM Authentication"
   require valid-user
   PerlAddVar ntdomain "my_dom"
   PerlSetVar defaultdomain "my_dom"
   PerlSetVar splitdomainprefix 1
   PerlSetVar ntlmdebug 0
   PerlSetVar ntlmauthorative off
   PerlSetVar ntlmsemkey 0
   PerlSetVar ntlmsemtimeout 1
How can I solve this easily?
I'm a newby so don't make it too hard []

Thanks in advance!

The module libapache2-authenntlm-perl was installed also but the parameter REMOTE_USER was not found in the phpinfo.

Last edited by garfy; 04-19-2016 at 03:23 AM.
Old 04-19-2016, 04:20 AM   #2
LQ Newbie
Registered: Jan 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
httpd.conf was not loaded in apache2.conf. After doing that a few errors occurred stating remote_ip and remote_addr couldn't be located. After changing a few lines in /usr/lib/x86_64-linux-gnu/perl5/5.20/Apache2/ to client_ip and client_addr the problem was solved after restarting the apache2 service.


apache, authentication, debian, ntlm, windows

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] How to get the same apache error log of Debian 8 like Debian 7? Aeolustw Linux - Newbie 4 09-24-2015 08:15 AM
Apache Internal Server Redirection vhost => vhost not working [Debian & Apache 2] Smokin... Linux - Server 1 05-26-2013 12:06 PM
[NTLM] Authentication error with mod_auth_ntlm_winbind on Apache server daftTrunk Linux - Server 0 03-01-2012 05:28 PM
How to configure NTLM auth for apache in linux rbala14 Linux - Newbie 1 02-23-2010 10:00 AM
Apache 1.3.33 (debian built) and Apache SSL does not respond to the proper ports lqorg_user Linux - Networking 0 11-06-2005 04:11 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:44 PM.

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