summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-02-11 23:13:41 +0000
committerJeremy Allison <jra@samba.org>2001-02-11 23:13:41 +0000
commita73c10f2fbbcb9452f404e77939b5a2d4daeba55 (patch)
tree4bbd4f452a4e263c9c5566b3f9a53432d8957210
parent233be92dc13c92c3a54b4851607d4babefdd9543 (diff)
downloadsamba-a73c10f2fbbcb9452f404e77939b5a2d4daeba55.tar.gz
samba-a73c10f2fbbcb9452f404e77939b5a2d4daeba55.tar.xz
samba-a73c10f2fbbcb9452f404e77939b5a2d4daeba55.zip
Merge changes from HEAD.
Jeremy.
-rw-r--r--source/utils/smbcacls.c6
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;
}