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/getdc.c

    r596 r745  
    2020#include "includes.h"
    2121
     22
    2223#include "librpc/gen_ndr/libnetapi.h"
    2324#include "lib/netapi/netapi.h"
    2425#include "lib/netapi/netapi_private.h"
    2526#include "lib/netapi/libnetapi.h"
    26 #include "libnet/libnet.h"
    27 #include "../librpc/gen_ndr/cli_netlogon.h"
    2827
    2928/********************************************************************
     
    4241                      struct NetGetDCName *r)
    4342{
    44         struct rpc_pipe_client *pipe_cli = NULL;
    4543        NTSTATUS status;
    4644        WERROR werr;
     45
    4746
    48         werr = libnetapi_open_pipe(ctx, r->in.server_name,
    49                                    &ndr_table_netlogon.syntax_id,
    50                                    &pipe_cli);
     47        werr = libnetapi_e(ctx, r->in.server_name,
     48                                   &ndr_table_netlogon.syntax_id,
     49                                );
    5150        if (!W_ERROR_IS_OK(werr)) {
    5251                goto done;
    5352        }
    5453
    55         status = rpccli_netr_GetDcName(pipe_cli, talloc_tos(),
     54        status = , talloc_tos(),
    5655                                       r->in.server_name,
    5756                                       r->in.domain_name,
     
    8281                         struct NetGetAnyDCName *r)
    8382{
    84         struct rpc_pipe_client *pipe_cli = NULL;
    8583        NTSTATUS status;
    8684        WERROR werr;
     85
    8786
    88         werr = libnetapi_open_pipe(ctx, r->in.server_name,
    89                                    &ndr_table_netlogon.syntax_id,
    90                                    &pipe_cli);
     87        werr = libnetapi_e(ctx, r->in.server_name,
     88                                   &ndr_table_netlogon.syntax_id,
     89                                );
    9190        if (!W_ERROR_IS_OK(werr)) {
    9291                goto done;
    9392        }
    9493
    95         status = rpccli_netr_GetAnyDCName(pipe_cli, talloc_tos(),
     94        status = , talloc_tos(),
    9695                                          r->in.server_name,
    9796                                          r->in.domain_name,
     
    9998                                          &werr);
    10099        if (!NT_STATUS_IS_OK(status)) {
     100
    101101                goto done;
    102102        }
     
    114114{
    115115        NTSTATUS status;
     116
     117
     118
     119
    116120
    117121        status = dsgetdcname(ctx,
    118                              NULL,
     122                             ,
    119123                             r->in.domain_name,
    120124                             r->in.domain_guid,
     
    139143        WERROR werr;
    140144        NTSTATUS status = NT_STATUS_DOMAIN_CONTROLLER_NOT_FOUND;
    141         struct rpc_pipe_client *pipe_cli = NULL;
     145        struct ;
    142146
    143         werr = libnetapi_open_pipe(ctx, r->in.server_name,
    144                                    &ndr_table_netlogon.syntax_id,
    145                                    &pipe_cli);
     147        werr = libnetapi_e(ctx, r->in.server_name,
     148                                   &ndr_table_netlogon.syntax_id,
     149                                );
    146150        if (!W_ERROR_IS_OK(werr)) {
    147151                goto done;
    148152        }
    149153
    150         status = rpccli_netr_DsRGetDCName(pipe_cli,
     154        status = dcerpc_netr_DsRGetDCNameEx(b,
     155                                            ctx,
     156                                            r->in.server_name,
     157                                            r->in.domain_name,
     158                                            r->in.domain_guid,
     159                                            r->in.site_name,
     160                                            r->in.flags,
     161                                            (struct netr_DsRGetDCNameInfo **)r->out.dc_info,
     162                                            &werr);
     163        if (NT_STATUS_IS_OK(status) && W_ERROR_IS_OK(werr)) {
     164                goto done;
     165        }
     166
     167        status = dcerpc_netr_DsRGetDCName(b,
    151168                                          ctx,
    152169                                          r->in.server_name,
Note: See TracChangeset for help on using the changeset viewer.