"smbclient" does not resolve using WINS

David Collier-Brown davecb at canada.sun.com
Mon May 1 13:01:04 GMT 2000


Steffen Moser wrote:
> So after doing more tests I found the mis-configuration. ;-)

	Which we could have disgnosed in loadparm.c...
	Ok, draft amendment for my proposed update of
	loadparm.c (;-))

   /* Check for 127.0.0.1 or localhosts in interfaces and hosts allow.
*/
   /* Leaving this out can mess up swat, smbclient, wins, etc. */
   if (strstr("127.0.0.1",Globals.szInterfaces) == 0
     && strstr("localhost",Globals.szInterfaces) == 0) {
     if (Globals.bBindInterfacesOnly == True) {
        DEBUG(0,("WARNING: interfaces string does not contain
\"localhost\" "
           "or 127.0.0.1, and bind interfaces only == True.\n"
           "This will cause WINS and SWAT failures.\n"));
     }
        DEBUG(0,("NOTICE, interfaces string does not contain
\"localhost\" "
           "or 127.0.0.1.\n This may cause WINS or SWAT failures
unless"
           "some other virtual server has 127.0.0.1 bound\n"));
     }

--dave
-- 
David Collier-Brown,  | Always do right. This will gratify some people
185 Ellerslie Ave.,   | and astonish the rest.        -- Mark Twain
Willowdale, Ontario   | //www.oreilly.com/catalog/samba/author.html
Work: (905) 415-2849 Home: (416) 223-8968 Email: davecb at canada.sun.com


More information about the samba-technical mailing list