TNG works with Win2k, fails with Win98

Patrick J. LoPresti patl at cag.lcs.mit.edu
Sun Feb 20 23:49:23 GMT 2000


patl at cag.lcs.mit.edu (Patrick J. LoPresti) writes:

> First, my Win98 machine still fails to log on the first time I try,
> but works the second and subsequent times.

I applied a patch (appended) to msrpc_netlogon.c to output the MD4 sum
of the trust account password.  Should I expect this value to change?
It does for me...

A similar patch to srv_netlogon_nt.c shows that the trust password as
seen from there does NOT change.  And when the code below prints out
the same value, I can log in; when it differs, I can't.

I am going to continue trying to track this down, but I thought I
would see if anyone on this list had any ideas for things to try.

 - Pat

RCS file: /cvsroot/samba/source/rpc_client/Attic/msrpc_netlogon.c,v
retrieving revision 1.1.2.20
diff -u10 -r1.1.2.20 msrpc_netlogon.c
--- msrpc_netlogon.c	2000/02/20 05:47:01	1.1.2.20
+++ msrpc_netlogon.c	2000/02/20 23:36:45
@@ -106,20 +107,22 @@
 		      ("domain_client_validate: could not find domain %s\n",
 		       domain));
 		return False;
 	}
 
 	if (!msrpc_lsa_query_trust_passwd("\\\\.", "$MACHINE.ACC",
 					  trust_passwd, NULL))
 	{
 		return False;
 	}
+
+        dump_data_pw ("trustpw:", trust_passwd, 16);
 
 	/*
 	 * At this point, smb_apasswd points to the lanman response to
 	 * the challenge in local_challenge, and smb_ntpasswd points to
 	 * the NT response to the challenge in local_challenge. Ship
 	 * these over the secure channel to a domain controller and
 	 * see if they were valid.
 	 */
 
 	/*


More information about the samba-ntdom mailing list