Ignore:
Timestamp:
May 26, 2009, 9:44:50 AM (17 years ago)
Author:
Herwig Bauernfeind
Message:

Update 3.2 branch to 3.2.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.2.x/source/utils/net_rpc_join.c

    r133 r228  
    147147
    148148        char *clear_trust_password = NULL;
    149         uchar pwbuf[516];
     149        ;
    150150        uchar md4_trust_password[16];
    151151        union samr_UserInfo set_info;
     
    334334        }
    335335
    336         encode_pw_buffer(pwbuf, clear_trust_password, STR_UNICODE);
    337 
    338336        /* Set password on machine account */
    339337
    340         init_samr_user_info24(&set_info.info24, pwbuf, 24);
    341 
    342         SamOEMhashBlob(set_info.info24.password.data, 516,
    343                        &cli->user_session_key);
     338        init_samr_CryptPassword(clear_trust_password,
     339                                &cli->user_session_key,
     340                                &crypt_pwd);
     341
     342        init_samr_user_info24(&set_info.info24, &crypt_pwd,
     343                              PASS_DONT_CHANGE_AT_NEXT_LOGON);
    344344
    345345        CHECK_RPC_ERR(rpccli_samr_SetUserInfo2(pipe_hnd, mem_ctx,
Note: See TracChangeset for help on using the changeset viewer.