From a73c10f2fbbcb9452f404e77939b5a2d4daeba55 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Sun, 11 Feb 2001 23:13:41 +0000 Subject: [PATCH] Merge changes from HEAD. Jeremy. --- source/utils/smbcacls.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; } -- 2.11.4.GIT