Skip to content

Commit

Permalink
s4-cldap/netlogon: Match Windows 2012R2 and return NETLOGON_NT_VERSIO…
Browse files Browse the repository at this point in the history
…N_5 when version unspecified

The previous patch set this incorrectly to NETLOGON_NT_VERSION_1

Signed-off-by: Andrew Bartlett <[email protected]>
Reviewed-by: Douglas Bagnall <[email protected]>
  • Loading branch information
abartlet committed Jul 27, 2017
1 parent 88db634 commit 0554bc2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source4/dsdb/samdb/ldb_modules/netlogon.c
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ NTSTATUS parse_netlogon_request(struct ldb_parse_tree *tree,
*domain_guid = NULL;
*domain_sid = NULL;
*acct_control = -1;
*version = 0;
*version = NETLOGON_NT_VERSION_5;

if (tree->operation != LDB_OP_AND) goto failed;

Expand Down
2 changes: 1 addition & 1 deletion source4/torture/ldap/netlogon.c
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ static bool test_netlogon_huawei(struct torture_context *tctx,
tctx,
&n1);
CHECK_STATUS(status, NT_STATUS_OK);
CHECK_VAL(n1.ntver, NETLOGON_NT_VERSION_1);
CHECK_VAL(n1.ntver, NETLOGON_NT_VERSION_5);

return true;
}
Expand Down

0 comments on commit 0554bc2

Please sign in to comment.