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/lib/netapi/cm.c

    r590 r745  
    1919
    2020#include "includes.h"
     21#include "popt_common.h"
    2122
    2223#include "lib/netapi/netapi.h"
    2324#include "lib/netapi/netapi_private.h"
     25#include "libsmb/libsmb.h"
     26#include "rpc_client/cli_pipe.h"
    2427
    2528/********************************************************************
     
    251254        return WERR_OK;
    252255}
     256
     257/********************************************************************
     258********************************************************************/
     259
     260WERROR libnetapi_get_binding_handle(struct libnetapi_ctx *ctx,
     261                                    const char *server_name,
     262                                    const struct ndr_syntax_id *interface,
     263                                    struct dcerpc_binding_handle **binding_handle)
     264{
     265        struct rpc_pipe_client *pipe_cli;
     266        WERROR result;
     267
     268        *binding_handle = NULL;
     269
     270        result = libnetapi_open_pipe(ctx, server_name, interface, &pipe_cli);
     271        if (!W_ERROR_IS_OK(result)) {
     272                return result;
     273        }
     274
     275        *binding_handle = pipe_cli->binding_handle;
     276
     277        return WERR_OK;
     278}
Note: See TracChangeset for help on using the changeset viewer.