2 Unix SMB/CIFS implementation.
4 Copyright (C) Andrew Tridgell 1994-1998
5 Copyright (C) Richard Sharpe 2001
6 Copyright (C) John Terpstra 2001
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program. If not, see <http://www.gnu.org/licenses/>.
22 #ifndef _LIBSMB_CLIDGRAM_H_
23 #define _LIBSMB_CLIDGRAM_H_
25 #include "../libcli/netlogon/netlogon.h"
27 /* The following definitions come from libsmb/clidgram.c */
29 struct tevent_req
*nbt_getdc_send(TALLOC_CTX
*mem_ctx
,
30 struct tevent_context
*ev
,
31 struct messaging_context
*msg_ctx
,
32 const struct sockaddr_storage
*dc_addr
,
33 const char *domain_name
,
34 const struct dom_sid
*sid
,
35 const char *account_name
,
36 uint32_t account_flags
,
38 NTSTATUS
nbt_getdc_recv(struct tevent_req
*req
, TALLOC_CTX
*mem_ctx
,
39 uint32_t *nt_version
, const char **dc_name
,
40 struct netlogon_samlogon_response
**samlogon_response
);
41 NTSTATUS
nbt_getdc(struct messaging_context
*msg_ctx
,
42 uint32_t timeout_in_seconds
,
43 const struct sockaddr_storage
*dc_addr
,
44 const char *domain_name
,
45 const struct dom_sid
*sid
,
46 const char *account_name
,
47 uint32_t account_flags
,
50 uint32_t *pnt_version
,
52 struct netlogon_samlogon_response
**samlogon_response
);
54 #endif /* _LIBSMB_CLIDGRAM_H_ */