LINUX.ORG.RU

Избранные сообщения andreyd

squid3 и ldap_ad

Форум — Admin

Здравствуйте!

Есть squid3 и sams 1.0.5 на ubuntu 12.04 которые настроены и работают. Авторизация идет по ntlm, с этим тоже вроде все нормально.

Пытаюсь перейти на ldap_ad авторизацию. В настройках самса нажимаю «тестировать ответ PDC» и выдается чистый лист.

Вообще пытался делать по этому мануалу, но возникли непонятки с проверкой утилиты squid_ldap_auth, что бы я не вводил, всегда ответ ERR. В общем не могу разобраться с синтаксисом. Что надо вводить чтоб получить OK? И что и с какими ключами надо прописывать в squid.conf для ldap авторизации? Просто везде все по разному написанно, я вообще не могу разобраться.

Вот мои нынешние настройки

squid.conf

# created by SAMS _sams_ 2012-12-18 18:34:1
http_port 192.168.110.5:3128
icp_port 0
hierarchy_stoplist cgi-bin ?
cache_mem 128 MB
maximum_object_size 8092 KB
maximum_object_size_in_memory 512 KB
cache_dir ufs /usr/local/squid3/cache 512 16 256 
cache_access_log /usr/local/squid3/log/access.log
cache_log /usr/local/squid3/log/caches.log
cache_store_log /usr/local/squid3/log/store.log
cache_mgr adurbale@kinoforum.local
visible_hostname proxyserver
tcp_outgoing_address 192.168.110.5
refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern .               0       20%     4320
redirect_program /usr/local/squid3/redirector.pl
redirect_children 10

coredump_dir /usr/local/squid3/cache
pid_filename /usr/local/squid3/log/squid.pid

auth_param ntlm program /usr/bin/ntlm_auth --helper-protocol=squid-2.5-ntlmssp --domain=KINOFORUM.LOCAL
auth_param ntlm children 10
auth_param ntlm keep_alive off
#auth_param basic program /usr/bin/ntlm_auth --helper-protocol=squid-2.5-basic 
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours 


acl auth proxy_auth REQUIRED
acl manager proto cache_object
acl localhost src 127.0.0.1/32 ::1
acl localnet src 192.168.0.0/24
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1
acl ntlmauth proxy_auth REQUIRED

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 CONNECT method CONNECT

http_access allow manager localhost
http_access allow localhost
http_access allow ntlmauth
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access allow ntlmauth
http_access deny all


hierarchy_stoplist cgi-bin ?
coredump_dir /var/spool/squid3
refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern -i (/cgi-bin/|\?) 0     0%      0
refresh_pattern .               0       20%     4320
sams.conf
[client]
SQUID_DB=squidlog
SAMS_DB=squidctrl
MYSQLHOSTNAME=localhost
MYSQLUSER=sams	
MYSQLPASSWORD=psw	
MYSQLVERSION=4.0	
SQUIDCACHEFILE=access.log	
SQUIDROOTDIR=/etc/squid3	
SQUIDLOGDIR=/usr/local/squid3/log	
SQUIDCACHEDIR=/var/spool/squid	
SAMSPATH=/usr	
SQUIDPATH=/usr/sbin
SQUIDGUARDLOGPATH=/var/log
SQUIDGUARDDBPATH=/etc/squid3
RECODECOMMAND=iconv -f KOI8-R -t 866 %finp > %fout

LDAPSERVER=192.168.110.3	
LDAPBASEDN=KINOFORUM.LOCAL
LDAPUSER=adurbale
LDAPUSERPASSWD=psw
LDAPUSERSGROUP=
smb.conf
[global]
workgroup = KINOFORUM
realm = KINOFORUM.LOCAL
server string = %h server
security = ADS
encrypt passwords = true
dns proxy = no 
socket options = TCP_NODELAY
domain master = no
local master = no
preferred master = no
os level = 0
domain logons = no

load printers = no
show add printer wizard = no
printcap name = /dev/null
disable spoolss = yes
   
idmap config * : range = 10000-20000
idmap config * : backend = tdb 
winbind enum groups = yes
winbind enum users = yes
winbind use default domain = yes
template shell = /bin/bash
winbind refresh tickets = yes

#winbind separator = /
winbind enum users = no
winbind enum groups = no
winbind use default domain = yes
template homedir = /home/%D/%U
client use spnego = yes

wins support = no
log file                = /usr/local/squid3/samba/log.%m
max log size            = 50
krb5.conf
[libdefaults]
	default_realm = KINOFORUM.LOCAL
	kdc_timesync = 1
	ccache_type = 4
	forwardable = true
	proxiable = true
	#default_tkt_enctypes = des3-hmac-sha1 des-cbc-crc
	#default_tgs_enctypes = des3-hmac-sha1 des-cbc-crc
	v4_instance_resolve = false
	v4_name_convert = {
		host = {
			rcmd = host
			ftp = ftp
		}
		plain = {
			something = something-else
		}
	}
	fcc-mit-ticketflags = true

[realms]
	KINOFORUM.LOCAL = {
		kdc = 192.168.110.3
		admin_server = 192.168.110.3
		default_domain = KINOFORUM.LOCAL
	}

[domain_realm]
	kinoforum.local = KINOFORUM.LOCAL
	.kinoforum.local = KINOFORUM.LOCAL
	KINOFORUM.LOCAL = KINOFORUM.LOCAL
	.KINOFORUM.LOCAL = KINOFORUM.LOCAL
[logging]
	Default = FILE:/usr/local/squid3/kerberos/krb5libs.log
	Kdc = FILE:/usr/local/squid3/kerberos/krb5kdc.log
	admin_server = FILE:/usr/local/squid3/kerberos/kadmind.log

andreyd
()