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 | a699e9b572bc3b6684ff46d205d3175aca6dee0a (patch) | |
tree | 22fc11aef7563252cbc3a4e878e26e2f484033ce | |
parent | be09d25902446451194fd1f01edfe633d05247e7 (diff) | |
download | samba-a699e9b572bc3b6684ff46d205d3175aca6dee0a.tar.gz samba-a699e9b572bc3b6684ff46d205d3175aca6dee0a.tar.bz2 samba-a699e9b572bc3b6684ff46d205d3175aca6dee0a.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.
(This used to be commit 394e17645b777be767cd1c69be3f5efe7a703d85)
-rw-r--r-- | source3/utils/smbcacls.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/utils/smbcacls.c b/source3/utils/smbcacls.c index 7600989655..a4b14df0c9 100644 --- a/source3/utils/smbcacls.c +++ b/source3/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; } |