Gentoo Archives: gentoo-server

From: "Sancho2k.net Lists" <lists@××××××××.net>
To: gentoo-server@l.g.o
Subject: [gentoo-server] Using mod_ntlm with Gentoo's apache2
Date: Wed, 02 Jun 2004 21:17:37
Message-Id: 52840.12.160.33.128.1086210859.squirrel@mail.sancho2k.net
1 I want to be able to use the mod_ntlm module
2 (http://modntlm.sourceforge.net/) with Apache 2 in Gentoo. But I do want
3 to make sure to do this the "Gentoo" way, so I figured I should set it up
4 to where I can enable the "-D NTLM" option in /etc/conf.d/apache2:
5
6 APACHE2_OPTS="-D SSL -D PHP4 -D NTLM"
7
8 So this module's setup calls apxs to build and enable the module. I have a
9 line in /etc/apache2/conf/apache2.conf:
10
11 LoadModule ntlm_module modules/mod_ntlm.so
12
13 I also have added the following section to my
14 /etc/apache2/conf/vhosts/vhosts.conf file to NTLM-authenticate access to a
15 directory:
16
17 <Directory /var/www/localhost/htdocs/fom>
18 AuthType NTLM
19 NTLMAuth on
20 NTLMAuthoritative off
21 NTLMDomain MYDOMAIN
22 NTLMServer mydc1
23 NTLMBackup mydc2
24 Require valid-user
25 </Directory>
26
27 After restarting apache2 using the init script, I can still access this
28 directory without authentication, although there is no syntax errors so
29 the above configuration file directives appear to be valid.
30
31 The only thing I can think is that I may need to have a file in
32 /etc/apache2/conf/modules.d/ similar to the ones used by other modules,
33 like 70_mod_php.conf.
34
35 Anyway, I'm kind of lost at this point. Can anyone suggest how best to go
36 about setting this up correctly?
37
38 TIA
39
40 DS