Changeset 222 for branches/samba-3.3.x/source/passdb
- Timestamp:
- May 24, 2009, 7:45:16 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.3.x/source/passdb/lookup_sid.c
r206 r222 1309 1309 /* Not in cache. Ask winbindd. */ 1310 1310 if (!winbind_uid_to_sid(psid, uid)) { 1311 if (!winbind_ping()) { 1312 legacy_uid_to_sid(psid, uid); 1313 return; 1314 } 1315 1316 DEBUG(5, ("uid_to_sid: winbind failed to find a sid for uid %u\n", 1317 uid)); 1311 /* 1312 * We shouldn't return the NULL SID 1313 * here if winbind was running and 1314 * couldn't map, as winbind will have 1315 * added a negative entry that will 1316 * cause us to go though the 1317 * legacy_uid_to_sid() 1318 * function anyway in the case above 1319 * the next time we ask. 1320 */ 1321 DEBUG(5, ("uid_to_sid: winbind failed to find a sid " 1322 "for uid %u\n", uid)); 1323 1324 legacy_uid_to_sid(psid, uid); 1318 1325 return; 1319 1326 } … … 1355 1362 /* Not in cache. Ask winbindd. */ 1356 1363 if (!winbind_gid_to_sid(psid, gid)) { 1357 if (!winbind_ping()) { 1358 legacy_gid_to_sid(psid, gid); 1359 return; 1360 } 1361 1362 DEBUG(5, ("gid_to_sid: winbind failed to find a sid for gid %u\n", 1363 gid)); 1364 /* 1365 * We shouldn't return the NULL SID 1366 * here if winbind was running and 1367 * couldn't map, as winbind will have 1368 * added a negative entry that will 1369 * cause us to go though the 1370 * legacy_gid_to_sid() 1371 * function anyway in the case above 1372 * the next time we ask. 1373 */ 1374 DEBUG(5, ("gid_to_sid: winbind failed to find a sid " 1375 "for gid %u\n", gid)); 1376 1377 legacy_gid_to_sid(psid, gid); 1364 1378 return; 1365 1379 }
Note:
See TracChangeset
for help on using the changeset viewer.