Changeset 860 for vendor/current/source3/libnet
- Timestamp:
- May 12, 2014, 8:58:38 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source3/libnet/libnet_join.c
r746 r860 851 851 union samr_UserInfo user_info; 852 852 struct dcerpc_binding_handle *b = NULL; 853 unsigned int old_timeout = 0; 853 854 854 855 struct samr_CryptPassword crypt_pwd; … … 997 998 goto done; 998 999 } 1000 if (user_rids.count != 1) { 1001 status = NT_STATUS_INVALID_NETWORK_RESPONSE; 1002 goto done; 1003 } 1004 if (name_types.count != 1) { 1005 status = NT_STATUS_INVALID_NETWORK_RESPONSE; 1006 goto done; 1007 } 999 1008 1000 1009 if (name_types.ids[0] != SID_NAME_USER) { … … 1062 1071 /* Set password on machine account - first try level 26 */ 1063 1072 1073 /* 1074 * increase the timeout as password filter modules on the DC 1075 * might delay the operation for a significant amount of time 1076 */ 1077 old_timeout = rpccli_set_timeout(pipe_hnd, 600000); 1078 1064 1079 init_samr_CryptPasswordEx(r->in.machine_password, 1065 1080 &cli->user_session_key, … … 1092 1107 &result); 1093 1108 } 1109 1110 old_timeout = rpccli_set_timeout(pipe_hnd, old_timeout); 1094 1111 1095 1112 if (!NT_STATUS_IS_OK(status)) { … … 1366 1383 if (!NT_STATUS_IS_OK(result)) { 1367 1384 status = result; 1385 goto done; 1386 } 1387 if (user_rids.count != 1) { 1388 status = NT_STATUS_INVALID_NETWORK_RESPONSE; 1389 goto done; 1390 } 1391 if (name_types.count != 1) { 1392 status = NT_STATUS_INVALID_NETWORK_RESPONSE; 1368 1393 goto done; 1369 1394 }
Note:
See TracChangeset
for help on using the changeset viewer.