1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

Some systems don't support SEC_RIGHTS_MAXIMUM_ALLOWED for lsa_open_policy()

but NT sends 0x2000000 so we might as well do it too.
This commit is contained in:
Tim Potter 0001-01-01 00:00:00 +00:00
parent 5a9870f22d
commit 394e17645b

View File

@ -84,8 +84,12 @@ static BOOL open_policy_hnd(void)
/* Open policy handle */
if (!got_policy_hnd) {
/* Some systems don't support SEC_RIGHTS_MAXIMUM_ALLOWED,
but NT sends 0x2000000 so we might as well do it too. */
if (cli_lsa_open_policy(&lsa_cli, True,
SEC_RIGHTS_MAXIMUM_ALLOWED, &pol)
GENERIC_EXECUTE_ACCESS, &pol)
!= NT_STATUS_NOPROBLEMO) {
return False;
}