LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   NTLM on new Apache 2.4 in Debian 8.4 (https://www.linuxquestions.org/questions/linux-newbie-8/ntlm-on-new-apache-2-4-in-debian-8-4-a-4175577795/)

garfy 04-19-2016 02:56 AM

NTLM on new Apache 2.4 in Debian 8.4
 
Hi,
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:
Code:

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 10.52.28.220"
  PerlSetVar defaultdomain "my_dom"
  PerlSetVar splitdomainprefix 1
  PerlSetVar ntlmdebug 0
  PerlSetVar ntlmauthorative off
  PerlSetVar ntlmsemkey 0
  PerlSetVar ntlmsemtimeout 1
</Directory>

How can I solve this easily?
I'm a newby so don't make it too hard [;)]

Thanks in advance!

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

garfy 04-19-2016 04:20 AM

Solved!
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/AuthenNTLM.pm to client_ip and client_addr the problem was solved after restarting the apache2 service.


All times are GMT -5. The time now is 12:31 PM.