The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

форумы  помощь  поиск  регистрация  майллист  вход/выход  слежка  RSS
"Авторизация в squid-е используя Windows AD"
Вариант для распечатки  
Пред. тема | След. тема 
Форум Настройка Squid и других прокси серверов (Аутентификация)
Изначальное сообщение [ Отслеживать ]

"Авторизация в squid-е используя Windows AD"  +/
Сообщение от korbnik email(??) on 18-Апр-11, 21:58 
Настроил авторизацию в squid-е используя windows-пользователей
в домене AD.

Но после загрузки winbindd, компьютер медленно реагирует на команды.
Например на ps, top вообще не запускается?

Что это может быть? Почему так winbindd грузить компьютер?

Метод аутентификации между браузером и сквидом используется - ntlm_auth
Вот вообще все настройки на FreeBSD 7.2 что касается winbindd и squid:

=============================================================================

[root@fox2] /usr/home/korenevb/> ps -axjw
USER       PID  PPID   STAT     TIME COMMAND
root         0     0   DLs   0:00.86 [swapper]
....................................

root       475     1   Is    0:00.00 /sbin/devd
root       532     1   Ss    0:00.55 /usr/sbin/syslogd -s
root       549     1   Is    0:00.26 /usr/sbin/rpcbind
root       627     1   Ss    0:08.35 /usr/sbin/ntpd -c /etc/ntp.conf -p /var/run/ntpd.pid -f /var/db/ntpd.drif
root       715     1   Is    0:00.01 /usr/sbin/sshd
root       722     1   Is    0:00.79 /usr/sbin/cron -s
squid    12837 33665   S     0:00.14 (ntlm_auth) --helper-protocol=squid-2.5-ntlmssp (ntlm_auth)
squid    12838 33665   S     0:00.07 (ntlm_auth) --helper-protocol=squid-2.5-ntlmssp (ntlm_auth)
squid    12839 33665   I     0:00.06 (ntlm_auth) --helper-protocol=squid-2.5-ntlmssp (ntlm_auth)
squid    12840 33665   I     0:00.04 (ntlm_auth) --helper-protocol=squid-2.5-ntlmssp (ntlm_auth)
squid    12841 33665   I     0:00.04 (ntlm_auth) --helper-protocol=squid-2.5-ntlmssp (ntlm_auth)
squid    12842 33665   I     0:00.03 (ntlm_auth) --helper-protocol=squid-2.5-ntlmssp (ntlm_auth)
squid    12843 33665   I     0:00.03 (ntlm_auth) --helper-protocol=squid-2.5-ntlmssp (ntlm_auth)
squid    12844 33665   I     0:00.03 (ntlm_auth) --helper-protocol=squid-2.5-ntlmssp (ntlm_auth)
squid    12845 33665   I     0:00.03 (ntlm_auth) --helper-protocol=squid-2.5-ntlmssp (ntlm_auth)
squid    12846 33665   I     0:00.02 (ntlm_auth) --helper-protocol=squid-2.5-ntlmssp (ntlm_auth)
squid    12847 33665   I     0:00.02 (ntlm_auth) --helper-protocol=squid-2.5-basic (ntlm_auth)
squid    12848 33665   I     0:00.02 (ntlm_auth) --helper-protocol=squid-2.5-basic (ntlm_auth)
squid    12849 33665   I     0:00.02 (ntlm_auth) --helper-protocol=squid-2.5-basic (ntlm_auth)
squid    12850 33665   I     0:00.02 (ntlm_auth) --helper-protocol=squid-2.5-basic (ntlm_auth)
squid    12851 33665   I     0:00.02 (ntlm_auth) --helper-protocol=squid-2.5-basic (ntlm_auth)
squid    33663     1   Is    0:00.00 /usr/local/sbin/squid -D
squid    33665 33663   S     0:27.81 (squid) -D (squid)
squid    33681 33665   I     0:00.00 (unlinkd) (unlinkd)
root     34001   715   Is    0:00.65 sshd: korenevb [priv] (sshd)
korenevb 34014 34001   I     0:15.02 sshd: korenevb@ttyp1 (sshd)
root     38004   715   Is    0:00.06 sshd: korenevb [priv] (sshd)
korenevb 38006 38004   S     0:00.51 sshd: korenevb@ttyp0 (sshd)
mailnull 49457     1   Is    0:00.19 /usr/local/sbin/exim -bd -q30m (exim-4.75-0)
root     51424     1   Ss   18:43.17 /usr/local/sbin/winbindd -s /usr/local/etc/smb.conf
root     51425 51424   S     0:17.55 /usr/local/sbin/winbindd -s /usr/local/etc/smb.conf
root     51426 51424   I     0:01.70 /usr/local/sbin/winbindd -s /usr/local/etc/smb.conf
root       763     1   Is    0:00.05 login [pam] (login)
root       786   763   I+    0:00.03 -csh (csh)
....................................

[root@fox2] /usr/home/korenevb/>

=============================================================================

[root@fox2] /usr/home/korenevb/> cat /etc/nsswitch.conf
#
# nsswitch.conf(5) - name service switch configuration file
# $FreeBSD: src/etc/nsswitch.conf,v 1.1.8.1 2009/04/15 03:14:26 kensmith Exp $
#
group: files winbind
group_compat: nis
hosts: files dns
networks: files
passwd: files winbind
passwd_compat: nis
shells: files
services: compat
services_compat: nis
protocols: files
rpc: files
[root@fox2] /usr/home/korenevb/>

=============================================================================

[root@fox2] /usr/home/korenevb/> cat /etc/krb5.conf
[libdefaults]
        default_realm = MSK.DOMAIN.LOC
        clockskew = 300
        v4_instance_resolve = false
        v4_name_convert = {
                host = {
                        rcmd = host
                        ftp = ftp
                }
                plain = {
                        something = something-else
                }
        }

[realms]
        MSK.DOMAIN.LOC = {
                kdc = dc1.msk.domain.loc
                admin_server = dc1.msk.domain.loc
        }
        OTHER.REALM = {
                v4_instance_convert = {
                        kerberos = kerberos
                        computer = computer.some.other.domain
                }
        }
[domain_realm]
        .msk.domain.loc = MSK.DOMAIN.LOC
        msk.domain.loc = MSK.DOMAIN.LOC

;[logging]
;  kdc = FILE:/var/log/kdc.log
;  admin_server = FILE:/var/log/kadmin.log
;  default = FILE:/var/log/krb5lib.log
[root@fox2] /usr/home/korenevb/>

=============================================================================

[root@fox2] /usr/home/korenevb/> cat /usr/local/etc/smb.conf
[global]
;bind interfaces only = yes
;interfaces = 127.0.0.1/8  10.1.102.200/24
winbind separator = +
winbind use default domain = yes
winbind uid = 10000-20000
winbind gid = 10000-20000
winbind enum users = yes
winbind enum groups = yes
template homedir = /home/winnt/%D/%U
template shell = /bin/sh
workgroup = MSK
server string = FOX2 samba serveR
security = ads
;  guest account = pcguest
log file = /var/log/samba34/log.%m
log level = 3 passdb:5 auth:10 winbind:9
max log size = 50
password server = dc1.msk.domain.loc
realm = msk.domain.loc
;   passdb backend = tdbsam
;   include = /usr/local/etc/smb.conf.%m
socket options = TCP_NODELAY
#============================ Share Definitions ==============================
[homes]
   comment = Home Directories
   browseable = no
   writable = yes
[root@fox2] /usr/home/korenevb/>

=============================================================================

[root@fox2] /usr/home/korenevb/> cat /usr/local/etc/squid/squid.conf

#       WELCOME TO SQUID 2.7.STABLE6
#       ----------------------------
#

....................................

http_port 3128

hierarchy_stoplist cgi-bin ?

acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY

auth_param ntlm program /usr/local/bin/ntlm_auth --helper-protocol=squid-2.5-ntlmssp
auth_param ntlm children 10

auth_param basic program /usr/local/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 all src 0.0.0.0/0.0.0.0
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 563 1443 2443 9091

acl Safe_ports port 80-83       # http
acl Safe_ports port 21          # ftp
acl Safe_ports port 443 1443    # https, snews, migom
acl Safe_ports port 70          # gopher
acl Safe_ports port 210         # wais
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 8080-8083   # http
acl Safe_ports port 8100-8183   # http
acl Safe_ports port 3128        # squid
acl Safe_ports port 1400       # bss
acl Safe_ports port 2443       # bss
acl Safe_ports port 8020       # bss
acl Safe_ports port 5051        # mts
acl Safe_ports port 910         # CronosPort
acl CONNECT method CONNECT

acl local-servers dstdomain .domain.loc

acl sirius src 10.2.1.69 10.2.1.63

acl NTLMauth proxy_auth REQUIRED

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

http_access allow sirius NTLMauth
http_access deny sirius

# And finally deny all other access to this proxy
http_access deny all

access_log /usr/local/squid/logs/access.log squid
cache_log /usr/local/squid/logs/cache.log
cache_store_log none
logfile_rotate 1

never_direct deny local-servers
never_direct allow all

=============================================================================

Ответить | Правка | Cообщить модератору

Оглавление

Сообщения по теме [Сортировка по времени | RSS]


1. "Авторизация в squid-е используя Windows AD"  +/
Сообщение от Сергей (??) on 19-Апр-11, 09:28 
> Настроил авторизацию в squid-е используя windows-пользователей
> в домене AD.
> Но после загрузки winbindd, компьютер медленно реагирует на команды.
> Например на ps, top вообще не запускается?

в логах самого winbind'а что пишется, права на /var/db/samba34/winbindd_privileged squid'у дали...

Ответить | Правка | ^ к родителю #0 | Наверх | Cообщить модератору

2. "Авторизация в squid-е используя Windows AD"  +/
Сообщение от korbnik email(ok) on 19-Апр-11, 09:34 
>> Настроил авторизацию в squid-е используя windows-пользователей
>> в домене AD.
>> Но после загрузки winbindd, компьютер медленно реагирует на команды.
>> Например на ps, top вообще не запускается?
>  в логах самого winbind'а что пишется, права на /var/db/samba34/winbindd_privileged squid'у
> дали...

Вот:

[root@fox2] /var/log/samba34/> ls -al /var/db/samba34/ | grep winbindd_privileged
drwxr-x---   2 root  squid       512 Apr 18 11:44 winbindd_privileged
[root@fox2] /var/log/samba34/>


[root@fox2] /var/log/samba34/> cat /var/log/samba34/log.winbindd
[2011/04/19 09:30:13,  5] winbindd/winbindd_dual.c:495(winbind_child_died)
  Already reaped child 64441 died
[2011/04/19 09:30:13,  5] winbindd/winbindd_cm.c:97(msg_failed_to_go_online)
  msg_fail_to_go_online: received for domain RRDBANK.
[2011/04/19 09:30:15,  3] winbindd/winbindd_pam.c:1779(winbindd_pam_auth_crap)
  [12837]: pam auth crap domain: [MSK] user: KorenevB
[2011/04/19 09:30:15,  5] winbindd/winbindd_cm.c:136(msg_try_to_go_online)
  msg_try_to_go_online: received for domain SAMARA.
[2011/04/19 09:30:15,  3] winbindd/winbindd_cm.c:1597(connection_ok)
  connection_ok: Connection to  for domain SAMARA is not connected
[2011/04/19 09:30:18,  5] winbindd/winbindd_dual.c:495(winbind_child_died)
  Already reaped child 64445 died
[2011/04/19 09:30:18,  3] winbindd/winbindd_pam.c:1779(winbindd_pam_auth_crap)
  [12837]: pam auth crap domain: [MSK] user: KorenevB
[2011/04/19 09:30:20,  3] winbindd/winbindd_pam.c:1779(winbindd_pam_auth_crap)
  [12837]: pam auth crap domain: [MSK] user: KorenevB
[2011/04/19 09:30:20,  3] winbindd/winbindd_pam.c:1779(winbindd_pam_auth_crap)
  [12837]: pam auth crap domain: [MSK] user: KorenevB
[2011/04/19 09:30:21,  3] winbindd/winbindd_pam.c:1779(winbindd_pam_auth_crap)
  [12837]: pam auth crap domain: [MSK] user: KorenevB
[2011/04/19 09:30:23,  5] winbindd/winbindd_cm.c:136(msg_try_to_go_online)
  msg_try_to_go_online: received for domain STRJ.
[2011/04/19 09:30:23,  3] winbindd/winbindd_cm.c:1597(connection_ok)
  connection_ok: Connection to  for domain STRJ is not connected
[2011/04/19 09:30:26,  5] winbindd/winbindd_dual.c:495(winbind_child_died)
  Already reaped child 64446 died
[2011/04/19 09:30:26,  5] winbindd/winbindd_cm.c:136(msg_try_to_go_online)
  msg_try_to_go_online: received for domain IZH.
[2011/04/19 09:30:26,  3] winbindd/winbindd_cm.c:1597(connection_ok)
  connection_ok: Connection to  for domain IZH is not connected
[2011/04/19 09:30:29,  5] winbindd/winbindd_dual.c:495(winbind_child_died)
  Already reaped child 64447 died
[2011/04/19 09:30:29,  5] winbindd/winbindd_cm.c:97(msg_failed_to_go_online)
  msg_fail_to_go_online: received for domain DBO.
[2011/04/19 09:30:29,  5] winbindd/winbindd_dual.c:495(winbind_child_died)
  Already reaped child 64442 died
[2011/04/19 09:30:31,  5] winbindd/winbindd_cm.c:136(msg_try_to_go_online)
  msg_try_to_go_online: received for domain OREL0.
[2011/04/19 09:30:31,  3] winbindd/winbindd_cm.c:1597(connection_ok)
  connection_ok: Connection to  for domain OREL0 is not connected
[2011/04/19 09:30:34,  5] winbindd/winbindd_dual.c:495(winbind_child_died)
  Already reaped child 64448 died
[2011/04/19 09:30:36,  5] winbindd/winbindd_cm.c:136(msg_try_to_go_online)
  msg_try_to_go_online: received for domain KRSN.
[2011/04/19 09:30:36,  3] winbindd/winbindd_cm.c:1597(connection_ok)
  connection_ok: Connection to  for domain KRSN is not connected
[2011/04/19 09:30:38,  5] winbindd/winbindd_dual.c:495(winbind_child_died)
  Already reaped child 64449 died
[2011/04/19 09:30:39,  5] winbindd/winbindd_cm.c:136(msg_try_to_go_online)
  msg_try_to_go_online: received for domain USINSK.
[2011/04/19 09:30:39,  3] winbindd/winbindd_cm.c:1597(connection_ok)
  connection_ok: Connection to  for domain USINSK is not connected
[2011/04/19 09:30:42,  5] winbindd/winbindd_dual.c:495(winbind_child_died)
  Already reaped child 64456 died
[2011/04/19 09:30:43,  5] winbindd/winbindd_cm.c:136(msg_try_to_go_online)
  msg_try_to_go_online: received for domain SPB.
[2011/04/19 09:30:43,  3] winbindd/winbindd_cm.c:1597(connection_ok)
  connection_ok: Connection to  for domain SPB is not connected
[2011/04/19 09:30:46,  5] winbindd/winbindd_dual.c:495(winbind_child_died)
  Already reaped child 64457 died
[2011/04/19 09:30:48,  5] winbindd/winbindd_cm.c:97(msg_failed_to_go_online)
  msg_fail_to_go_online: received for domain RRDBANK.
[2011/04/19 09:30:48,  5] winbindd/winbindd_dual.c:495(winbind_child_died)
  Already reaped child 64458 died
[2011/04/19 09:30:48,  5] winbindd/winbindd_cm.c:136(msg_try_to_go_online)
  msg_try_to_go_online: received for domain SAMARA.
[2011/04/19 09:30:48,  3] winbindd/winbindd_cm.c:1597(connection_ok)
  connection_ok: Connection to  for domain SAMARA is not connected
[2011/04/19 09:30:51,  5] winbindd/winbindd_dual.c:495(winbind_child_died)
  Already reaped child 64460 died
[2011/04/19 09:30:56,  5] winbindd/winbindd_cm.c:136(msg_try_to_go_online)
  msg_try_to_go_online: received for domain STRJ.
[2011/04/19 09:30:56,  3] winbindd/winbindd_cm.c:1597(connection_ok)
  connection_ok: Connection to  for domain STRJ is not connected
[2011/04/19 09:30:58,  5] winbindd/winbindd_dual.c:495(winbind_child_died)
  Already reaped child 64461 died
[2011/04/19 09:30:59,  5] winbindd/winbindd_cm.c:136(msg_try_to_go_online)
  msg_try_to_go_online: received for domain IZH.
[2011/04/19 09:30:59,  3] winbindd/winbindd_cm.c:1597(connection_ok)
  connection_ok: Connection to  for domain IZH is not connected
[2011/04/19 09:31:01,  5] winbindd/winbindd_dual.c:495(winbind_child_died)
  Already reaped child 64462 died
[2011/04/19 09:31:04,  5] winbindd/winbindd_cm.c:136(msg_try_to_go_online)
  msg_try_to_go_online: received for domain OREL0.
[2011/04/19 09:31:04,  3] winbindd/winbindd_cm.c:1597(connection_ok)
  connection_ok: Connection to  for domain OREL0 is not connected
[2011/04/19 09:31:06,  5] winbindd/winbindd_dual.c:495(winbind_child_died)
  Already reaped child 64464 died
[2011/04/19 09:31:08,  5] winbindd/winbindd_cm.c:136(msg_try_to_go_online)
  msg_try_to_go_online: received for domain KRSN.
[2011/04/19 09:31:08,  3] winbindd/winbindd_cm.c:1597(connection_ok)
  connection_ok: Connection to  for domain KRSN is not connected
[2011/04/19 09:31:11,  5] winbindd/winbindd_dual.c:495(winbind_child_died)
  Already reaped child 64465 died
[2011/04/19 09:31:12,  5] winbindd/winbindd_cm.c:136(msg_try_to_go_online)
  msg_try_to_go_online: received for domain USINSK.
[2011/04/19 09:31:12,  3] winbindd/winbindd_cm.c:1597(connection_ok)
  connection_ok: Connection to  for domain USINSK is not connected
[2011/04/19 09:31:15,  5] winbindd/winbindd_dual.c:495(winbind_child_died)
  Already reaped child 64466 died
[2011/04/19 09:31:16,  5] winbindd/winbindd_cm.c:136(msg_try_to_go_online)
  msg_try_to_go_online: received for domain SPB.
[2011/04/19 09:31:16,  3] winbindd/winbindd_cm.c:1597(connection_ok)
  connection_ok: Connection to  for domain SPB is not connected
[2011/04/19 09:31:18,  5] winbindd/winbindd_dual.c:495(winbind_child_died)
  Already reaped child 64467 died
[2011/04/19 09:31:21,  5] winbindd/winbindd_cm.c:136(msg_try_to_go_online)
  msg_try_to_go_online: received for domain SAMARA.
[2011/04/19 09:31:21,  3] winbindd/winbindd_cm.c:1597(connection_ok)
  connection_ok: Connection to  for domain SAMARA is not connected
[2011/04/19 09:31:23,  5] winbindd/winbindd_dual.c:495(winbind_child_died)
  Already reaped child 64475 died
[2011/04/19 09:31:23,  5] winbindd/winbindd_dual.c:495(winbind_child_died)
  Already reaped child 64463 died
[2011/04/19 09:31:23,  5] winbindd/winbindd_cm.c:97(msg_failed_to_go_online)
  msg_fail_to_go_online: received for domain DBO.
[2011/04/19 09:31:24,  5] winbindd/winbindd_cm.c:97(msg_failed_to_go_online)
  msg_fail_to_go_online: received for domain RRDBANK.
[2011/04/19 09:31:24,  5] winbindd/winbindd_dual.c:495(winbind_child_died)
  Already reaped child 64474 died
[2011/04/19 09:31:28,  5] winbindd/winbindd_cm.c:136(msg_try_to_go_online)
  msg_try_to_go_online: received for domain STRJ.
[2011/04/19 09:31:28,  3] winbindd/winbindd_cm.c:1597(connection_ok)
  connection_ok: Connection to  for domain STRJ is not connected
[2011/04/19 09:31:31,  5] winbindd/winbindd_dual.c:495(winbind_child_died)
  Already reaped child 64476 died
[2011/04/19 09:31:31,  5] winbindd/winbindd_cm.c:136(msg_try_to_go_online)
  msg_try_to_go_online: received for domain IZH.
[2011/04/19 09:31:31,  3] winbindd/winbindd_cm.c:1597(connection_ok)
  connection_ok: Connection to  for domain IZH is not connected
[2011/04/19 09:31:34,  5] winbindd/winbindd_dual.c:495(winbind_child_died)
  Already reaped child 64480 died
[root@fox2] /var/log/samba34/>

Ответить | Правка | ^ к родителю #1 | Наверх | Cообщить модератору

3. "Авторизация в squid-е используя Windows AD"  +/
Сообщение от korbnik email(ok) on 19-Апр-11, 11:49 
>[оверквотинг удален]
>>> в домене AD.
>>> Но после загрузки winbindd, компьютер медленно реагирует на команды.
>>> Например на ps, top вообще не запускается?
>>  в логах самого winbind'а что пишется, права на /var/db/samba34/winbindd_privileged squid'у
>> дали...
> Вот:
> [root@fox2] /var/log/samba34/> ls -al /var/db/samba34/ | grep winbindd_privileged
> drwxr-x---   2 root  squid      
>  512 Apr 18 11:44 winbindd_privileged
> [root@fox2] /var/log/samba34/>

Всё, проблему решил, надо вот здесь поставить - no

winbind enum users = no
winbind enum groups = no

Спасибо всем за внимание.

Ответить | Правка | ^ к родителю #2 | Наверх | Cообщить модератору

Архив | Удалить

Рекомендовать для помещения в FAQ | Индекс форумов | Темы | Пред. тема | След. тема




Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2025 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру