source: trunk/server/source3/lib/netapi/getdc.c@ 421

Last change on this file since 421 was 414, checked in by Herwig Bauernfeind, 16 years ago

Samba 3.5.0: Initial import

File size: 4.3 KB
Line 
1/*
2 * Unix SMB/CIFS implementation.
3 * NetApi GetDC Support
4 * Copyright (C) Guenther Deschner 2007
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, see <http://www.gnu.org/licenses/>.
18 */
19
20#include "includes.h"
21
22#include "librpc/gen_ndr/libnetapi.h"
23#include "lib/netapi/netapi.h"
24#include "lib/netapi/netapi_private.h"
25#include "lib/netapi/libnetapi.h"
26#include "libnet/libnet.h"
27#include "../librpc/gen_ndr/cli_netlogon.h"
28
29/********************************************************************
30********************************************************************/
31
32WERROR NetGetDCName_l(struct libnetapi_ctx *ctx,
33 struct NetGetDCName *r)
34{
35 LIBNETAPI_REDIRECT_TO_LOCALHOST(ctx, r, NetGetDCName);
36}
37
38/********************************************************************
39********************************************************************/
40
41WERROR NetGetDCName_r(struct libnetapi_ctx *ctx,
42 struct NetGetDCName *r)
43{