[solved] SQUID не берет ntlm
Друзья, помогите пожалуйста.
Настраиваю squid с поддержкой ntlm по статье
По отдельности все работает, winbind выдает пользователей, авторизует и пр, squid по IP пускает.
Но почему-то squid не получает авторизацию через ntlm и отбивает запрос.
tail -f /var/log/squid/access.log
1234860498.244 1 10.43.17.13 TCP_DENIED/407 1783 GET http://mail.ru/ - NONE/- text/html
Вот конфиги:
squid.conf
-----------
auth_param ntlm program /usr/bin/ntlm_auth --helper-protocol=squid-2.5-ntlmssp
auth_param ntlm keep_alive on
auth_param ntlm children 20
auth_param basic program /usr/bin/ntlm_auth --helper-protocol=squid-2.5-basic
auth_param basic children 5
auth_param basic realm Rosplasma proxy-caching web server
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off
acl all src 0.0.0.0/0.0.0.0
acl dep proxy_auth REQUIRED
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 901 # SWAT
acl purge method PURGE
acl CONNECT method CONNECT
http_access allow dep
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access deny all
icp_access allow all
http_port 8080
access_log /var/log/squid/access.log squid
smb.conf
----------
[global]
workgroup = DEP
netbios name = proxy
server string = Proxy Server
log file = /var/log/samba/log.%m
max log size = 50
hosts allow = 127.0.0.1
map to guest = bad user
security = ads
password server = depdc1.dep.mc.lan depdc2.dep.mc.lan
realm = DEP.MC.LAN
encrypt passwords = yes
winbind separator = \\
winbind use default domain = yes
winbind uid = 10000-20000
winbind gid = 10000-20000
winbind enum users = yes
winbind enum groups = no
winbind cache time = 300
encrypt passwords = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
local master = no
os level = 0
domain master = no
preferred master = no
domain logons = no
/etc/krb5.conf
[libdefaults]
default_realm = DEP.MC.LAN
dns_lookup_realm = false
# dns_lookup_kdc = false
ticket_lifetime = 24h
forwardable = yes
dns_lookup_kdc = true
[realms]
DEP.MC.LAN = {
kdc = DEPDC1.DEP.MC.LAN
kdc = DEPDC2.DEP.MC.LAN
admin_server = DEPDC1.DEP.MC.LAN
}
[domain_realm]
.dep.mc.lan = DEP.MC.LAN
dep.mc.lan = DEP.MC.LAN
[logging]
default = FILE:/var/log/krb5libs.log
kdc = FILE:/var/log/krb5kdc.log
admin_server = FILE:/var/log/kadmind.log
[appdefaults]
pam = {
debug = false
ticket_lifetime = 36000
renew_lifetime = 36000
forwardable = true
krb4_convert = false
}
- Для комментирования войдите или зарегистрируйтесь
Все разрулилось. не хватало
Все разрулилось.
не хватало прав
chown -R root:squid /var/cache/samba/winbindd_privileged/
chmod -R 750 /var/cache/samba/winbindd_privileged/