Ignore:
Timestamp:
May 12, 2014, 8:58:38 PM (11 years ago)
Author:
Silvan Scherrer
Message:

Samba 3.6: updated vendor to latest version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/source3/libnet/libnet_join.c

    r746 r860  
    851851        union samr_UserInfo user_info;
    852852        struct dcerpc_binding_handle *b = NULL;
     853        unsigned int old_timeout = 0;
    853854
    854855        struct samr_CryptPassword crypt_pwd;
     
    997998                goto done;
    998999        }
     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        }
    9991008
    10001009        if (name_types.ids[0] != SID_NAME_USER) {
     
    10621071        /* Set password on machine account - first try level 26 */
    10631072
     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
    10641079        init_samr_CryptPasswordEx(r->in.machine_password,
    10651080                                  &cli->user_session_key,
     
    10921107                                                  &result);
    10931108        }
     1109
     1110        old_timeout = rpccli_set_timeout(pipe_hnd, old_timeout);
    10941111
    10951112        if (!NT_STATUS_IS_OK(status)) {
     
    13661383        if (!NT_STATUS_IS_OK(result)) {
    13671384                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;
    13681393                goto done;
    13691394        }
Note: See TracChangeset for help on using the changeset viewer.