Re: [Samba] Re: WINS not updating after swapping network connections

2004-04-16 Thread Clint Sharp
On Thu, 2004-04-15 at 06:22, Michael Keightley wrote:
> On Thu, Apr 15, 2004 at 09:06:34AM -0400, Chad Vincent wrote:
> Could we maybe get round using WINS by using Dynamic DNS so the Netbios name
> always matches the IP address?  Then change "name resolve order" so it used DNS
> before WINS.  We use Bind 9 and ISC DHCP v3 already so it is possible to setup.
> Or am I talking rubbish?
> 
> 
> Michaek
> -- 
> Michael Keightley <[EMAIL PROTECTED]>Tel: +44 131 240 3137
> Systems Manager, Quadstone Limited,Fax: +44 131 220 4492
> 16 Chester Street, Edinburgh EH3 7RA, Scotland http://www.quadstone.com

Yes and no.  Technically that will work, however, dynamic DNS does not
offer the same information as WINS does currently in a Samba
implementation.  Since Samba is not emulating an AD domain controller,
but an NT4 domain controller, the workstations are expecting certain
information to be returned about machines (the various flags after the
names you see in WINS) as far as their capabilities are concerned.  This
is offered in WINS (also in DNS, through the use of SRV records, but
Samba does not generate these currently and I don't know how the
workstations would interact, finding the entries it would expect an AD
controller to use in DNS and then finding an NT4 domain controller
there).  If you're all on the same subnet, this is not a problem because
it can find the same information through broadcast resolution, but who's
all on the same subnet these days? :)  

The Samba3 HOWTO covers this very well under name resolution.

Clint

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


Re: [Samba] Re: WINS not updating after swapping network connections

2004-04-15 Thread Michael Keightley
On Thu, Apr 15, 2004 at 09:06:34AM -0400, Chad Vincent wrote:
> I had the exact same problem when I changed from dynamic IP to Static on 
> the server itself.  It added the new IP address AFTER the old one in 
> wins.dat, and only reported the first back to the clients.
> 
> Try shutting down Samba, deleting wins.dat (May be in either 
> /var/cache/samba/ or /var/lib/samba/ ) then starting Samba up again.  Your 
> WINS file will be rebuilt as the clients re-register their addresses.  How 
> to actually get it to change on the fly, however, is anybody's guess, as it 
> will re-write the file as-is if you delete / change it while SAMBA is 
> running.
> 
> It was suggested that it may be a corrupted file, so just deleting it and 
> letting it be re-built may fix the problem, too.
Could we maybe get round using WINS by using Dynamic DNS so the Netbios name
always matches the IP address?  Then change "name resolve order" so it used DNS
before WINS.  We use Bind 9 and ISC DHCP v3 already so it is possible to setup.
Or am I talking rubbish?


Michaek
> 
> At 12:01 PM 4/15/2004 +, you wrote:
> >From: Michael Keightley <[EMAIL PROTECTED]>
> >Precedence: list
> >Subject: [Samba] WINS not updating after swapping network connections
> >Date: Thu, 15 Apr 2004 12:54:38 +0100
> >To: [EMAIL PROTECTED]
> >Reply-To: Michael Keightley <[EMAIL PROTECTED]>
> >Message-ID: <[EMAIL PROTECTED]>
> >Content-Type: text/plain; charset=us-ascii
> >MIME-Version: 1.0
> >Message: 18
> >
> >
> >Our domain controller is running Samba 2.2.8a on Solaris 8.
> >We have XP laptops.  We swap between a builtin network card, docking port 
> >and
> >wireless card.  All of these have separate IP addresses.
> >If I say, boot up with the wireless card, then remove it and use the 
> >builtin
> >network card, the IP address in wins.dat on the server doesn't change.  It
> >still has the IP address of the wireless card.  It means you can't browse 
> >this
> >machine.  Our backup software (BackupPC) also stops working.
> >Should wins.dat not get updated when a machine changes IP address?
> >
> >Below is part of our smb.conf file:
> >
> >
> >[global]
> >  workgroup = SAMBA
> >  hosts allow = 194.80.198. 192.168.191. 192.168.198. 127.
> >  interfaces = 194.80.198.61/255.255.255.128 192.168.191.61/255.255.255.0 
> >192.168.193.61/255.255.255.0
> >  log file = /var/log/samba/%m.log
> >  load printers = yes
> >  printing = cups
> >  printcap name = cups
> >  case sensitive = no
> >  preserve case = yes
> >  short preserve case = yes
> >  domain master = yes
> >  domain logons = yes
> >  local master = yes
> >  preferred master = yes
> >  name resolve order = wins lmhosts host bcast
> >  wins support = yes
> >  os level = 65
> >  encrypt passwords = yes
> >  nis homedir = true
> >  security = user
> >  guest account = nobody
> >  homedir map = auto_home
> >  logon script = netlogon.bat
> >  logon path = \\%N\profile\%a\%U
> >  logon drive = q:
> >  socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=16384 
> >  SO_RCVBUF=16384
> >
> >
> >
> >Michael
> 
> Chad Vincent
> Owner
> RhiannonWEB
> Phone: 330-283-4681 
> 
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  http://lists.samba.org/mailman/listinfo/samba

-- 
Michael Keightley <[EMAIL PROTECTED]>Tel: +44 131 240 3137
Systems Manager, Quadstone Limited,Fax: +44 131 220 4492
16 Chester Street, Edinburgh EH3 7RA, Scotland http://www.quadstone.com
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Re: WINS not updating after swapping network connections

2004-04-15 Thread Chad Vincent
I had the exact same problem when I changed from dynamic IP to Static on 
the server itself.  It added the new IP address AFTER the old one in 
wins.dat, and only reported the first back to the clients.

Try shutting down Samba, deleting wins.dat (May be in either 
/var/cache/samba/ or /var/lib/samba/ ) then starting Samba up again.  Your 
WINS file will be rebuilt as the clients re-register their addresses.  How 
to actually get it to change on the fly, however, is anybody's guess, as it 
will re-write the file as-is if you delete / change it while SAMBA is running.

It was suggested that it may be a corrupted file, so just deleting it and 
letting it be re-built may fix the problem, too.

At 12:01 PM 4/15/2004 +, you wrote:
From: Michael Keightley <[EMAIL PROTECTED]>
Precedence: list
Subject: [Samba] WINS not updating after swapping network connections
Date: Thu, 15 Apr 2004 12:54:38 +0100
To: [EMAIL PROTECTED]
Reply-To: Michael Keightley <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=us-ascii
MIME-Version: 1.0
Message: 18
Our domain controller is running Samba 2.2.8a on Solaris 8.
We have XP laptops.  We swap between a builtin network card, docking port and
wireless card.  All of these have separate IP addresses.
If I say, boot up with the wireless card, then remove it and use the builtin
network card, the IP address in wins.dat on the server doesn't change.  It
still has the IP address of the wireless card.  It means you can't browse this
machine.  Our backup software (BackupPC) also stops working.
Should wins.dat not get updated when a machine changes IP address?
Below is part of our smb.conf file:

[global]
  workgroup = SAMBA
  hosts allow = 194.80.198. 192.168.191. 192.168.198. 127.
  interfaces = 194.80.198.61/255.255.255.128 192.168.191.61/255.255.255.0 
192.168.193.61/255.255.255.0
  log file = /var/log/samba/%m.log
  load printers = yes
  printing = cups
  printcap name = cups
  case sensitive = no
  preserve case = yes
  short preserve case = yes
  domain master = yes
  domain logons = yes
  local master = yes
  preferred master = yes
  name resolve order = wins lmhosts host bcast
  wins support = yes
  os level = 65
  encrypt passwords = yes
  nis homedir = true
  security = user
  guest account = nobody
  homedir map = auto_home
  logon script = netlogon.bat
  logon path = \\%N\profile\%a\%U
  logon drive = q:
  socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=16384 SO_RCVBUF=16384



Michael
Chad Vincent
Owner
RhiannonWEB
Phone: 330-283-4681 

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