svn commit: samba r26681 - in branches/SAMBA_4_0/source/cldap_server: .

abartlet at samba.org abartlet at samba.org
Mon Jan 7 03:14:51 GMT 2008


Author: abartlet
Date: 2008-01-07 03:14:51 +0000 (Mon, 07 Jan 2008)
New Revision: 26681

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

Log:
Use fewer magic numbers.

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/cldap_server/netlogon.c


Changeset:
Modified: branches/SAMBA_4_0/source/cldap_server/netlogon.c
===================================================================
--- branches/SAMBA_4_0/source/cldap_server/netlogon.c	2008-01-07 00:47:01 UTC (rev 26680)
+++ branches/SAMBA_4_0/source/cldap_server/netlogon.c	2008-01-07 03:14:51 UTC (rev 26681)
@@ -230,7 +230,7 @@
 	case 5:
 	case 6:
 	case 7:
-		netlogon->logon5.type         = (user?23+2:23);
+		netlogon->logon5.type         = (user?NETLOGON_RESPONSE_FROM_PDC_USER:NETLOGON_RESPONSE_FROM_PDC2);
 		netlogon->logon5.server_type  = server_type;
 		netlogon->logon5.domain_uuid  = domain_uuid;
 		netlogon->logon5.forest       = realm;
@@ -245,7 +245,7 @@
 		netlogon->logon5.lm20_token   = 0xFFFF;
 		break;
 	default:
-		netlogon->logon13.type         = (user?23+2:23);
+		netlogon->logon13.type         = (user?NETLOGON_RESPONSE_FROM_PDC_USER:NETLOGON_RESPONSE_FROM_PDC2);
 		netlogon->logon13.server_type  = server_type;
 		netlogon->logon13.domain_uuid  = domain_uuid;
 		netlogon->logon13.forest       = realm;



More information about the samba-cvs mailing list