Re: [BackupPC-users] WINS server (nmbd) puzzle

2011-09-06 Thread Kenneth Porter
--On Monday, September 05, 2011 3:35 PM -0700 Kenneth Porter 
sh...@sewingwitch.com wrote:

 I'm setting up BackupPC to back up my Windows clients using rsync. I've
 installed cwRsync to the clients. BackupPC uses nmblookup to find the
 client's IP address given its Windows NETBIOS name.

 nmblookup finds the client by broadcast (the client responds with the
 record) but nmblookup -U 127.0.0.1 says there's no record of it. (A query
 for the server's own record finds it, so I know the WINS service is at
 least working to that degree.)

Ah, I needed to look at the man page for nmblookup closer. Whenever you use 
-U for WINS queries, you must also use -R to force recursion. (If that's 
the case, why would one ever use -U without -R?)

So if you use WINS with BackupPC, you can use nmblookup -U 
wins-server-address -R as your host lookup function. If BackupPC is 
running on the same host as nmbd, use nmblookup -U 127.0.0.1 -R.


--
Malware Security Report: Protecting Your Business, Customers, and the 
Bottom Line. Protect your business and customers by understanding the 
threat from malware and how it can impact your online business. 
http://www.accelacomm.com/jaw/sfnl/114/51427462/
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


[BackupPC-users] WINS server (nmbd) puzzle

2011-09-05 Thread Kenneth Porter
My client Windows XP boxes are failing to register with my WINS server
(running nmbd from Samba). I'm puzzled how to figure out what I'm doing
wrong.

I'm setting up BackupPC to back up my Windows clients using rsync. I've 
installed cwRsync to the clients. BackupPC uses nmblookup to find the 
client's IP address given its Windows NETBIOS name.

I'm distributing the WINS server address via DHCP and see it on the client
using ipconfig /all. I can run tcpdump on the server (filtering for this
client and the NETBIOS port) and see the register/response sequence at UDP
137:

MULTIHOMED REGISTRATION; REQUEST; UNICAST
REGISTRATION; POSITIVE; RESPONSE; UNICAST
REGISTRATION; REQUEST; UNICAST
REGISTRATION; POSITIVE; RESPONSE; UNICAST

If I signal the nmbd process with SIGHUP to make it dump its table to
nmbd.log, I don't see client in the list. I do see the server and my
Windows Active Directory server's records in the list, but no clients.

nmblookup finds the client by broadcast (the client responds with the
record) but nmblookup -U 127.0.0.1 says there's no record of it. (A query
for the server's own record finds it, so I know the WINS service is at
least working to that degree.)

So why is nmbd not remembering client records?

One thing I realized is that the Samba server is configured for one 
workgroup, and the client in question is in a different workgroup. Will 
nmbd not record records for workstations outside its workgroup?


--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free Love Thy Logs t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/