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/rpcclient/cmd_test.c

    r414 r745  
    2121#include "includes.h"
    2222#include "rpcclient.h"
    23 #include "../librpc/gen_ndr/cli_lsa.h"
     23#include "../librpc/gen_ndr/ndr_lsa_c.h"
     24#include "rpc_client/cli_lsarpc.h"
     25#include "../librpc/gen_ndr/ndr_samr.h"
     26#include "../librpc/gen_ndr/winreg.h"
    2427
    2528static NTSTATUS cmd_testme(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
     
    2730{
    2831        struct rpc_pipe_client *lsa_pipe = NULL, *samr_pipe = NULL;
    29         NTSTATUS status = NT_STATUS_UNSUCCESSFUL;
     32        NTSTATUS status = NT_STATUS_UNSUCCESSFUL, result;
    3033        struct policy_handle pol;
     34        struct dcerpc_binding_handle *b;
    3135
    3236        d_printf("testme\n");
     
    4650        }
    4751
     52        b = lsa_pipe->binding_handle;
     53
    4854        status = rpccli_lsa_open_policy(lsa_pipe, mem_ctx, False,
    4955                                        KEY_QUERY_VALUE, &pol);
     
    5258                goto done;
    5359
    54         status = rpccli_lsa_Close(lsa_pipe, mem_ctx, &pol);
     60        status = dcerpc_lsa_Close(b, mem_ctx, &pol, &result);
    5561
    5662        if (!NT_STATUS_IS_OK(status))
    5763                goto done;
     64        if (!NT_STATUS_IS_OK(result)) {
     65                status = result;
     66                goto done;
     67        }
    5868
    5969 done:
Note: See TracChangeset for help on using the changeset viewer.