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:
parent
5a9870f22d
commit
394e17645b
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user