Доброго времени суток! Есть lenny, на нем крутится апач и небольшой портальчик. Машину хочу заиспользовать как ocsinventory server, но столкнулся с такой проблемой:
ocsinventory-agent --server=localhost
[info] Accountinfo file doesn't exist. I create an empty one.
[info] PROLOG_FREQ has changed since last process(old=,new=24)
ocsinventory-agent --server=IP_ADRESS
[error] Cannot establish communication : 401 Authorization Required
cat /etc/apache2/sites-enabled/000-default :
<VirtualHost IP_ADRESS:80>
...
AuthName "NTLM Authentication"
NTLMAuth on
NTLMAuthHelper "/usr/bin/ntlm_auth --helper-protocol=squid-2.5-ntlmssp"
NTLMBasicAuthoritative on
AuthType NTLM
require valid-user
...
</VirtualHost>
cat /etc/apache2/conf.d/ocsinventory.conf :
...
# Virtual directory for handling OCS Inventory NG agents communications
# Be carefull, do not create such directory into your web server root document !
#PerlTaintCheck On
<Location /ocsinventory>
order deny,allow
allow from all
Satisfy Any
SetHandler perl-script
PerlHandler Apache::Ocsinventory
</Location>
...