Changeset 751 for trunk/server/source3/winbindd/winbindd_ads.c
- Timestamp:
- Nov 29, 2012, 1:59:04 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/source3/winbindd/winbindd_ads.c
r745 r751 189 189 190 190 rc = ads_search_retry(ads, &res, "(objectCategory=user)", attrs); 191 if (!ADS_ERR_OK(rc) || !res) {191 if (!ADS_ERR_OK(rc)) { 192 192 DEBUG(1,("query_user_list ads_search: %s\n", ads_errstr(rc))); 193 status = ads_ntstatus(rc); 194 } else if (!res) { 195 DEBUG(1,("query_user_list ads_search returned NULL res\n")); 196 193 197 goto done; 194 198 } … … 341 345 342 346 rc = ads_search_retry(ads, &res, filter, attrs); 343 if (!ADS_ERR_OK(rc) || !res) { 347 if (!ADS_ERR_OK(rc)) { 348 status = ads_ntstatus(rc); 344 349 DEBUG(1,("enum_dom_groups ads_search: %s\n", ads_errstr(rc))); 350 goto done; 351 } else if (!res) { 352 DEBUG(1,("enum_dom_groups ads_search returned NULL res\n")); 345 353 goto done; 346 354 } … … 551 559 rc = ads_search_retry(ads, &msg, ldap_exp, attrs); 552 560 SAFE_FREE(ldap_exp); 553 if (!ADS_ERR_OK(rc) || !msg) {561 if (!ADS_ERR_OK(rc)) { 554 562 DEBUG(1,("query_user(sid=%s) ads_search: %s\n", 555 563 sid_string_dbg(sid), ads_errstr(rc))); 556 564 return ads_ntstatus(rc); 565 } else if (!msg) { 566 DEBUG(1,("query_user(sid=%s) ads_search returned NULL res\n", 567 sid_string_dbg(sid))); 568 return NT_STATUS_INTERNAL_ERROR; 557 569 } 558 570 … … 663 675 rc = ads_search_retry(ads, &res, ldap_exp, group_attrs); 664 676 665 if (!ADS_ERR_OK(rc) || !res) {677 if (!ADS_ERR_OK(rc)) { 666 678 DEBUG(1,("lookup_usergroups ads_search member=%s: %s\n", user_dn, ads_errstr(rc))); 667 679 return ads_ntstatus(rc); 668 } 680 } else if (!res) { 681 DEBUG(1,("lookup_usergroups ads_search returned NULL res\n")); 682 return NT_STATUS_INTERNAL_ERROR; 683 } 684 669 685 670 686 count = ads_count_replies(ads, res);
Note:
See TracChangeset
for help on using the changeset viewer.