svn commit: samba r3228 - branches/SAMBA_3_0/source/python
trunk/source/python
tpot at samba.org
tpot at samba.org
Tue Oct 26 01:37:19 GMT 2004
Author: tpot
Date: 2004-10-26 01:37:19 +0000 (Tue, 26 Oct 2004)
New Revision: 3228
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/&rev=3228&nolog=1
Log:
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.
Modified:
branches/SAMBA_3_0/source/python/py_lsa.c
trunk/source/python/py_lsa.c
Changeset:
Modified: branches/SAMBA_3_0/source/python/py_lsa.c
===================================================================
--- branches/SAMBA_3_0/source/python/py_lsa.c 2004-10-26 00:59:06 UTC (rev 3227)
+++ branches/SAMBA_3_0/source/python/py_lsa.c 2004-10-26 01:37:19 UTC (rev 3228)
@@ -55,7 +55,7 @@
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 @@
}
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));
Modified: trunk/source/python/py_lsa.c
===================================================================
--- trunk/source/python/py_lsa.c 2004-10-26 00:59:06 UTC (rev 3227)
+++ trunk/source/python/py_lsa.c 2004-10-26 01:37:19 UTC (rev 3228)
@@ -55,7 +55,7 @@
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 @@
}
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));
More information about the samba-cvs
mailing list