gpt4 book ai didi

perl - NTLM 与 Apache + CentOS 5

转载 作者:行者123 更新时间:2023-12-04 19:38:10 25 4
gpt4 key购买 nike

我尝试使用 Apache 2 在 CentOS 5 上安装 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也。

关于perl - NTLM 与 Apache + CentOS 5,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25066304/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com