Ignore:
Timestamp:
Mar 12, 2008, 9:08:18 AM (17 years ago)
Author:
Paul Smedley
Message:

Update source to 3.0.28a

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.0/source/python/py_samr.c

    r1 r124  
    464464        char *account_name;
    465465        NTSTATUS ntstatus;
    466         uint32 unknown = 0xe005000b; /* Access mask? */
     466        uint32 acct_flags = 0;
    467467        uint32 user_rid;
    468468        PyObject *result = NULL;
     
    480480        }
    481481
     482        acct_flags = SAMR_GENERIC_READ | SAMR_GENERIC_WRITE |
     483                SAMR_GENERIC_EXECUTE | SAMR_STANDARD_WRITEDAC |
     484                SAMR_STANDARD_DELETE | SAMR_USER_SETPASS | SAMR_USER_GETATTR |
     485                SAMR_USER_SETATTR;
     486        DEBUG(10, ("Creating account with flags: %d\n",acct_flags));
    482487        ntstatus = rpccli_samr_create_dom_user(
    483488                domain_hnd->cli, mem_ctx, &domain_hnd->domain_pol,
    484                 account_name, acb_info, unknown, &user_pol, &user_rid);
     489                account_name, acb_info, acct_flags, &user_pol, &user_rid);
    485490
    486491        if (!NT_STATUS_IS_OK(ntstatus)) {
Note: See TracChangeset for help on using the changeset viewer.