Changeset 599 for trunk/server/source3/rpc_client
- Timestamp:
- Jul 6, 2011, 8:21:13 PM (14 years ago)
- Location:
- trunk/server/source3/rpc_client
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/source3/rpc_client/cli_pipe.c
r590 r599 3331 3331 } 3332 3332 3333 status = open_socket_out(&addr, port, 60 , &fd);3333 status = open_socket_out(&addr, port, 60*1000, &fd); 3334 3334 if (!NT_STATUS_IS_OK(status)) { 3335 3335 goto fail; -
trunk/server/source3/rpc_client/cli_samr.c
r414 r599 159 159 struct lsa_String server, account; 160 160 161 ZERO_STRUCT(new_nt_password); 162 ZERO_STRUCT(new_lm_password); 163 ZERO_STRUCT(old_nt_hash_enc); 164 ZERO_STRUCT(old_lm_hash_enc); 165 161 166 DEBUG(10,("rpccli_samr_chng_pswd_auth_crap\n")); 162 167 … … 164 169 init_lsa_String(&account, username); 165 170 166 memcpy(&new_nt_password.data, new_nt_password_blob.data, 516); 167 memcpy(&new_lm_password.data, new_lm_password_blob.data, 516); 168 memcpy(&old_nt_hash_enc.hash, old_nt_hash_enc_blob.data, 16); 169 memcpy(&old_lm_hash_enc.hash, old_lm_hash_enc_blob.data, 16); 171 if (new_nt_password_blob.data && new_nt_password_blob.length >= 516) { 172 memcpy(&new_nt_password.data, new_nt_password_blob.data, 516); 173 } 174 if (new_lm_password_blob.data && new_lm_password_blob.length >= 516) { 175 memcpy(&new_lm_password.data, new_lm_password_blob.data, 516); 176 } 177 if (old_nt_hash_enc_blob.data && old_nt_hash_enc_blob.length >= 16) { 178 memcpy(&old_nt_hash_enc.hash, old_nt_hash_enc_blob.data, 16); 179 } 180 if (old_lm_hash_enc_blob.data && old_lm_hash_enc_blob.length >= 16) { 181 memcpy(&old_lm_hash_enc.hash, old_lm_hash_enc_blob.data, 16); 182 } 170 183 171 184 result = rpccli_samr_ChangePasswordUser2(cli, mem_ctx,
Note:
See TracChangeset
for help on using the changeset viewer.