Ignore:
Timestamp:
Nov 27, 2012, 4:43:17 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated trunk to 3.6.0

Location:
trunk/server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server

  • trunk/server/source3/winbindd/wb_lookupname.c

    r414 r745  
    2020#include "includes.h"
    2121#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"
    2324
    2425struct wb_lookupname_state {
     
    6970        }
    7071
    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,
    7375                flags, &state->type, &state->sid);
    7476        if (tevent_req_nomem(subreq, req)) {
     
    8890        NTSTATUS status, result;
    8991
    90         status = rpccli_wbint_LookupName_recv(subreq, state, &result);
     92        status = dcerpc_wbint_LookupName_recv(subreq, state, &result);
    9193        TALLOC_FREE(subreq);
    92         if (!NT_STATUS_IS_OK(status)) {
    93                 tevent_req_nterror(req, status);
     94        if (tevent_req_nterror(req, status)) {
    9495                return;
    9596        }
     
    110111        }
    111112
    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,
    114116                state->name, state->flags, &state->type, &state->sid);
    115117        if (tevent_req_nomem(subreq, req)) {
     
    127129        NTSTATUS status, result;
    128130
    129         status = rpccli_wbint_LookupName_recv(subreq, state, &result);
     131        status = dcerpc_wbint_LookupName_recv(subreq, state, &result);
    130132        TALLOC_FREE(subreq);
    131         if (!NT_STATUS_IS_OK(status)) {
     133        if (any_nt_status_not_ok(status, result, &status)) {
    132134                tevent_req_nterror(req, status);
    133                 return;
    134         }
    135         if (!NT_STATUS_IS_OK(result)) {
    136                 tevent_req_nterror(req, result);
    137135                return;
    138136        }
Note: See TracChangeset for help on using the changeset viewer.