Changeset 228 for branches/samba-3.2.x/source/utils/net_rpc_join.c
- Timestamp:
- May 26, 2009, 9:44:50 AM (17 years ago)
- File:
-
- 1 edited
-
branches/samba-3.2.x/source/utils/net_rpc_join.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.2.x/source/utils/net_rpc_join.c
r133 r228 147 147 148 148 char *clear_trust_password = NULL; 149 uchar pwbuf[516];149 ; 150 150 uchar md4_trust_password[16]; 151 151 union samr_UserInfo set_info; … … 334 334 } 335 335 336 encode_pw_buffer(pwbuf, clear_trust_password, STR_UNICODE);337 338 336 /* Set password on machine account */ 339 337 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); 344 344 345 345 CHECK_RPC_ERR(rpccli_samr_SetUserInfo2(pipe_hnd, mem_ctx,
Note:
See TracChangeset
for help on using the changeset viewer.
