NTLM with Apache + CentOS 5



我尝试在CentOS 5和Apache 2上安装NTLM。我执行了以下步骤。

cd /tmp
wget http://search.cpan.org/CPAN/authors/id/S/SP/SPEEVES/Apache2-AuthenNTLM-0.02.tar.gz
tar zxvf Apache2-AuthenNTLM-0.02.tar.gz
cd Apache2-AuthenNTLM-0.02
perl Makefile.pl
make install

之后,我在httpd.conf中添加了以下内容:

<Directory “/var/www/htlm/secure”>
Options Indexes
PerlAuthenHandler Apache2::AuthenNTLM
AuthType ntlm,basic
AuthName Secure Access
require valid-user
PerlAddVar ntdomain “YOURDOMAIN domaincontroller backupdomaincontroller”
PerlSetVar defaultdomain YOURDOMAIN
PerlSetVar splitdomainprefix 1
PerlSetVar ntlmdebug 0
PerlSetVar ntlmauthoritative off
</Directory>

现在我尝试重新启动httpd服务,但我得到以下错误:

service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd: Syntax error on line 1018 of /etc/httpd/conf/httpd.conf:
Invalid command 'PerlAuthenHandler', perhaps misspelled or defined by a module not included in the server configuration
                                                           [FAILED]

我需要添加其他东西还是我需要添加一个模块?

感谢

问候保罗

根据http://www.webmasterworld.com/forum13/4292.htm,您还需要mod_perl

最新更新