summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2004-10-26 01:37:19 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:53:03 -0500
commitbabd291eb1ef170f7ea90a12c8968b4adeebe4ce (patch)
tree4455a57d073ccc45345b7c3ab754ad1fc3271aa3 /source3
parent2d32a937252483c74c8489dd3e8be2c2d9cbd763 (diff)
downloadsamba-babd291eb1ef170f7ea90a12c8968b4adeebe4ce.tar.gz
samba-babd291eb1ef170f7ea90a12c8968b4adeebe4ce.tar.bz2
samba-babd291eb1ef170f7ea90a12c8968b4adeebe4ce.zip
r3228: Fix for bugzilla #1884 from Brett Funderburg. Use the value of
desired_access passed in to the lsa open policy routine. Use a default value that netapps and windows likes as well. (This used to be commit 9c3cffaf22c69b8c7fae12adf02aa1679de546b3)
Diffstat (limited to 'source3')
-rw-r--r--source3/python/py_lsa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/python/py_lsa.c b/source3/python/py_lsa.c
index 07191be868..aab526a489 100644
--- a/source3/python/py_lsa.c
+++ b/source3/python/py_lsa.c
@@ -55,7 +55,7 @@ static PyObject *lsa_open_policy(PyObject *self, PyObject *args,
static char *kwlist[] = { "servername", "creds", "access", NULL };
char *server, *errstr;
PyObject *creds = NULL, *result = NULL;
- uint32 desired_access = MAXIMUM_ALLOWED_ACCESS;
+ uint32 desired_access = GENERIC_EXECUTE_ACCESS;
struct cli_state *cli = NULL;
NTSTATUS ntstatus;
TALLOC_CTX *mem_ctx = NULL;
@@ -90,7 +90,7 @@ static PyObject *lsa_open_policy(PyObject *self, PyObject *args,
}
ntstatus = cli_lsa_open_policy(cli, mem_ctx, True,
- SEC_RIGHTS_MAXIMUM_ALLOWED, &hnd);
+ desired_access, &hnd);
if (!NT_STATUS_IS_OK(ntstatus)) {
PyErr_SetObject(lsa_ntstatus, py_ntstatus_tuple(ntstatus));