NetBIOS name not being found

Matt Chapman m.chapman at student.unsw.edu.au
Thu Jan 7 06:10:14 GMT 1999


Phil Steinke wrote:

> [root at engsoc /etc]# smbpasswd
> cli_connect_serverlist: Can't resolve address for Q-ENG
> cli_connect_serverlist: Domain password server not available.
> get_member_domain_sid: unable to initialise client connection.
> Can't setup password database vectors.
> [root at engsoc /etc]# nmblookup Q-ENG
> Sending queries to 130.15.132.255
> 130.15.132.48 Q-ENG<00>
> 130.15.132.48 Q-ENG<00>

The attached patch should fix this problem.

    Matt


--
Matt Chapman
m.chapman at student.unsw.edu.au
-------------- next part --------------
diff -u utils/smbpasswd.old utils/smbpasswd.c
--- utils/smbpasswd.old	Thu Jan  7 16:55:56 1999
+++ utils/smbpasswd.c	Thu Jan  7 16:47:06 1999
@@ -574,6 +574,8 @@
 
 	codepage_initialise(lp_client_code_page());
 
+	load_interfaces();
+
 	if(!pwdb_initialise(False))
 	{
 		fprintf(stderr, "Can't setup password database vectors.\n");
diff -u libsmb/clientgen.old libsmb/clientgen.c
--- libsmb/clientgen.old	Thu Jan  7 17:00:06 1999
+++ libsmb/clientgen.c	Thu Jan  7 17:01:04 1999
@@ -2755,7 +2755,7 @@
 			continue;
 		}   
 
-		if (ismyip(dest_ip))
+		if ((lp_security() == SEC_SERVER) && (ismyip(dest_ip)))
 		{
 			DEBUG(1,("cli_connect_serverlist: Password server loop - not using password server %s\n", remote_machine));
 			continue;



More information about the samba-ntdom mailing list