summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/utils/smbcacls.c6
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;
}