Copyright (C) 2000 Andreas Gal
(gal@users.sourceforge.net)
Visit
http://modntlm.sourceforge.net for code updates.
NTLM is an authentication protocol used by Microsoft Internet Informations Server(tm) and Microsoft Internet Explorer(tm). While it is not really secure, it offers background authentication (the workstation logon credentials of users are passed through to the web server). This feature is widely used in intranets based on these Microsoft products.
This module is implementing NTLM authentication for Apache on Unix platforms. It is available free of charges under the BSD License.
You have to be root to compile and install mod_ntlm.c successfully. You need a ready-to-run apache distribution installed. Go to the source distribution directory of mod_ntlm and enter:
make install && make restart
The Makefile is using apxs to compile and install mod_ntlm. Certain
versions of apxs are known to fail unter certain versions of
SuSE Linux.
It works fine for me with SuSE Linux 6.3 and Solaris 2.6, no other
platforms have been tested yet.
This directives can be placed into a virtual directory to configure mod_ntlm:
NTLMAuth on/off | enable/disable NTLM authentication |
NTLMAuthoritative on/off | allow users who couldn't be authenticated to be handled by other authentication modules |
NTLMDomain domain_name | Domain users should be authenticated against |
NTLMServer server_name or ip_addr | Primary SMB server to authenticate users (Windows NT or Samba) |
NTLMBackup server_name or ip_addr | Backup SMB server to authenticate users if primary is down |
Require valid-user | Every user that is accepted by the SMB server can access this resource |
Require user user_name | Only this specific user(s) are allowed. Specify one or multiple users separated by spaces |
Example configuration for httpd.conf:
AuthType NTLM NTLMAuth on NTLMAuthoritative on NTLMDomain UWSPDOM NTLMServer dc1 NTLMBackup dc2 Require user agal