а какая из этих команд правильная? файерволы отключены. к сожалению
squid c авторизацией в домене под windows 2003
Аргументы не такие как в запросах выше.... -b -f
я заменил точки на кавычки
бред какой то. но чудес не бывает.. наверняка где то че то буковку или циферку забыл. как с самсом. не поставил 3 и мучался неделю. почему не снимает статистику.
Такой запрос проходит?
ldapsearch -D "squid1@nari.local" -x -w 1q2w3e4r5t -b "dc=nari,dc=local" -h 172.24.26.4
maxim@proxy:/$ ldapsearch -D "squid1@nari.local" -x -w 1q2w3e4r5t -b "dc=nari,dc=local" -h 172.24.26.4
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
нет
на контролллере домена в сетевой безопасности стоит : требование цифровой подписи для LDAP сервера - "нет"
для клиента
сетевая безопасность стоит отправлять только ntlm при уровне проверки подлинности LAN manager
отключил NTLM только
На винде- проверить что порт 389 открыт на нужном интерфейсе netstat -an
На прокси tcpdump -n tcp port ldap
nmap -p 389 172.24.26.4
Ну и далее разбираться почему не работают запросы.
Хорошо. буду разбираться с виндой пока тогда. спасибо большое. я отпишусь тут о результатах
root@proxy:/# ldapsearch -D squid1 -x -w 1q2w3e4r5t -b "dc=nari,dc=local" -h 172.24.26.4
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
результат не изменился. на брандмауре созданы правила для разрешения 389 порта и подключения по нему без ограничений всяких.
тспдамп такой вот,
root@proxy:/# tcpdump -n tcp port ldap
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
17:41:39.322247 IP 172.24.26.4.47050 > 10.10.100.3.389: Flags [S], seq 2358407366, win 5840, options [mss 1460,sackOK,TS val 413923 98 ecr 0,nop,wscale 6], length 0
17:41:39.322878 IP 10.10.100.3.389 > 172.24.26.4.47050: Flags [S.], seq 913882230, ack 2358407367, win 8192, options [mss 1460,nop, wscale 8,sackOK,TS val 2957623 ecr 41392398], length 0
17:41:39.322894 IP 172.24.26.4.47050 > 10.10.100.3.389: Flags [.], ack 1, win 92, options [nop,nop,TS val 41392399 ecr 2957623], le ngth 0
17:41:39.323051 IP 172.24.26.4.47050 > 10.10.100.3.389: Flags [P.], seq 1:53, ack 1, win 92, options [nop,nop,TS val 41392399 ecr 2 957623], length 52
17:41:39.323737 IP 10.10.100.3.389 > 172.24.26.4.47050: Flags [P.], seq 1:90, ack 53, win 260, options [nop,nop,TS val 2957623 ecr 41392399], length 89
17:41:39.323750 IP 172.24.26.4.47050 > 10.10.100.3.389: Flags [.], ack 90, win 92, options [nop,nop,TS val 41392399 ecr 2957623], l ength 0
17:41:39.323869 IP 172.24.26.4.47050 > 10.10.100.3.389: Flags [P.], seq 53:117, ack 90, win 92, options [nop,nop,TS val 41392399 ec r 2957623], length 64
17:41:39.324595 IP 10.10.100.3.389 > 172.24.26.4.47050: Flags [P.], seq 90:214, ack 117, win 259, options [nop,nop,TS val 2957624 e cr 41392399], length 124
17:41:39.324678 IP 172.24.26.4.47050 > 10.10.100.3.389: Flags [P.], seq 117:143, ack 214, win 92, options [nop,nop,TS val 41392399 ecr 2957624], length 26
17:41:39.325314 IP 10.10.100.3.389 > 172.24.26.4.47050: Flags [P.], seq 214:358, ack 143, win 259, options [nop,nop,TS val 2957624 ecr 41392399], length 144
17:41:39.329600 IP 172.24.26.4.47050 > 10.10.100.3.389: Flags [.], seq 143:1591, ack 358, win 108, options [nop,nop,TS val 41392400 ecr 2957624], length 1448
17:41:39.329612 IP 172.24.26.4.47050 > 10.10.100.3.389: Flags [P.], seq 1591:2858, ack 358, win 108, options [nop,nop,TS val 413924 00 ecr 2957624], length 1267
17:41:39.333400 IP 10.10.100.3.389 > 172.24.26.4.47050: Flags [.], ack 2858, win 260, options [nop,nop,TS val 2957624 ecr 41392400] , length 0
17:41:39.333912 IP 10.10.100.3.389 > 172.24.26.4.47050: Flags [P.], seq 358:404, ack 2858, win 260, options [nop,nop,TS val 2957624 ecr 41392400], length 46
17:41:39.334013 IP 172.24.26.4.47050 > 10.10.100.3.389: Flags [P.], seq 2858:2989, ack 404, win 108, options [nop,nop,TS val 413924 01 ecr 2957624], length 131
17:41:39.334933 IP 10.10.100.3.389 > 172.24.26.4.47050: Flags [P.], seq 404:489, ack 2989, win 259, options [nop,nop,TS val 2957625 ecr 41392401], length 85
17:41:39.374553 IP 172.24.26.4.47050 > 10.10.100.3.389: Flags [.], ack 489, win 108, options [nop,nop,TS val 41392412 ecr 2957625], length 0
root@proxy:/# tcpdump -n tcp port ldap -vv
tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
18:27:32.852404 IP (tos 0x0, ttl 64, id 57730, offset 0, flags [DF], proto TCP (6), length 60)
172.24.26.4.49076 > 10.10.100.3.389: Flags [S], cksum 0x835e (correct), seq 2689661839, win 5840, options [mss 1460,sackOK,TS val 42080781 ecr 0,nop,wscale 6], length 0
18:27:32.853342 IP (tos 0x0, ttl 126, id 12114, offset 0, flags [DF], proto TCP (6), length 60)
10.10.100.3.389 > 172.24.26.4.49076: Flags [S.], cksum 0xf0a7 (correct), seq 243410414, ack 2689661840, win 8192, options [mss 1460,nop,wscale 8,sackOK,TS val 3232978 ecr 42080781], length 0
18:27:32.853355 IP (tos 0x0, ttl 64, id 57731, offset 0, flags [DF], proto TCP (6), length 52)
172.24.26.4.49076 > 10.10.100.3.389: Flags [.], cksum 0x3f19 (correct), seq 1, ack 1, win 92, options [nop,nop,TS val 42080781 ecr 3232978], length 0
18:27:32.853477 IP (tos 0x0, ttl 64, id 57732, offset 0, flags [DF], proto TCP (6), length 104)
172.24.26.4.49076 > 10.10.100.3.389: Flags [P.], cksum 0x3484 (incorrect -> 0x9359), seq 1:53, ack 1, win 92, options [nop,nop,TS val 42080781 ecr 3232978], length 52
18:27:32.854473 IP (tos 0x0, ttl 126, id 12115, offset 0, flags [DF], proto TCP (6), length 141)
10.10.100.3.389 > 172.24.26.4.49076: Flags [P.], cksum 0xb1c1 (correct), seq 1:90, ack 53, win 260, options [nop,nop,TS val 3232978 ecr 42080781], length 89
18:27:32.854484 IP (tos 0x0, ttl 64, id 57733, offset 0, flags [DF], proto TCP (6), length 52)
172.24.26.4.49076 > 10.10.100.3.389: Flags [.], cksum 0x3e8c (correct), seq 53, ack 90, win 92, options [nop,nop,TS val 42080781 ecr 3232978], length 0
18:27:32.854713 IP (tos 0x0, ttl 64, id 57734, offset 0, flags [DF], proto TCP (6), length 116)
172.24.26.4.49076 > 10.10.100.3.389: Flags [P.], cksum 0x3490 (incorrect -> 0x3855), seq 53:117, ack 90, win 92, options [nop,nop,TS val 42080782 ecr 3232978], length 64
18:27:32.855472 IP (tos 0x0, ttl 126, id 12116, offset 0, flags [DF], proto TCP (6), length 176)
10.10.100.3.389 > 172.24.26.4.49076: Flags [P.], cksum 0x30da (correct), seq 90:214, ack 117, win 259, options [nop,nop,TS val 3232978 ecr 42080782], length 124
18:27:32.855545 IP (tos 0x0, ttl 64, id 57735, offset 0, flags [DF], proto TCP (6), length 78)
172.24.26.4.49076 > 10.10.100.3.389: Flags [P.], cksum 0x346a (incorrect -> 0xc5b2), seq 117:143, ack 214, win 92, options [nop,nop,TS val 42080782 ecr 3232978], length 26
18:27:32.856379 IP (tos 0x0, ttl 126, id 12117, offset 0, flags [DF], proto TCP (6), length 196)
10.10.100.3.389 > 172.24.26.4.49076: Flags [P.], cksum 0x062a (correct), seq 214:358, ack 143, win 259, options [nop,nop,TS val 3232978 ecr 42080782], length 144
18:27:32.860638 IP (tos 0x0, ttl 64, id 57736, offset 0, flags [DF], proto TCP (6), length 1500)
172.24.26.4.49076 > 10.10.100.3.389: Flags [.], cksum 0x39f8 (incorrect -> 0x1336), seq 143:1591, ack 358, win 108, options [nop,nop,TS val 42080783 ecr 3232978], length 1448
18:27:32.860651 IP (tos 0x0, ttl 64, id 57737, offset 0, flags [DF], proto TCP (6), length 1319)
172.24.26.4.49076 > 10.10.100.3.389: Flags [P.], cksum 0x3943 (incorrect -> 0xdb17), seq 1591:2858, ack 358, win 108, options [nop,nop,TS val 42080783 ecr 3232978], length 1267
18:27:32.863597 IP (tos 0x0, ttl 126, id 12119, offset 0, flags [DF], proto TCP (6), length 52)
10.10.100.3.389 > 172.24.26.4.49076: Flags [.], cksum 0x31e0 (correct), seq 358, ack 2858, win 260, options [nop,nop,TS val 3232979 ecr 42080783], length 0
18:27:32.863924 IP (tos 0x0, ttl 126, id 12120, offset 0, flags [DF], proto TCP (6), length 98)
10.10.100.3.389 > 172.24.26.4.49076: Flags [P.], cksum 0x1a3b (correct), seq 358:404, ack 2858, win 260, options [nop,nop,TS val 3232979 ecr 42080783], length 46
18:27:32.864042 IP (tos 0x0, ttl 64, id 57738, offset 0, flags [DF], proto TCP (6), length 183)
172.24.26.4.49076 > 10.10.100.3.389: Flags [P.], cksum 0x34d3 (incorrect -> 0xbc58), seq 2858:2989, ack 404, win 108, options [nop,nop,TS val 42080784 ecr 3232979], length 131
18:27:32.864725 IP (tos 0x0, ttl 126, id 12121, offset 0, flags [DF], proto TCP (6), length 137)
10.10.100.3.389 > 172.24.26.4.49076: Flags [P.], cksum 0x7d7c (correct), seq 404:489, ack 2989, win 259, options [nop,nop,TS val 3232979 ecr 42080784], length 85
18:27:32.911037 IP (tos 0x0, ttl 64, id 57739, offset 0, flags [DF], proto TCP (6), length 52)
172.24.26.4.49076 > 10.10.100.3.389: Flags [.], cksum 0x3165 (correct), seq 2989, ack 489, win 108, options [nop,nop,TS val 42080796 ecr 3232979], length 0
18:39:02.003118 IP (tos 0x0, ttl 64, id 57740, offset 0, flags [DF], proto TCP (6), length 183)
172.24.26.4.49076 > 10.10.100.3.389: Flags [P.], cksum 0x34d3 (incorrect -> 0x1a80), seq 2989:3120, ack 489, win 108, options [nop,nop,TS val 42253069 ecr 3232979], length 131
18:39:02.004346 IP (tos 0x0, ttl 126, id 13319, offset 0, flags [DF], proto TCP (6), length 137)
10.10.100.3.389 > 172.24.26.4.49076: Flags [P.], cksum 0xcb70 (correct), seq 489:574, ack 3120, win 259, options [nop,nop,TS val 3301893 ecr 42253069], length 85
18:39:02.004366 IP (tos 0x0, ttl 64, id 57741, offset 0, flags [DF], proto TCP (6), length 52)
172.24.26.4.49076 > 10.10.100.3.389: Flags [.], cksum 0x8266 (correct), seq 3120, ack 574, win 108, options [nop,nop,TS val 42253069 ecr 3301893], length 0
18:54:21.767926 IP (tos 0x0, ttl 126, id 15385, offset 0, flags [DF], proto TCP (6), length 40)
10.10.100.3.389 > 172.24.26.4.49076: Flags [R.], cksum 0xdbae (correct), seq 574, ack 3120, win 0, length 0
Коллеги, благодаря усилиям одного человека. получилось решгить данную проблему.
необходимо было прописать в конфиге правильную строку регистрации
visible_hostname proxy
http_port 3128
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.1/32
acl inet src 172.24.26.0/25
acl SSL_ports port 443
acl SSL_ports port 6062
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 6062
acl Safe_ports port 22
acl Safe_ports port 7001
acl Safe_ports port 5060
acl Safe_ports port 6080
acl Safe_ports port 10000-20000
acl Safe_ports port 8001
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 deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny to_localhost
http_access allow localhost
url_rewrite_access deny localhost
auth_param basic program /usr/lib/squid3/squid_ldap_auth -R -D squid1@nari.local -w 1q2w3e4r5t -f "(&(objectClass=person)(sAMAccountName=%s))" -s sub -u sAMAccountName -b "dc=nari,dc=local" -h 10.10.100.3 -v 3
auth_param basic children 3
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 80 minutes
auth_param basic casesensitive off
acl ldapauth proxy_auth REQUIRED
http_access allow ldapauth
http_access allow inet
http_access deny all
hierarchy_stoplist cgi-bin
cache_dir ufs /var/spool/squid3 100 16 256
maximum_object_size 61440 KB
cache_mem 64 MB
coredump_dir /var/spool/squid3
dns_nameservers 10.10.100.1