[Samba] Multiple Domain and multiple subnet

2011-03-25 Thread Aldyth Maharsha
Hi list, i'm have a problem..i'm setup two domain controller with different
subnet..my client login into domain with network mapping drive
Subnet #1 : 10.1.0.0/16
Subnet #2 : 192.168.21.0/24

PDC 1 : 10.1.1.7/16
PDC 2 : 192.168.21.3/24

If i'm ping, traceroute or ssh from each client it's successfull but i can't
see the network neigborhood at each domain, if i'm login from client at
domain 1, i can't see domain 2 and if i'm login from domain 2, i can't see
domain 1.

Any idea?, thanks before (i'm attach my smb.conf from each pdc)

best regards,
[global]



add machine script = /sbin/e-smith/signal-event machine-account-create '%u'

bind interfaces only = yes

case sensitive = no
deadtime = 10080

display charset = ISO8859-1

dns proxy = no 

domain logons = yes
domain master = yes
dos charset = 850

encrypt passwords = yes

guest account = public

guest ok = no
hosts allow = 127.0.0.1 10.1.0.0/255.255.0.0 192.168.0.0/255.255.255.0


interfaces = 127.0.0.1 10.1.1.7/255.255.0.0

log file = /var/log/samba/log.%m
logon drive = Z:

logon path = 
logon script = netlogon.bat

map to guest = never

max log size = 50

name resolve order = wins lmhosts bcast

netbios name = sun07
oplocks = true
kernel oplocks = true
level2 oplocks = true
os level = 65

passdb backend = smbpasswd:/etc/samba/smbpasswd


pid directory = /var/run
preferred master = yes

preserve case = yes



security = user
server string = SME Server
short preserve case = yes
smb passwd file = /etc/samba/smbpasswd
smb ports = 139

socket options = TCP_NODELAY 

strict locking = no
unix charset = UTF8

unix password sync = Yes
pam password change = Yes

passwd program = /usr/bin/passwd %u 
passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n 
*passwd:*all*authentication*tokens*updated*successfully*
check password script = /sbin/e-smith/samba_check_password
unix extensions = no


wins support = yes

workgroup = Hutankita
printcap name = /etc/printcap
load printers = yes
printing = lprng
print command = /usr/bin/lpr -b -h -r -P%p %s

[homes]
comment = Home directory
browseable = no
guest ok = no
read only = no
writable = yes
printable = no
create mode = 0660
force create mode = 0660
directory mode = 0770
force directory mode = 0770
path = /home/e-smith/files/users/%S/home

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes
use client driver = yes

[netlogon]
comment = Network Logon Service
path = /home/e-smith/files/samba/netlogon
guest ok = yes
writable = yes
browseable = no

[print$]
comment = Printer drivers
path = /home/e-smith/files/samba/printers
guest ok = yes
browseable = yes
writable = no
[Primary]
comment = Primary i-bay


path = /home/e-smith/files/ibays/Primary
read only = no
writable = yes
read list = @shared-ro
printable = no
inherit permissions = yes
create mode = 0640

[global]

add machine script = /sbin/e-smith/signal-event machine-account-create '%u'
admin users = admin

bind interfaces only = no

case sensitive = no
deadtime = 10080

display charset = ISO8859-1

dns proxy = no 

domain logons = yes
domain master = yes
dos charset = 850

encrypt passwords = yes

guest account = public

guest ok = no
hosts allow = 127.0.0.1 10.1.0.0/255.255.0.0 192.168.21.0/255.255.255.0 
192.168.22.0/255.255.255.0


interfaces = 127.0.0.1 192.168.21.3/255.255.255.0

log file = /var/log/samba/log.%m

logon path = 
logon script = netlogon.bat

map to guest = never

max log size = 50

name resolve order = wins lmhosts bcast

netbios name = basirih02
oplocks = true
kernel oplocks = true
level2 oplocks = true

os level = 65

passdb backend = smbpasswd:/etc/samba/smbpasswd


pid directory = /var/run
preserve case = yes

printer admin = admin



security = user
server string = SME Server
short preserve case = yes
smb passwd file = /etc/samba/smbpasswd

socket options = TCP_NODELAY 

strict locking = no
unix charset = UTF8

unix password sync = Yes
pam password change = Yes

passwd program = /usr/bin/passwd %u 
passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n 
*passwd:*all*authentication*tokens*updated*successfully*
check password script = /sbin/e-smith/samba_check_password


wins support = yes

workgroup = bic_jkt
printcap name = /etc/printcap
load printers = yes
printing = lprng
print command = /usr/bin/lpr -b -h -r -P%p %s

[homes]
comment = Home directory
browseable = no
guest ok = no
read only = no
writable = yes
printable = no
create mode = 0660
force create mode = 0660
directory mode = 0770
force directory mode = 0770
path = /home/e-smith/files/users/%S/home

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes
use client driver = yes

[netlogon]
comment = Network Logon Service
path = /home/e-smith/files/samba/netlogon
guest ok = yes
writable = yes
browseable = no

[print$]
comment = Printer drivers
path = /home/e-smith/files/samba/printers
guest ok = yes
browseable = yes
use client 

Re: [Samba] Multiple Domain and multiple subnet

2011-03-25 Thread Daniel Müller
So you have 2 wins server each for a subnet. 
So there is: 
remote browse sync = 'THENAMEOFTHEOTHERPDC'
remote announce = 'Remote_network_address'/'Remote_Domain_Name' 
Your wondows client should have netbios over tcp enabled and the wins. 
Or try samba4wins in replication.


On Fri, 25 Mar 2011 15:42:41 +0700, Aldyth Maharsha dem...@gmail.com
wrote:
 Hi list, i'm have a problem..i'm setup two domain controller with
different
 subnet..my client login into domain with network mapping drive
 Subnet #1 : 10.1.0.0/16
 Subnet #2 : 192.168.21.0/24
 
 PDC 1 : 10.1.1.7/16
 PDC 2 : 192.168.21.3/24
 
 If i'm ping, traceroute or ssh from each client it's successfull but i
 can't
 see the network neigborhood at each domain, if i'm login from client at
 domain 1, i can't see domain 2 and if i'm login from domain 2, i can't
see
 domain 1.
 
 Any idea?, thanks before (i'm attach my smb.conf from each pdc)
 
 best regards,
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Multiple Domain and multiple subnet

2011-03-25 Thread TAKAHASHI Motonobu
From: Aldyth Maharsha dem...@gmail.com
Date: Fri, 25 Mar 2011 15:42:41 +0700

 Hi list, i'm have a problem..i'm setup two domain controller with different
 subnet..my client login into domain with network mapping drive
 Subnet #1 : 10.1.0.0/16
 Subnet #2 : 192.168.21.0/24
 
 PDC 1 : 10.1.1.7/16
 PDC 2 : 192.168.21.3/24
 
 If i'm ping, traceroute or ssh from each client it's successfull but i can't
 see the network neigborhood at each domain, if i'm login from client at
 domain 1, i can't see domain 2 and if i'm login from domain 2, i can't see
 domain 1.
 
 Any idea?, thanks before (i'm attach my smb.conf from each pdc)

Basically it's expected behavior.

In your environment, to set PDC1 and PDC2 refer to one WINS server
hosted by Samba (and leave enchanced browsing parameter default
value, yes) will solve the problems.

---
TAKAHASHI Motonobu mo...@samba.gr.jp
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Multiple Domain and multiple subnet

2011-03-25 Thread TAKAHASHI Motonobu
From: Daniel_Müller muel...@tropenklinik.de
Date: Fri, 25 Mar 2011 11:56:18 +0100

 So you have 2 wins server each for a subnet. 
 So there is: 
 remote browse sync = 'THENAMEOFTHEOTHERPDC'

As far as I examined, to use remote browse sync, both server must be
a domain master, a WINS server and must belong to same workgroup
because Master Announcement packet is used to sync.

In his environment, these 2 domains are set at different workgroup
name, so remote browse sync will not work. The description in
smb.conf(5) is not enough, I think.

 remote announce = 'Remote_network_address'/'Remote_Domain_Name' 

This does not solve the issue. remote announce annouces Samba server
itself only.

 Your wondows client should have netbios over tcp enabled and the wins. 
 Or try samba4wins in replication.

I think, it's only idea to solve.

---
TAKAHASHI Motonobu mo...@samba.gr.jp
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba