Folders disapear samba 3.x and ldap
Dan Didier
ddidier at mapolce.com
Fri Oct 14 19:53:38 GMT 2005
We are having an issue with a few select clients - XP SP2 - the issue is
that folders sometimes show up and sometimes not. For instance we can
have two machines logged in with the same user and see all the folders
we should, but on the other machine logged in as the same user we don't
see all the folders!
I've reviewed the logs, and I see this on the workstations in question:
[2005/10/14 07:40:05, 0] lib/util_sock.c:get_peer_addr(1000)
getpeername failed. Error was Transport endpoint is not connected
[2005/10/14 07:40:05, 0] lib/util_sock.c:write_socket_data(430)
write_socket_data: write failure. Error = Connection reset by peer
[2005/10/14 07:40:05, 0] lib/util_sock.c:write_socket(455)
write_socket: Error writing 4 bytes to socket 23: ERRNO = Connection
reset by peer
[2005/10/14 07:40:05, 0] lib/util_sock.c:send_smb(647)
Error writing 4 bytes to client. -1. (Connection reset by peer)
Has anyone dealt with this or know what would cause this? The strange
thing is we get different results at different times. Sometimes we see
all the folders, sometimes none, sometimes a few from the same machines
with the same login!
Here is the smb.conf:
[global]
debug level = 2
use sendfile = no
interfaces = 10.10.10.28/255.255.0.0
bind interfaces only = yes
#passwd program = /usr/local/sbin/smbldap-passwd.pl -o %u
ldap passwd sync = Yes
#admin users = @"Domain Admins"
#add user script = /usr/sbin/useradd -d /dev/null -g 100 -s
/bin/false -M %u
domain master = Yes
obey pam restrictions = no
dns proxy = No
encrypt passwords = yes
#logon path = \\%N\profiles\%U
socket options = TCP_NODELAY
#SO_SNDBUF=8192 SO_RCVBUF=8192
short preserve case = No
wins support = Yes
case sensitive = No
max log size = 50
log level = 0
preferred master = Yes
logon script = Logon.bat
security = user
time server = Yes
domain logons = Yes
local master = Yes
server string = Oneida Server
workgroup = SHN1I002
mangled names = Yes
log file = /var/log/samba/log.%m
netbios name = sh1ui028
load printers = yes
os level = 255
default case = lower
#logon home = \\sh1ui028\%U\.profiles
logon home = \\sh1ui028\%U
logon path =
; SAMBA-LDAP declarations
passdb backend = ldapsam:ldap://127.0.0.1/
# ldap filter = (&(objectclass=sambaSamAccount)(uid=%u))
ldap admin dn = cn=root,dc=oneida,dc=com
ldap suffix = dc=oneida,dc=com
ldap group suffix = ou=Groups
ldap user suffix = ou=Users
ldap machine suffix = ou=Computers
ldap ssl = no
add user script = /usr/local/sbin/smbldap-useradd -a -m "%u"
ldap delete dn = Yes
delete user script = /usr/local/sbin/smbldap-userdel "%u"
add machine script = /usr/local/sbin/smbldap-useradd -w "%u"
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"
delete user from group script = /usr/local/sbin/smbldap-groupmod -x "%u"
"%g"
set primary group script = /usr/local/sbin/smbldap-usermod -g "%g" "%u"
[netlogon]
path = /home/netlogon
writeable = No
guest ok = Yes
share modes = No
#[profiles]
# path = /home/profiles
# read only = No
# create mask = 0600
# directory mask = 0700
# browseable = No
# guest ok = Yes
# nt acl support = Yes
# force user = %U
# profiles acls = yes
# writeable = yes
# valid users = %U @"Domain Admins"
[homes]
comment = Home Directories
valid users = %U
#denies anyone in the shrlmfg group access to this share
invalid users = @shrlmfg
read only = No
create mask = 0664
directory mask = 0775
browseable = No
oplocks = false
level2 oplocks = false
[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No
guest ok = Yes
public = Yes
writable = No
[shared]
path = /home/shared
#denies anyone in the shrlmfg group access to this share
invalid users = @shrlmfg
writeable = Yes
browseable = Yes
create mask = 0777
directory mask = 0777
oplocks = false
level2 oplocks = false
[groups]
path = /home/groups
#denies anyone in the shrlmfg group access to this share
invalid users = @shrlmfg
writeable = Yes
browsable = Yes
create mask = 0660
directory mask = 0770
oplocks = false
level2 oplocks = false
[hidden$]
path = /home/hidden
browseable = no
[devstd]
path = /home/groups/infosystems/development/devstd
writeable = Yes
browseable = Yes
create mode = 2775
directory mode = 0770
write list = @devstdrw
read list = @devstd
oplocks = false
level2 oplocks = false
[dcalc]
path = /home/dcalc
writeable = Yes
browseable = Yes
create mode = 0660
directory mode = 0770
oplocks = false
level2 oplocks = false
[pcsetup]
path = /home/pcsetup
writeable = Yes
browseable = Yes
create mode = 2775
directory mode = 2775
oplocks = false
level2 oplocks = false
[newprod]
path = /home/groups/newproducts/newprod
writeable = Yes
browseable = Yes
create mode = 0660
directory mode = 0770
write list = @newprodrw
read list = @newprod
oplocks = false
level2 oplocks = false
[nppkg]
path = /home/groups/newproducts/packaging
writeable = Yes
browseable = Yes
create mode = 0660
directory mode = 0770
write list = @nppkgrw
read list = @nppkg
oplocks = false
level2 oplocks = false
[Containers]
path = /home/groups/Distrib/Containers
writeable = Yes
browseable = Yes
create mode = 0660
directory mode = 0770
write list = @cntnrsrw
read list = @cntnrsro
oplocks = false
level2 oplocks = false
[shrlmfg]
path = /home/shrlmfg
writeable = Yes
browseable = Yes
create mode = 0660
directory mode = 0770
write list = @shrlmfg
oplocks = false
level2 oplocks = false
[cdrom]
path = /mnt/cdrom
read list = @dunbradstreet
browseable = no
writeable = No
oplocks = false
level2 oplocks = false
Dos charset = 850
Unix charset = ISO8859-1
Thanks,
Dan
More information about the samba-technical
mailing list