ドメイン参加しておいて
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
/etc/apache2/sites-enabled/000-default
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
/etc/apache2/apache2.conf
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