diff options
author | vorlon <vorlon@alioth.debian.org> | 2008-03-09 10:22:43 +0000 |
---|---|---|
committer | vorlon <vorlon@alioth.debian.org> | 2008-03-09 10:22:43 +0000 |
commit | 8f965abadc5783dc5df0a86f98b4fbfd5b001b52 (patch) | |
tree | ee76489b4823398625707e63a6bf51a68cd29e0f /source/python | |
parent | 868390f57c071cf3548bae532bf06b78688c3930 (diff) | |
download | samba-8f965abadc5783dc5df0a86f98b4fbfd5b001b52.tar.gz |
Load samba-3.0.28a into branches/samba/upstream.upstream/3.0.28a
git-svn-id: svn://svn.debian.org/svn/pkg-samba/branches/samba/upstream@1755 fc4039ab-9d04-0410-8cac-899223bdd6b0
Diffstat (limited to 'source/python')
-rw-r--r-- | source/python/py_samr.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/source/python/py_samr.c b/source/python/py_samr.c index fced5b3ddd..e2600bc3f6 100644 --- a/source/python/py_samr.c +++ b/source/python/py_samr.c @@ -463,7 +463,7 @@ static PyObject *samr_create_dom_user(PyObject *self, PyObject *args, static char *kwlist[] = { "account_name", "acb_info", NULL }; char *account_name; NTSTATUS ntstatus; - uint32 unknown = 0xe005000b; /* Access mask? */ + uint32 acct_flags = 0; uint32 user_rid; PyObject *result = NULL; TALLOC_CTX *mem_ctx; @@ -479,9 +479,14 @@ static PyObject *samr_create_dom_user(PyObject *self, PyObject *args, return NULL; } + acct_flags = SAMR_GENERIC_READ | SAMR_GENERIC_WRITE | + SAMR_GENERIC_EXECUTE | SAMR_STANDARD_WRITEDAC | + SAMR_STANDARD_DELETE | SAMR_USER_SETPASS | SAMR_USER_GETATTR | + SAMR_USER_SETATTR; + DEBUG(10, ("Creating account with flags: %d\n",acct_flags)); ntstatus = rpccli_samr_create_dom_user( domain_hnd->cli, mem_ctx, &domain_hnd->domain_pol, - account_name, acb_info, unknown, &user_pol, &user_rid); + account_name, acb_info, acct_flags, &user_pol, &user_rid); if (!NT_STATUS_IS_OK(ntstatus)) { PyErr_SetObject(samr_ntstatus, py_ntstatus_tuple(ntstatus)); |