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/utils/net_rpc.c

    r62 r124  
    382382 *              stripped
    383383 *
    384  * Main 'net_rpc_join()' (where the admain username/password is used) is
     384 * Main 'net_rpc_join()' (where the admin username/password is used) is
    385385 * in net_rpc_join.c
    386386 * Try to just change the password, but if that doesn't work, use/prompt
     
    582582        const char *acct_name;
    583583        uint32 acb_info;
    584         uint32 unknown, user_rid;
     584        uint32 acct_flags=0;
     585        uint32 user_rid;
    585586
    586587        if (argc < 1) {
     
    612613
    613614        acb_info = ACB_NORMAL;
    614         unknown = 0xe005000b; /* No idea what this is - a permission mask? */
     615        acct_flags = SAMR_GENERIC_READ | SAMR_GENERIC_WRITE |
     616                SAMR_GENERIC_EXECUTE | SAMR_STANDARD_WRITEDAC |
     617                SAMR_STANDARD_DELETE | SAMR_USER_SETPASS | SAMR_USER_GETATTR |
     618                SAMR_USER_SETATTR;
     619        DEBUG(10, ("Creating account with flags: %d\n",acct_flags));
    615620
    616621        result = rpccli_samr_create_dom_user(pipe_hnd, mem_ctx, &domain_pol,
    617                                           acct_name, acb_info, unknown,
     622                                          acct_name, acb_info, acct_flags,
    618623                                          &user_pol, &user_rid);
    619624        if (!NT_STATUS_IS_OK(result)) {
     
    53365341        char *acct_name;
    53375342        uint32 acb_info;
    5338         uint32 unknown, user_rid;
     5343        uint32 user_rid;
     5344        uint32 acct_flags=0;
    53395345
    53405346        if (argc != 2) {
     
    53705376        /* Create trusting domain's account */
    53715377        acb_info = ACB_NORMAL;
    5372         unknown = 0xe00500b0; /* No idea what this is - a permission mask?
    5373                                  mimir: yes, most probably it is */
     5378        acct_flags = SAMR_GENERIC_READ | SAMR_GENERIC_WRITE |
     5379                SAMR_GENERIC_EXECUTE | SAMR_STANDARD_WRITEDAC |
     5380                SAMR_STANDARD_DELETE | SAMR_USER_SETPASS | SAMR_USER_GETATTR |
     5381                SAMR_USER_SETATTR;
    53745382
    53755383        result = rpccli_samr_create_dom_user(pipe_hnd, mem_ctx, &domain_pol,
    5376                                           acct_name, acb_info, unknown,
     5384                                          acct_name, acb_info, acct_flags,
    53775385                                          &user_pol, &user_rid);
    53785386        if (!NT_STATUS_IS_OK(result)) {
Note: See TracChangeset for help on using the changeset viewer.