summaryrefslogtreecommitdiff
path: root/source4/cldap_server
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2008-01-07 03:14:51 -0600
committerStefan Metzmacher <metze@samba.org>2008-01-06 21:21:02 -0600
commit97273d37fcdcfcb78d5b05bbafd7b2f543d01156 (patch)
tree8f6b2e285cbc0e3777503406721b5c0b38660611 /source4/cldap_server
parent654282b885bac0666e2c9add43df2dd9a6ca0c6f (diff)
downloadsamba-97273d37fcdcfcb78d5b05bbafd7b2f543d01156.tar.gz
samba-97273d37fcdcfcb78d5b05bbafd7b2f543d01156.tar.bz2
samba-97273d37fcdcfcb78d5b05bbafd7b2f543d01156.zip
r26681: Use fewer magic numbers.
Andrew Bartlett (This used to be commit 16edbe1d607390227652ee97a000da98c696c735)
Diffstat (limited to 'source4/cldap_server')
-rw-r--r--source4/cldap_server/netlogon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/cldap_server/netlogon.c b/source4/cldap_server/netlogon.c
index 3493e342d6..32a71e43af 100644
--- a/source4/cldap_server/netlogon.c
+++ b/source4/cldap_server/netlogon.c
@@ -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;