r26681: Use fewer magic numbers.
authorAndrew Bartlett <abartlet@samba.org>
Mon, 7 Jan 2008 09:14:51 +0000 (03:14 -0600)
committerStefan Metzmacher <metze@samba.org>
Mon, 7 Jan 2008 03:21:02 +0000 (21:21 -0600)
Andrew Bartlett

source/cldap_server/netlogon.c

index 3493e342d63822d0a198305c0c442958af5959ba..32a71e43afb3433bae332a2b4dd4c1f507a7672f 100644 (file)
@@ -230,7 +230,7 @@ static NTSTATUS cldapd_netlogon_fill(struct cldapd_server *cldapd,
        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 @@ static NTSTATUS cldapd_netlogon_fill(struct cldapd_server *cldapd,
                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;