diff options
author | Tim Potter <tpot@samba.org> | 2001-01-23 17:33:35 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2001-01-23 17:33:35 +0000 |
commit | 394e17645b777be767cd1c69be3f5efe7a703d85 (patch) | |
tree | 7d7852b34996a4e762ae1af60faae1643d339ed9 | |
parent | 5a9870f22d4995ec1fc242169ffc1e85da04a3c4 (diff) | |
download | samba-394e17645b777be767cd1c69be3f5efe7a703d85.tar.gz samba-394e17645b777be767cd1c69be3f5efe7a703d85.tar.xz samba-394e17645b777be767cd1c69be3f5efe7a703d85.zip |
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.
-rw-r--r-- | source/utils/smbcacls.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/utils/smbcacls.c b/source/utils/smbcacls.c index 7600989655e..a4b14df0c9f 100644 --- a/source/utils/smbcacls.c +++ b/source/utils/smbcacls.c @@ -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; } |