Skip to main content.

2002-Oct-18

Goal is to make Apache set REMOTE_USER environment variable based on the username of the logged in Windows user.

I found two different mod_ntlm modules. Same name, but one for Windows Apache and one for Apache for Unix. The mod_ntlm for Windows documents that it sets the REMOTE_USER.

Under Debian, installed apache-dev package which includes needed apxs. Downloaded and installed http://modntlm.sourceforge.net/ . But I didn't work.

I read the forum at that sourceforge site and it indicated that it didn't work with Windows 98 and that the mod appeared to be no longer supported. I found patched version and patches via http://perso.club-internet.fr/hernanf/ . I installed it and it worked! My apache config was like:

AuthType NTLM
NTLMAuth on
NTLMAuthoritative on
NTLMDomain REED
NTLMServer pilchuck
require valid-user
I used my environment.cgi script to show that REMOTE_USER was set.