Changeset 745 for trunk/server/source3/winbindd/wb_lookupname.c
- Timestamp:
- Nov 27, 2012, 4:43:17 PM (13 years ago)
- Location:
- trunk/server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server
- Property svn:mergeinfo changed
/vendor/current merged: 581,587,591,594,597,600,615,618,740
- Property svn:mergeinfo changed
-
trunk/server/source3/winbindd/wb_lookupname.c
r414 r745 20 20 #include "includes.h" 21 21 #include "winbindd.h" 22 #include "librpc/gen_ndr/cli_wbint.h" 22 #include "librpc/gen_ndr/ndr_wbint_c.h" 23 #include "../libcli/security/security.h" 23 24 24 25 struct wb_lookupname_state { … … 69 70 } 70 71 71 subreq = rpccli_wbint_LookupName_send( 72 state, ev, domain->child.rpccli, state->dom_name, state->name, 72 subreq = dcerpc_wbint_LookupName_send( 73 state, ev, dom_child_handle(domain), 74 state->dom_name, state->name, 73 75 flags, &state->type, &state->sid); 74 76 if (tevent_req_nomem(subreq, req)) { … … 88 90 NTSTATUS status, result; 89 91 90 status = rpccli_wbint_LookupName_recv(subreq, state, &result);92 status = dcerpc_wbint_LookupName_recv(subreq, state, &result); 91 93 TALLOC_FREE(subreq); 92 if (!NT_STATUS_IS_OK(status)) { 93 tevent_req_nterror(req, status); 94 if (tevent_req_nterror(req, status)) { 94 95 return; 95 96 } … … 110 111 } 111 112 112 subreq = rpccli_wbint_LookupName_send( 113 state, state->ev, root_domain->child.rpccli, state->dom_name, 113 subreq = dcerpc_wbint_LookupName_send( 114 state, state->ev, dom_child_handle(root_domain), 115 state->dom_name, 114 116 state->name, state->flags, &state->type, &state->sid); 115 117 if (tevent_req_nomem(subreq, req)) { … … 127 129 NTSTATUS status, result; 128 130 129 status = rpccli_wbint_LookupName_recv(subreq, state, &result);131 status = dcerpc_wbint_LookupName_recv(subreq, state, &result); 130 132 TALLOC_FREE(subreq); 131 if ( !NT_STATUS_IS_OK(status)) {133 if (any_nt_status_not_ok(status, result, &status)) { 132 134 tevent_req_nterror(req, status); 133 return;134 }135 if (!NT_STATUS_IS_OK(result)) {136 tevent_req_nterror(req, result);137 135 return; 138 136 }
Note:
See TracChangeset
for help on using the changeset viewer.