Руководствовался статьей лиса squid+AD,огромное ему спасибо.
Winbind все равно вырубается,хоть ты тресни,обновил даже до Version 3.0.32,2_1,все равно ошибка эта осталать.
Samb-у собирал вот с такими опциями:
#smbd -b
Build environment:
Built by: vav@Squid
Built on: четверг, 18 декабря 2008 г. 16:42:09 (MSK)
Built using: cc
Build host: FreeBSD Squid 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Wed Oct 15 14:02:40 UTC 2008
root@Squid.confi.ru:/usr/ob
j/usr/src/sys/Squid i386
SRCDIR: /usr/ports/net/samba3/work/samba-3.0.32/source
BUILDDIR: /usr/ports/net/samba3/work/samba-3.0.32/source
...
--with Options:
WITH_ADS
WITH_PAM
WITH_PAM_MODULES
WITH_SENDFILE
WITH_SYSLOG
WITH_WINBIND
...
Вот мой кон-г самбы:
# grep -v "#" /usr/local/etc/smb.conf|sed -e '/^$/d'
[global]
workgroup = CONFI
server string = Rroxy Server of confi.ru
security = ADS
auth methods = winbind
hosts allow = 192.168.0. 192.168.1. 127.
load printers = yes
; printcap name = /etc/printcap
; printcap name = lpstat
; printing = cups
; guest account = pcguest
log file = /var/log/samba/log.%m
max log size = 50000
; password server = <NT-Server-Name>
password server = FOX.CONFI.RU
realm = CONFI.RU
netbios name = SQUID
passdb backend = tdbsam
; include = /usr/local/etc/smb.conf.%m
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
interfaces = 192.168.0.1/24
bind interfaces only = yes
local master = no
; os level = 33
domain master = no
preferred master = no
domain logons = no
; logon script = %m.bat
; logon script = %U.bat
; logon path = \\%L\Profiles\%U
; wins support = yes
; wins server = w.x.y.z
; wins proxy = yes
dns proxy = no
display charset = koi8-r
unix charset = koi8-r
dos charset = cp866
encrypt passwords = yes
winbind use default domain = yes
winbind uid = 10000-20000
winbind gid = 10000-20000
winbind enum users = yes
winbind enum groups = yes
; store dos attributes = yes
; map hidden = no
; map system = no
; map archive = no
; nt acl support = yes
; inherit acls = yes
; map acl inherit = yes
; add user script = /usr/sbin/useradd %u
; add group script = /usr/sbin/groupadd %g
; add machine script = /usr/sbin/adduser -n -g machines -c Machine -d /dev/null -s /bin/false %u
; delete user script = /usr/sbin/userdel %u
; delete user from group script = /usr/sbin/deluser %u %g
; delete group script = /usr/sbin/groupdel %g
[homes]
comment = Home Directories
browseable = no
writable = yes
; [netlogon]
; comment = Network Logon Service
; path = /usr/local/samba/lib/netlogon
; guest ok = yes
; writable = no
; share modes = no
;[Profiles]
; path = /usr/local/samba/profiles
; browseable = no
; guest ok = yes
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes
;[tmp]
; comment = Temporary file space
; path = /tmp
; read only = no
; public = yes
;[public]
; comment = Public Stuff
; path = /home/samba
; public = yes
:
; public = yes
; writable = yes
; printable = no
; write list = @staff
;[fredsprn]
; comment = Fred's Printer
; valid users = fred
; path = /homes/fred
; printer = freds_printer
; public = no
; writable = no
; printable = yes
;[fredsdir]
; comment = Fred's Service
; path = /usr/somewhere/private
; valid users = fred
; public = no
; writable = yes
; printable = no
;[pchome]
; comment = PC Directories
; path = /usr/pc/%m
; public = no
; writable = yes
;[public]
; path = /usr/somewhere/else/public
; public = yes
; only guest = yes
; writable = yes
; printable = no
;[myshare]
; comment = Mary's and Fred's stuff
; path = /usr/somewhere/shared
; valid users = mary fred
; public = no
; writable = yes
; printable = no
; create mask = 0765
А логах ват что:
[2008/12/21 16:30:00, 3] nsswitch/winbindd_ads.c:sequence_number(1010)
ads: fetch sequence_number for CONFI
Assertion failed: (r != NULL), function ldap_parse_result, file error.c, line 272.
[2008/12/21 16:30:00, 0] lib/fault.c:fault_report(41)
===============================================================
[2008/12/21 16:30:00, 0] lib/fault.c:fault_report(42)
INTERNAL ERROR: Signal 6 in pid 894 (3.0.32)
Please read the Trouble-Shooting section of the Samba3-HOWTO
[2008/12/21 16:30:00, 0] lib/fault.c:fault_report(44)
From:
http://www.samba.org/samba/docs/Samba3-HOWTO.pdf
[2008/12/21 16:30:00, 0] lib/fault.c:fault_report(45)
===============================================================
[2008/12/21 16:30:00, 0] lib/util.c:smb_panic(1633)
PANIC (pid 894): internal error
[2008/12/21 16:30:00, 0] lib/util.c:log_stack_trace(1737)
BACKTRACE: 21 stack frames:
#0 0xd2fcd <smb_panic+93> at /usr/local/sbin/winbindd
#1 0xbd396 <dump_core_setup+1014> at /usr/local/sbin/winbindd
#2 0xbfbfffb4
#3 0x2068eb8a <abort+106> at /lib/libc.so.7
#4 0x20677096 <__assert+86> at /lib/libc.so.7
#5 0x2058443f <ldap_parse_result+863> at /usr/local/lib/libldap-2.4.so.3
#6 0x1db28c <ads_clear_service_principal_names+2172> at /usr/local/sbin/winbindd
#7 0x1db60f <ads_do_search_all_args+111> at /usr/local/sbin/winbindd
#8 0x1e4919 <ads_atype_map+361> at /usr/local/sbin/winbindd
#9 0x1e4e9a <ads_do_search_retry+58> at /usr/local/sbin/winbindd
#10 0x1d80fc <ads_USN+108> at /usr/local/sbin/winbindd
#11 0x65b93 <msrpc_name_to_sid+5299> at /usr/local/sbin/winbindd
#12 0x4c739 <wcache_count_cached_creds+521> at /usr/local/sbin/winbindd
#13 0x4cd39 <cache_name2sid+201> at /usr/local/sbin/winbindd
#14 0x4f608 <cache_name2sid+10648> at /usr/local/sbin/winbindd
#15 0x4449b <winbindd_getgroups+1851> at /usr/local/sbin/winbindd
#16 0x46c28 <winbindd_getgrent+968> at /usr/local/sbin/winbindd
#17 0x3f980 <request_finished_cont+896> at /usr/local/sbin/winbindd
#18 0x3ff79 <winbind_check_sighup+521> at /usr/local/sbin/winbindd
#19 0x409f4 <main+2420> at /usr/local/sbin/winbindd
#20 0x3eb99 <_start+137> at /usr/local/sbin/winbindd
[2008/12/21 16:30:00, 0] lib/fault.c:dump_core(181)
dumping core in /var/log/samba/cores/winbindd
[2008/12/22 15:43:15, 1] nsswitch/winbindd.c:main(1013)
winbindd version 3.0.32 started.
Copyright Andrew Tridgell and the Samba Team 1992-2008