From a699e9b572bc3b6684ff46d205d3175aca6dee0a Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Tue, 23 Jan 2001 17:33:35 +0000 Subject: 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) --- source3/utils/smbcacls.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source3/utils/smbcacls.c') 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; } -- cgit