Olá!
Possuo uma rede com um servidor Debian 4.0, e samba 3.0.25b com autenticação via LDAP. Nesta rede tenho umas 30 estações WinXP Professional SP3. O problema que tenho ocorre quando estou em uma estação winxp e tento acessar os compartilhamentos do samba no servidor, algumas estações não conseguem acessá-los, sempre após termos feito a autenticação do usuário, digitando login e senha. Não sei se o problema está no ldap, no winbind, em alguma configuração do samba, ou nas estações winxp.
#######################SAMBA.CONF####################################################
[global]
domain master = Yes
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *all*authentication*tokens*updated*
obey pam restrictions = no
delete user from group script = /usr/local/sbin/smbldap-groupmod -x "%u" "%g"
passwd program = /usr/local/sbin/smbldap-passwd %u
netbios name = cedro
browseable = no
ldap passwd sync = Yes
default = TEMP
workgroup = CPP
os level = 20
ldap admin dn = cn=pro,dc=cpp,dc=ucs,dc=br
security = user
add machine script = /usr/local/sbin/smbldap-useradd -w "%u"
delete user script = /usr/local/sbin/smbldap-userdel "%u"
load printers = no
ldap user suffix = ou=sUsuarios
add group script = /usr/local/sbin/smbldap-groupadd -p "%g"
delete group script = /usr/local/sbin/smbldap-groupdel "%g"
add user to group script = /usr/local/sbin/smbldap-groupmod -m "%u" "%g"
passdb backend = ldapsam:ldap://127.0.0.1
available = no
ldap delete dn = no
netbios aliases = jack
server string = CPP File Server
ldap group suffix = ou=sGrupos
ldap machine suffix = ou=sComputadores
ldap suffix = dc=cpp,dc=ucs,dc=br
add user script = /usr/local/sbin/smbldap-useradd -m "%u"
set primary group script = /usr/local/sbin/smbldap-usermod -g "%g" "%u"
ldap idmap suffix = ou=sUsuarios
enable privileges = yes
domain logons = yes
# LDAP - CPP
; Do ldap passwd sync
logon path =
logon drive = H:
logon home = \\%L\homes\%U
# Configuracoes para o LDAP
# Permitir que usuarios do grupo "Administradores do Dominio" possam ingressar maquinas # WinXP?/Win2000 ao dominio samba
[netlogon]
guest ok = No
comment = Network Logon Service
admin users = root
path = /home/samba/netlogon
# For profiles to work, create a user directory under the path
# shown. i.e., mkdir -p /var/lib/samba/profiles/steve
[TEMP]
guest ok = Yes
browseable = yes
writable = yes
path = /home/TEMP
available = yes
[homes]
revalidate = yes
browseable = yes
writeable = yes
available = yes
############################################################################################################
LOG DO SAMBA
[2009/07/31 14:01:01, 0] lib/util_sock.c:get_peer_addr(1232)
getpeername failed. Error was Transport endpoint is not connected
[2009/07/31 14:01:01, 0] lib/util_sock.c:write_data(562)
write_data: write failure in writing to client 192.168.100.46. Error Connection reset by peer
[2009/07/31 14:01:01, 0] lib/util_sock.c:send_smb(769)
Error writing 4 bytes to client. -1. (Connection reset by peer)
[2009/07/31 14:01:13, 1] smbd/service.c:make_connection_snum(1033)
iiats16 (192.168.100.46) connect to service carloss initially as user carloss (uid=1073, gid=512) (pid 23059)
[2009/07/31 14:01:47, 1] smbd/service.c:make_connection_snum(1033)
cap06 (192.168.100.36) connect to service TEMP initially as user carloss (uid=1073, gid=512) (pid 23069)
[2009/07/31 14:02:44, 1] smbd/service.c:close_cnum(1230)
iiats16 (192.168.100.46) closed connection to service carloss
[2009/07/31 14:03:30, 0] lib/util_sock.c:get_peer_addr(1232)
getpeername failed. Error was Transport endpoint is not connected
[2009/07/31 14:03:30, 0] lib/util_sock.c:get_peer_addr(1232)
getpeername failed. Error was Transport endpoint is not connected
[2009/07/31 14:03:30, 0] lib/util_sock.c:read_data(534)
read_data: read failure for 4 bytes to client 0.0.0.0. Error = Connection reset by peer
[2009/07/31 14:12:00, 1] smbd/service.c:close_cnum(1230)
cap06 (192.168.100.36) closed connection to service TEMP
[2009/07/31 14:45:34, 0] lib/util_sock.c:get_peer_addr(1232)
getpeername failed. Error was Transport endpoint is not connected
[2009/07/31 14:45:34, 0] lib/util_sock.c:write_data(562)
write_data: write failure in writing to client 192.168.100.44. Error Connection reset by peer
[2009/07/31 14:45:34, 0] lib/util_sock.c:send_smb(769)
Error writing 4 bytes to client. -1. (Connection reset by peer)
[2009/07/31 14:45:49, 1] smbd/service.c:make_connection_snum(1033)
cap14 (192.168.100.44) connect to service carloss initially as user carloss (uid=1073, gid=512) (pid 23716)
[2009/07/31 14:55:12, 1] smbd/service.c:make_connection_snum(1033)
tabl01 (192.168.100.133) connect to service suporte initially as user robertok (uid=11196, gid=11196) (pid 23857)
[2009/07/31 14:55:12, 1] smbd/service.c:make_connection_snum(1033)
cap14 (192.168.100.44) connect to service Projetos_de_Pesquisa initially as user cpp (uid=11191, gid=11191) (pid 23858)
[2009/07/31 14:55:12, 1] smbd/service.c:make_connection_snum(1033)
cap14 (192.168.100.44) connect to service suporte initially as user carloss (uid=1073, gid=512) (pid 23858)
[2009/07/31 14:55:12, 1] smbd/service.c:make_connection_snum(1033)
cap14 (192.168.100.44) connect to service TEMP initially as user carloss (uid=1073, gid=512) (pid 23858)
[2009/07/31 14:55:23, 1] smbd/service.c:close_cnum(1230)
tabl01 (192.168.100.133) closed connection to service suporte
[2009/07/31 14:56:20, 0] lib/util_sock.c:get_peer_addr(1232)
getpeername failed. Error was Transport endpoint is not connected
[2009/07/31 14:56:20, 0] lib/util_sock.c:get_peer_addr(1232)
getpeername failed. Error was Transport endpoint is not connected
[2009/07/31 14:56:20, 0] lib/util_sock.c:write_data(562)
write_data: write failure in writing to client 0.0.0.0. Error Connection reset by peer
[2009/07/31 14:56:20, 0] lib/util_sock.c:send_smb(769)
Error writing 4 bytes to client. -1. (Connection reset by peer)
[2009/07/31 15:03:19, 1] smbd/service.c:close_cnum(1230)
cap14 (192.168.100.44) closed connection to service carloss
[2009/07/31 15:24:23, 1] smbd/service.c:close_cnum(1230)
cap14 (192.168.100.44) closed connection to service Projetos_de_Pesquisa
[2009/07/31 15:24:23, 1] smbd/service.c:close_cnum(1230)
cap14 (192.168.100.44) closed connection to service suporte
[2009/07/31 15:24:23, 1] smbd/service.c:close_cnum(1230)
cap14 (192.168.100.44) closed connection to service TEMP
######################### SMBSTATUS #########################################################
Samba version 3.0.25b
PID Username Group Machine
-------------------------------------------------------------------
23077 carloss Domain Admins iiats16 (192.168.100.46)
23100 carloss Domain Admins iiats16 (192.168.100.46)
23069 carloss Domain Admins cap06 (192.168.100.36)
23088 carloss Domain Admins iiats16 (192.168.100.46)
Service pid machine Connected at
-------------------------------------------------------
IPC$ 23088 iiats16 Fri Jul 31 14:03:30 2009
IPC$ 23100 iiats16 Fri Jul 31 14:04:38 2009
IPC$ 23100 iiats16 Fri Jul 31 14:04:38 2009
IPC$ 23069 cap06 Fri Jul 31 14:01:44 2009
IPC$ 23077 iiats16 Fri Jul 31 14:02:22 2009
TEMP 23069 cap06 Fri Jul 31 14:01:47 2009
Locked files:
Pid Uid DenyMode Access R/W Oplock SharePath Name Time
--------------------------------------------------------------------------------------------------
23069 1073 DENY_NONE 0x100001 RDONLY NONE /home/TEMP . Fri Jul 31 14:01:47 2009
######################### SMBSTATUS #########################################################
Samba version 3.0.25b
PID Username Group Machine
-------------------------------------------------------------------
23896 carloss Domain Admins cap14 (192.168.100.44)
23882 carloss Domain Admins cap14 (192.168.100.44)
23750 carloss Domain Admins cap14 (192.168.100.44)
23918 carloss Domain Admins cap14 (192.168.100.44)
23870 carloss Domain Admins cap14 (192.168.100.44)
23858 carloss Domain Admins cap14 (192.168.100.44)
23069 carloss Domain Admins cap06 (192.168.100.36)
23769 carloss Domain Admins cap14 (192.168.100.44)
Service pid machine Connected at
-------------------------------------------------------
IPC$ 23769 cap14 Fri Jul 31 14:49:31 2009
IPC$ 23750 cap14 Fri Jul 31 14:48:23 2009
Projetos_de_Pesquisa 23858 cap14 Fri Jul 31 14:55:12 2009
IPC$ 23858 cap14 Fri Jul 31 14:55:12 2009
IPC$ 23870 cap14 Fri Jul 31 14:56:20 2009
IPC$ 23882 cap14 Fri Jul 31 14:57:29 2009
IPC$ 23858 cap14 Fri Jul 31 14:55:12 2009
IPC$ 23896 cap14 Fri Jul 31 14:58:37 2009
IPC$ 23769 cap14 Fri Jul 31 14:49:31 2009
suporte 23858 cap14 Fri Jul 31 14:55:12 2009
IPC$ 23069 cap06 Fri Jul 31 14:01:44 2009
IPC$ 23918 cap14 Fri Jul 31 14:59:45 2009
IPC$ 23896 cap14 Fri Jul 31 14:58:37 2009
TEMP 23858 cap14 Fri Jul 31 14:55:12 2009
Locked files:
Pid Uid DenyMode Access R/W Oplock SharePath Name Time
--------------------------------------------------------------------------------------------------
Abraço,
Carlos Santos