I'd like my Samba server to be a Domain Master Browser for a
workgroup (let's call it 'ENGINEER').
I set it up according to BROWSING.txt, but yet Windows NT/95 PCs on other
subnets are unable to browse and see computers on this subnet
(even if those PCs are also in the same workgroup).
It appears that the Samba is not acting as the Domain Master Browser
... at least as far as I can tell... and this is where I need
help in verification of my setup.
192.207.166.161 (aka lorax) is the IP address of my samba server.
Below is the output of nmblookup with debug level of 5.
Notice the [slightly misspelled] warning:
Warning: inconsistant interface 192.207.166.161
After looking at this code in nmblookup.c/interface.c, I am convinced this
is because of a minor bug in the code where the network mask is passed
in as 0.0.0.0
So, I don't think that has anything to do with my problem...
which again is that PCs in the same workgroup on other subnets
don't see PCs on this subnet.
There is no NT domain named the same as the workgroup. There is an
NT server acting as a WINS server (199.170.224.6 as specified
as the 'wins server').
Anyone have any ideas? Do I need to have the WINS server be the
domain master browser instead of Samba (BROWSING.txt seems to
clearly indicate that Samba can be the Domain Master Browser).
% nmblookup -d 5 -B lorax __SAMBA__
Initialising global parameters
Processing configuration file "/usr/local/samba/lib/smb.conf"
Processing section "[global]"
doing parameter browseable = yes
doing parameter domain logons = yes
doing parameter guest account = nobody
doing parameter load printers = yes
doing parameter logon script = hi.bat "S: %S" "P: %P"
"u: %u" "g: %g" "U: %U" "G: %G" "H:
%H" "v: %v" "h: %h" "m: %m" "L: %L"
"M: %M" "d: %d" "a: %a" "I: %I" "T:
%T"
doing parameter lpq command = /usr/ucb/lpq -P%p
doing parameter print command = /usr/ucb/lpr -P%p %s;/bin/rm -f %s
doing parameter printcap name = /usr/local/smb/printcap
doing parameter printing = sysv
doing parameter security = user
doing parameter smbrun = /usr/local/samba/bin/smbrun
doing parameter username map = /usr/local/smb/user.map
doing parameter workgroup = ENGINEER
doing parameter wins support = no
doing parameter wins server = 199.170.224.6
doing parameter domain master = yes
doing parameter local master = yes
doing parameter preferred master = yes
doing parameter os level = 2
doing parameter log file = /var/adm/log/log.mMuUhLv.%m,%M,%u,%U,%h,%L,%v,
doing parameter lock directory = /var/spool/samba/locks
doing parameter share modes = yes
pm_process() returned Yes
adding IPC service
Warning: inconsistant interface 192.207.166.161
Added interface ip=192.207.166.161 bcast=192.207.166.161 nmask=0.0.0.0
bind succeeded on port 0
Socket opened.
Sending queries to 192.207.166.161
11/24/97 18:30:01 sending a packet of len 50 to (192.207.166.161) on port 137
11/24/97 18:30:01 received a packet of len 62 from (192.207.166.161) port 137
nmb packet from 192.207.166.161(137) header: id=30452 opcode=Query(0)
response=Yes
header: flags: bcast=No rec_avail=No rec_des=Yes trunc=No auth=Yes
header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0
answers: nmb_name=__SAMBA__(0) rr_type=32 rr_class=1 ttl=14400
answers 0 char D..... hex 4400C0CFA6A1
Got a positive name query response from 192.207.166.161 (192.207.166.161)
192.207.166.161 __SAMBA__
On Tue, 25 Nov 1997 10:40:01 +1100, you wrote:>I'd like my Samba server to be a Domain Master Browser for a > workgroup (let's call it 'ENGINEER'). > >I set it up according to BROWSING.txt, but yet Windows NT/95 PCs on other > subnets are unable to browse and see computers on this subnet > (even if those PCs are also in the same workgroup). > >It appears that the Samba is not acting as the Domain Master Browser > ... at least as far as I can tell... and this is where I need > help in verification of my setup. > >192.207.166.161 (aka lorax) is the IP address of my samba server. > >Below is the output of nmblookup with debug level of 5. >Notice the [slightly misspelled] warning: >Warning: inconsistant interface 192.207.166.161 >After looking at this code in nmblookup.c/interface.c, I am convinced this > is because of a minor bug in the code where the network mask is passed > in as 0.0.0.0 >So, I don't think that has anything to do with my problem... > which again is that PCs in the same workgroup on other subnets > don't see PCs on this subnet. >There is no NT domain named the same as the workgroup. There is an > NT server acting as a WINS server (199.170.224.6 as specified > as the 'wins server').Are all the PC's pointing to this server too? This is always a good thing to setup> >Anyone have any ideas? Do I need to have the WINS server be the > domain master browser instead of Samba (BROWSING.txt seems to > clearly indicate that Samba can be the Domain Master Browser). > >% nmblookup -d 5 -B lorax __SAMBA__ >Initialising global parameters >Processing configuration file "/usr/local/samba/lib/smb.conf" >Processing section "[global]" >doing parameter browseable = yes >doing parameter domain logons = yes >doing parameter guest account = nobody >doing parameter load printers = yes >doing parameter logon script = hi.bat "S: %S" "P: %P" "u: %u" "g: %g" "U: %U" "G: %G" "H: %H" "v: %v" "h: %h" "m: %m" "L: %L" "M: %M" "d: %d" "a: %a" "I: %I" "T: %T" >doing parameter lpq command = /usr/ucb/lpq -P%p >doing parameter print command = /usr/ucb/lpr -P%p %s;/bin/rm -f %s >doing parameter printcap name = /usr/local/smb/printcap >doing parameter printing = sysv >doing parameter security = user >doing parameter smbrun = /usr/local/samba/bin/smbrun >doing parameter username map = /usr/local/smb/user.map >doing parameter workgroup = ENGINEER >doing parameter wins support = no >doing parameter wins server = 199.170.224.6 >doing parameter domain master = yes >doing parameter local master = yes >doing parameter preferred master = yes >doing parameter os level = 2You'll want to crank this up a bit, if you don't ever want another machine to overrule yours as browser then set this to 255, somewhere around 70 should do, putting it well above the NT machine it's talking to (which is somewhere in the 30's if I recall correctly)>doing parameter log file = /var/adm/log/log.mMuUhLv.%m,%M,%u,%U,%h,%L,%v, >doing parameter lock directory = /var/spool/samba/locks >doing parameter share modes = yes >pm_process() returned Yes >adding IPC service >Warning: inconsistant interface 192.207.166.161 >Added interface ip=192.207.166.161 bcast=192.207.166.161 nmask=0.0.0.0 >bind succeeded on port 0 >Socket opened. >Sending queries to 192.207.166.161 >11/24/97 18:30:01 sending a packet of len 50 to (192.207.166.161) on port 137 >11/24/97 18:30:01 received a packet of len 62 from (192.207.166.161) port 137 >nmb packet from 192.207.166.161(137) header: id=30452 opcode=Query(0) response=Yes > header: flags: bcast=No rec_avail=No rec_des=Yes trunc=No auth=Yes > header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0 > answers: nmb_name=__SAMBA__(0) rr_type=32 rr_class=1 ttl=14400 > answers 0 char D..... hex 4400C0CFA6A1 >Got a positive name query response from 192.207.166.161 (192.207.166.161) >192.207.166.161 __SAMBA__
If my samba server is NOT the domain or local master browser even though
I am trying to set it up that way, then which machine on the net is?
How do I find out?
I'd like my Samba server (currently running 1.9.17p4) to be a Domain
Master Browser for a workgroup (let's call it 'ENGINEER').
I set it up according to BROWSING.txt, but yet Windows NT/95 PCs on other
subnets are unable to browse and see computers on this subnet
(even if those PCs are also in the same workgroup).
Hmmm... why not? What could cause this?
It appears that the Samba is not acting as the Domain Master Browser
... at least as far as I can tell... and this is where I need
help in verification of my setup. Maybe it's just that there
is already a domain or local master browser selected when
I start Samba. If I give Samba a high 'os level', should it
immediately take over as a master browser or does it wait
until a current master browser gives that up?
192.207.166.161 (aka lorax) is the IP address of my samba server.
Below is the output of nmblookup with debug level of 5.
Notice the [slightly misspelled] warning:
Warning: inconsistant interface 192.207.166.161
After looking at this code in nmblookup.c/interface.c, I am convinced this
is because of a minor bug in the code where the network mask is passed
in as 0.0.0.0
So, I don't think that has anything to do with my problem...
which again is that PCs in the same workgroup on other subnets
don't see PCs on this subnet.
There is no NT domain named the same as the workgroup. There is an
NT server acting as a WINS server (199.170.224.6 as specified
as the 'wins server').
I've tried raising the os level to 33 also... that did not give different
results.
Anyone have any ideas? Do I need to have the WINS server be the
domain master browser instead of Samba (BROWSING.txt seems to
clearly indicate that Samba can be the Domain Master Browser).
notice that nbtstat on a Win NT machine does not mention my samba machine as
a master browser...
H:\tmp\tmp>nbtstat -A 192.207.166.161
NetBIOS Remote Machine Name Table
Name Type Status
---------------------------------------------
LORAX <00> UNIQUE Registered
LORAX <03> UNIQUE Registered
LORAX <20> UNIQUE Registered
ENGINEER <00> GROUP Registered
ENGINEER <1B> UNIQUE Registered
ENGINEER <1C> GROUP Registered
ENGINEER <1E> GROUP Registered
MAC Address = 00-00-00-00-00-00
% nmblookup -d 5 -B lorax __SAMBA__
Initialising global parameters
Processing configuration file "/usr/local/samba/lib/smb.conf"
Processing section "[global]"
doing parameter browseable = yes
doing parameter domain logons = yes
doing parameter guest account = nobody
doing parameter load printers = yes
doing parameter logon script = hi.bat "S: %S" "P: %P"
"u: %u" "g: %g" "U: %U" "G: %G" "H:
%H" "v: %v" "h: %h" "m: %m" "L: %L"
"M: %M" "d: %d" "a: %a" "I: %I" "T:
%T"
doing parameter lpq command = /usr/ucb/lpq -P%p
doing parameter print command = /usr/ucb/lpr -P%p %s;/bin/rm -f %s
doing parameter printcap name = /usr/local/smb/printcap
doing parameter printing = sysv
doing parameter security = user
doing parameter smbrun = /usr/local/samba/bin/smbrun
doing parameter username map = /usr/local/smb/user.map
doing parameter workgroup = ENGINEER
doing parameter wins support = no
doing parameter wins server = 199.170.224.6
doing parameter domain master = yes
doing parameter local master = yes
doing parameter preferred master = yes
doing parameter os level = 2
doing parameter log file = /var/adm/log/log.mMuUhLv.%m,%M,%u,%U,%h,%L,%v,
doing parameter lock directory = /var/spool/samba/locks
doing parameter share modes = yes
pm_process() returned Yes
adding IPC service
Warning: inconsistant interface 192.207.166.161
Added interface ip=192.207.166.161 bcast=192.207.166.161 nmask=0.0.0.0
bind succeeded on port 0
Socket opened.
Sending queries to 192.207.166.161
11/24/97 18:30:01 sending a packet of len 50 to (192.207.166.161) on port 137
11/24/97 18:30:01 received a packet of len 62 from (192.207.166.161) port 137
nmb packet from 192.207.166.161(137) header: id=30452 opcode=Query(0)
response=Yes
header: flags: bcast=No rec_avail=No rec_des=Yes trunc=No auth=Yes
header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0
answers: nmb_name=__SAMBA__(0) rr_type=32 rr_class=1 ttl=14400
answers 0 char D..... hex 4400C0CFA6A1
Got a positive name query response from 192.207.166.161 (192.207.166.161)
192.207.166.161 __SAMBA__
Hi
I have Samba 1.9.19-prealpha running as a PDC on a Solaris 2.5.1
machine FISHER. My log.nmb file is filling up with messages :
process_local_master_announce: Server PCPEARSON at IP 129.215.168.205 is
announcing itself as a local master browser for workgroup BIOSSTEST and
we think we are master. Forcing election.
1998/07/22 14:09:32 ***** Samba name server FISHER has stopped being a
local master browser for workgroup BIOSSTEST on subnet 129.215.168.200
*****
1998/07/22 14:09:56 ***** Samba name server FISHER is now a local
master browser for workgroup BIOSSTEST on subnet 129.215.168.200 *****
BROWSING.TXT says :
When samba is the domain master and the master browser it will listen
for master announcements (made roughly every twelve minutes) from local
master browsers on other subnets and then contact them to synchronise
browse lists.
PCPEARSON is an NT Workstation on the same subnet. Is this expected
behaviour ? If not how do I prevent it ? smb.conf global section is
appended.
Also when I start up nmbd, log.nmb shows :
1998/07/02 17:55:39 ***** Samba server FISHER is now a domain master
browser for workgroup BIOSSTEST on subnet UNICAST_SUBNET *****
..
..
1998/07/02 17:55:47 ***** Samba server FISHER is now a domain master
browser for workgroup BIOSSTEST on subnet 129.215.168.200 *****
What is this UNICAST_SUBNET ?
Hope someone out there can help.
Janet
***************************************************************************
Janet Dickson |
http://www.bioss.sari.ac.uk/~janet
Biomathematics and Statistics Scotland | email: janet@bioss.sari.ac.uk
The King's Buildings, Mayfield Rd | Telephone: +44 (0) 131 650 4888
Edinburgh EH9 3JZ, Scotland, UK. | Fax: +44 (0) 131 650 4901
***************************************************************************
[global]
server string = BioSS Samba test Server
workgroup = BIOSSTEST
comment = This is BioSS Samba test server
guest account = ftp
debug level = 1
lock directory = /tmp/samba
hosts allow = @sass-pcs, @sass-suns, 127.0.0.1
password level = 4
printing = sysv
printcap name = /usr/local/samba/lib/printcap
security = user
log file = /usr/local/samba/var/log.%m
include = /usr/local/samba/lib/smb.conf.%m
encrypt passwords = yes
; DOMAIN STUFF
domain master = yes
local master = yes
preferred master = yes
os level = 65
; WINS _SERVER_
wins support = yes
; SAMBA NT PDC and NT DOMAIN LOGON STUFF.
domain sid = s-1-5-21-123-456-789
domain logons = yes
domain admin users = janet
logon script = %m.bat
logon drive = f: