Changeset 618 for vendor/current/source3/winbindd
- Timestamp:
- Aug 5, 2011, 7:52:23 AM (14 years ago)
- Location:
- vendor/current/source3/winbindd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source3/winbindd/winbindd_dual_srv.c
r594 r618 374 374 375 375 status = domain->methods->rids_to_names( 376 domain, talloc_tos(), &domain->sid, r->in.rids->rids,376 domain, talloc_tos(), r->in.domain_sid, r->in.rids->rids, 377 377 r->in.rids->num_rids, &domain_name, &names, &types); 378 378 if (!NT_STATUS_IS_OK(status)) { … … 389 389 390 390 for (i=0; i<r->in.rids->num_rids; i++) { 391 sid_compose(&result[i].sid, &domain->sid, r->in.rids->rids[i]); 391 sid_compose(&result[i].sid, r->in.domain_sid, 392 r->in.rids->rids[i]); 392 393 result[i].type = types[i]; 393 394 result[i].name = talloc_move(result, &names[i]); -
vendor/current/source3/winbindd/winbindd_lookuprids.c
r594 r618 24 24 struct winbindd_lookuprids_state { 25 25 struct tevent_context *ev; 26 struct dom_sid domain_sid; 26 27 const char *domain_name; 27 28 struct wbint_RidArray rids; … … 42 43 struct winbindd_lookuprids_state *state; 43 44 struct winbindd_domain *domain; 44 struct dom_sid sid;45 45 46 46 req = tevent_req_create(mem_ctx, &state, … … 56 56 DEBUG(3, ("lookuprids (%s)\n", request->data.sid)); 57 57 58 if (!string_to_sid(&s id, request->data.sid)) {58 if (!string_to_sid(&state->domain_sid, request->data.sid)) { 59 59 DEBUG(5, ("%s not a SID\n", request->data.sid)); 60 60 tevent_req_nterror(req, NT_STATUS_INVALID_PARAMETER); … … 62 62 } 63 63 64 domain = find_lookup_domain_from_sid(&s id);64 domain = find_lookup_domain_from_sid(&state->domain_sid); 65 65 if (domain == NULL) { 66 66 DEBUG(5, ("Domain for sid %s not found\n", 67 sid_string_dbg(&s id)));67 sid_string_dbg(&state->domain_sid))); 68 68 tevent_req_nterror(req, NT_STATUS_NO_SUCH_DOMAIN); 69 69 return tevent_req_post(req, ev); … … 84 84 85 85 subreq = rpccli_wbint_LookupRids_send( 86 state, ev, domain->child.rpccli, &state-> rids,87 &state-> domain_name, &state->names);86 state, ev, domain->child.rpccli, &state->domain_sid, 87 &state->rids, &state->domain_name, &state->names); 88 88 if (tevent_req_nomem(subreq, req)) { 89 89 return tevent_req_post(req, ev);
Note:
See TracChangeset
for help on using the changeset viewer.