Changeset 335 for branches/samba-3.2.x/source/winbindd/winbindd_ads.c
- Timestamp:
- Sep 24, 2009, 9:15:13 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.2.x/source/winbindd/winbindd_ads.c
r228 r335 1120 1120 /* handle sids not resolved from cache by lsa_lookup_sids */ 1121 1121 if (num_nocache > 0) { 1122 unsigned int orig_timeout; 1122 1123 1123 1124 status = cm_connect_lsa(domain, tmp_ctx, &cli, &lsa_policy); … … 1126 1127 goto done; 1127 1128 } 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); 1128 1136 1129 1137 status = rpccli_lsa_lookup_sids(cli, tmp_ctx, … … 1135 1143 &name_types_nocache); 1136 1144 1145 /* And restore our original timeout. */ 1146 cli_set_timeout(cli->cli, orig_timeout); 1147 1137 1148 if (!(NT_STATUS_IS_OK(status) || 1138 1149 NT_STATUS_EQUAL(status, STATUS_SOME_UNMAPPED) || … … 1148 1159 goto done; 1149 1160 } 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); 1150 1168 1151 1169 status = rpccli_lsa_lookup_sids(cli, tmp_ctx, … … 1156 1174 &names_nocache, 1157 1175 &name_types_nocache); 1176 1177 /* And restore our original timeout. */ 1178 cli_set_timeout(cli->cli, orig_timeout); 1158 1179 } 1159 1180
Note:
See TracChangeset
for help on using the changeset viewer.