svn commit: samba r11440 - in branches/SAMBA_4_0/source/auth/credentials: .

abartlet at samba.org abartlet at samba.org
Tue Nov 1 13:33:06 GMT 2005


Author: abartlet
Date: 2005-11-01 13:33:05 +0000 (Tue, 01 Nov 2005)
New Revision: 11440

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=11440

Log:
Actually check the right thing for 'is this a machine account' (thanks metze).

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/auth/credentials/credentials_ntlm.c


Changeset:
Modified: branches/SAMBA_4_0/source/auth/credentials/credentials_ntlm.c
===================================================================
--- branches/SAMBA_4_0/source/auth/credentials/credentials_ntlm.c	2005-11-01 13:32:09 UTC (rev 11439)
+++ branches/SAMBA_4_0/source/auth/credentials/credentials_ntlm.c	2005-11-01 13:33:05 UTC (rev 11440)
@@ -64,7 +64,7 @@
 	}
 
 	/* Likewise if we are a machine account (avoid protocol downgrade attacks) */
-	if (cred->principal_obtained > cred->username_obtained) {
+	if (cred->machine_account) {
 		*flags = *flags & ~CLI_CRED_LANMAN_AUTH;
 	}
 



More information about the samba-cvs mailing list