From: Fabrice on
Hi all,

I have an issue with a samba PDC/BDC

Sometimes, the workstation ( mostly XP) cant connect, but after 2 or 3 minutes
the connection is allowed..
or new workstation can not be added to the domain but after a while its
working..

in the log I just have this :
Mar 31 17:57:06 pdc smbd[27008]: [2010/03/31 17:57:06, 0]
lib/util_sock.c:1491(get_peer_addr_internal)
Mar 31 17:57:06 pdc smbd[27008]: getpeername failed. Error was Transport
endpoint is not connected
Mar 31 17:57:06 pdc smbd[27008]: write_data: write failure in writing to
client 0.0.0.0. Error Connection reset by peer
Mar 31 17:57:06 pdc smbd[27008]: [2010/03/31 17:57:06, 0]
smbd/process.c:62(srv_send_smb)
Mar 31 17:57:06 pdc smbd[27008]: Error writing 4 bytes to client. -1.
(Transport endpoint is not connected)

I dont know what to look more, i checked without the BDC, all the account are
visible....

If anyway can help me to find out.., i post my conf in case i make something
wrong in it that i dont see...

here my conf :
The PDC:

[global]
unix charset = LOCALE
workgroup = ALPHAMEDIAN
netbios name = PDC
realm = ALPHAMEDIAN.LOCAL
server string = S-SAMBA PDC
security = user
log level = 5
log file = /var/log/samba/log.%m
max log size = 90000
load printers = no
socket options = TCP_NODELAY
os level = 99
domain master = yes
preferred master = yes
local master = yes
browse list = yes
interfaces = 192.168.0.1/255.255.255.0
bind interfaces only = yes

encrypt passwords = yes
pam password change = no
unix password sync = no
passwd program = /usr/sbin/smbldap-passwd %u

add user script = /usr/sbin/smbldap-useradd -m "%u"
add group script = /usr/sbin/smbldap-groupadd -p "%g"
delete user from group script = /usr/sbin/smbldap-groupmod -x "%u"
set primary group script = /usr/sbin/smbldap-usermod -g "%g" "%u"
add user to group script = /usr/sbin/smbldap-groupmod -m "%u" "%g"
add machine script = /usr/sbin/smbldap-useradd -w "%u"

passdb backend = ldapsam
password server = ldap://127.0.0.1

idmap backend = ldap:ldap://127.0.0.1
ldap admin dn = cn=admin,dc=alphamedian,dc=fr
ldap suffix = dc=alphamedian,dc=fr
ldap ssl = no
ldap user suffix = ou=people
ldap group suffix = ou=groups
ldap machine suffix = ou=machines
ldap delete dn = yes
ldap password sync = yes
ldapsam:editposix = yes
idmap uid = 15000-20000
idmap gid = 15000-20000
dns proxy = no
wins support = Yes
name resolve order = lmhosts hosts wins bcast
case sensitive = yes
guest account = nobody
winbind nested groups = no
lanman auth = yes
ntlm auth = yes
client ntlmv2 auth = yes
Dos charset = 850
Unix charset = ISO8859-1
enable privileges = yes
time server = Yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
logon path =
domain logons = Yes
domain master = Yes


the BDC conf :
[global]
unix charset = LOCALE
workgroup = ALPHAMEDIAN
netbios name = s-faxings
server string = S-FAXING BDC
security = user
log level = 5
log file = /var/log/samba/log.%m
max log size = 90000
load printers = no
socket options = TCP_NODELAY
os level = 98
domain master = no
preferred master = yes
local master = yes
browse list = yes
interfaces = 192.168.0.35/255.255.255.0
bind interfaces only=yes
encrypt passwords = yes
pam password change = no
unix password sync = no
passwd program = /usr/sbin/smbldap-passwd %u
add user script = /usr/sbin/smbldap-useradd -m "%u"
add group script = /usr/sbin/smbldap-groupadd -p "%g"
delete user from group script = /usr/sbin/smbldap-groupmod -x "%u"
set primary group script = /usr/sbin/smbldap-usermod -g "%g" "%u"
add user to group script = /usr/sbin/smbldap-groupmod -m "%u" "%g"
add machine script = /usr/sbin/useradd -d /dev/null -s /bin/false -d /var/tmp
%u
passdb backend = ldapsam
password server = ldap://127.0.0.1
idmap backend = ldap:ldap://127.0.0.1
ldap admin dn = cn=admin,dc=alphamedian,dc=fr
ldap suffix = dc=alphamedian,dc=fr
ldap ssl = no
ldap user suffix = ou=people
ldap group suffix = ou=groups
ldap machine suffix = ou=machines
ldap delete dn = yes
ldap password sync = yes
ldapsam:editposix = yes
idmap uid = 15000-20000
idmap gid = 15000-20000
dns proxy = no
wins support = Yes
name resolve order = lmhosts hosts wins bcast
case sensitive = no
guest account = nobody
winbind nested groups = no
lanman auth = yes
ntlm auth = yes
client ntlmv2 auth = yes
Dos charset = 850
Unix charset = ISO8859-1
enable privileges = yes
time server = Yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
logon path =
domain logons = Yes
domain master = Yes



--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba