apt-get install apache2 libapache2-mod-auth-ntlm-winbind
してntlm_auth --username ad_user
とかで確認。ls -ald /var/run/samba/winbindd_privileged
adduser www-data winbindd_priv
Alias /ntlm_auth/ "/var/www/html/ntlm_auth/"
<Directory "/var/www/html/ntlm_auth/">
NTLMAuth on
AuthType NTLM
AuthName "NTLM Authentication"
NTLMAuthHelper "/usr/bin/ntlm_auth --helper-protocol=squid-2.5-ntlmssp"
NTLMBasicAuthoritative on
require valid-user
</Directory>
ServerName hoge.ad.local
KeepAlive On
LogLevel debug
a2enmod auth_ntlm_winbind
service winbind restart
service apache2 restart
mkdir -p /var/www/html/ntlm_auth
echo test > /var/www/html/ntlm_auth/index.html
これで鯖/test/を叩きに行けばOK