Hi list,
it's me again. I have 2 samba servers, one as a PDC, the other as a file
server.
I can now join the domain. But it's impossible to mount the smb shares.
The 2 servers are listening on several private networks, using vlans.
10.16.41.0/24 is a routed network, all over the campus. The others are
just nated through a FreeBSD box.
All dns datas are ok and uptodate
If I connect from a box on the 10.16.40.0/24 network, everything is ok,
I can mount the shares on the file server. But if I connect from a box
on 192.168.x.y networks, I don't mount the shares, sometimes don't mount
the home, and it seems that the netlogon script is not executed. I make
an automatic copy of the netlogon script in the user home ; if i execute
it, i have this error : "network path not found" (or something like
that, don't know how to translate it from french).
The problem is, I think, that in the logon script, I refer to monoxyde's
shares as \\monoxyde\some_share. But this server is known as monoxyde
only on the 10.16.41.0/24 network. On other networks, it's known
differently on the dns.
This morning, if i execute the logon script by hand, i can mount all the
shares, but it's not executed at logon time.
If the workstation is configured with dhcp, the connexion to the domain
is erratic (domain unknown) ; i must reboot the workstation for a good
login on the domain.
I think the problem is a network browsing problem, isn't it ? But i
don't find any solution.
If anybody has an idea... I'm desperate, please help.
I pasted the global sections of the 2 smb.conf.
Thanks for reading this,
Val?ry Roch?
-----
PDC's smb.conf.
[global]
workgroup = LETTRES
netbios name = CARBONE
interfaces = 10.16.41.21/255.255.255.0,
192.168.41.253/255.255.255.192, 192.168.42.61/255.255.255.192,
192.168.43.125/255.255.255.224, 127.0.0.1/255.0.0.0
bind interfaces only = yes
#smb ports = 139
admin users= @"Domain Admins"
server string = Controleur de domaine
security = user
encrypt passwords = Yes
obey pam restrictions = No
ldap passwd sync = Yes
ldap passwd sync = Yes
log level = 1
syslog = 1
log file = /var/log/samba/log.%m
max log size = 10000
time server = No
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
mangling method = hash2
Dos charset = 850
Unix charset = ISO8859-1
time server = yes
logon script = %U.bat
logon drive = h:
logon home = \\carbone\%U
logon path = \\carbone\profiles\%U
add machine script = /samba_system/scripts/smbldap-useradd -w
"%u"
root preexec = /samba_system/scripts/connect.sh %u %m %I %T %D
root preexec close = yes
domain logons = Yes
os level = 254
local master = Yes
preferred master = Yes
domain master = yes
wins support = Yes
name resolve order = wins lmhost hosts bcast
dns proxy = yes
max wins ttl = 518400
min wins ttl = 21600
passdb backend = ldapsam:ldap://ldapserver
ldap filter = (&(sambaSID=S-1-5-21-mysid-*)(uid=%u))
ldap admin dn = my_dn
ldap suffix = ldap_suffix
ldap user suffix = user_suffix
ldap group suffix = group_suffix
ldap machine suffix = machine_suffixe
-----
File server's smb.conf
[global]
workgroup = LETTRES
netbios name = MONOXYDE
#interfaces = 10.16.41.22, 192.168.42.60
interfaces = 10.16.41.22/255.255.255.0,
192.168.41.252/255.255.255.192, 192.168.42.60/255.255.255.192,
192.168.43.124/255.255.255.224, 127.0.0.1/255.0.0.0
bind interfaces only = yes
#username map = /etc/samba/smbusers
admin users= @"Domain Admins"
server string = BDC - partages
security = user
encrypt passwords = Yes
obey pam restrictions = No
ldap passwd sync = Yes
ldap passwd sync = Yes
log level = 1
syslog = 1
log file = /var/log/samba/log.%m
max log size = 10000
time server = No
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
mangling method = hash2
Dos charset = 850
Unix charset = ISO8859-1
domain logons = No
os level = 200
local master = No
preferred master = No
domain master = No
wins support = No
wins server = 10.16.41.21
name resolve order = hosts
passdb backend = ldapsam:ldap_server
ldap filter = (&(sambaSID=S-1-5-21-mysid-*)(uid=%u))
ldap admin dn = mydn
ldap suffix = suffic
ldap user suffix = ....
ldap group suffix = ....
ldap machine suffix = .....