Ignore:
Timestamp:
Jul 2, 2011, 3:35:33 PM (14 years ago)
Author:
Herwig Bauernfeind
Message:

Samba 3.5: Update trunk to 3.5.8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/source3/winbindd/winbindd_rpc.c

    r414 r596  
    8585                                                      &returned_size,
    8686                                                      &disp_info);
     87
     88                if (!NT_STATUS_IS_OK(result)) {
     89                        if (!NT_STATUS_EQUAL(result, STATUS_MORE_ENTRIES)) {
     90                                return result;
     91                        }
     92                }
     93
    8794                num_dom_users = disp_info.info1.count;
    8895                start_idx += disp_info.info1.count;
     
    12311238        rpccli_set_timeout(cli, orig_timeout);
    12321239
     1240        if (NT_STATUS_V(status) == DCERPC_FAULT_ACCESS_DENIED ||
     1241            NT_STATUS_V(status) == DCERPC_FAULT_SEC_PKG_ERROR) {
     1242                /*
     1243                 * This can happen if the schannel key is not
     1244                 * valid anymore, we need to invalidate the
     1245                 * all connections to the dc and reestablish
     1246                 * a netlogon connection first.
     1247                 */
     1248                invalidate_cm_connection(&domain->conn);
     1249                status = NT_STATUS_ACCESS_DENIED;
     1250        }
     1251
    12331252        if (!NT_STATUS_IS_OK(status)) {
    12341253                return status;
     
    12971316        /* And restore our original timeout. */
    12981317        rpccli_set_timeout(cli, orig_timeout);
     1318
     1319        if (NT_STATUS_V(status) == DCERPC_FAULT_ACCESS_DENIED ||
     1320            NT_STATUS_V(status) == DCERPC_FAULT_SEC_PKG_ERROR) {
     1321                /*
     1322                 * This can happen if the schannel key is not
     1323                 * valid anymore, we need to invalidate the
     1324                 * all connections to the dc and reestablish
     1325                 * a netlogon connection first.
     1326                 */
     1327                invalidate_cm_connection(&domain->conn);
     1328                status = NT_STATUS_ACCESS_DENIED;
     1329        }
    12991330
    13001331        if (!NT_STATUS_IS_OK(status)) {
Note: See TracChangeset for help on using the changeset viewer.