Ignore:
Timestamp:
Sep 24, 2009, 9:15:13 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update 3.2 to 3.2.14 (final)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.2.x/source/winbindd/winbindd_ads.c

    r228 r335  
    11201120        /* handle sids not resolved from cache by lsa_lookup_sids */
    11211121        if (num_nocache > 0) {
     1122                unsigned int orig_timeout;
    11221123
    11231124                status = cm_connect_lsa(domain, tmp_ctx, &cli, &lsa_policy);
     
    11261127                        goto done;
    11271128                }
     1129
     1130                /*
     1131                 * This call can take a long time
     1132                 * allow the server to time out.
     1133                 * 35 seconds should do it.
     1134                 */
     1135                orig_timeout = cli_set_timeout(cli->cli, 35000);
    11281136
    11291137                status = rpccli_lsa_lookup_sids(cli, tmp_ctx,
     
    11351143                                                &name_types_nocache);
    11361144
     1145                /* And restore our original timeout. */
     1146                cli_set_timeout(cli->cli, orig_timeout);
     1147
    11371148                if (!(NT_STATUS_IS_OK(status) ||
    11381149                      NT_STATUS_EQUAL(status, STATUS_SOME_UNMAPPED) ||
     
    11481159                                goto done;
    11491160                        }
     1161
     1162                        /*
     1163                         * This call can take a long time
     1164                         * allow the server to time out.
     1165                         * 35 seconds should do it.
     1166                         */
     1167                        orig_timeout = cli_set_timeout(cli->cli, 35000);
    11501168
    11511169                        status = rpccli_lsa_lookup_sids(cli, tmp_ctx,
     
    11561174                                                        &names_nocache,
    11571175                                                        &name_types_nocache);
     1176
     1177                        /* And restore our original timeout. */
     1178                        cli_set_timeout(cli->cli, orig_timeout);
    11581179                }
    11591180
Note: See TracChangeset for help on using the changeset viewer.