nbt: merge in LIBCLI_NDR_NETLOGON helper into NDR_NBT.
[Samba/id10ts.git] / libcli / netlogon / netlogon.h
bloba68c7fab82abfa24c7aeb2f41ff4757c06cf379e
1 /*
2 Unix SMB/CIFS implementation.
4 CLDAP server structures
6 Copyright (C) Andrew Bartlett <abartlet@samba.org> 2008
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 __LIBCLI_NETLOGON_H__
23 #define __LIBCLI_NETLOGON_H__
25 #include "librpc/gen_ndr/ndr_nbt.h"
27 #include "librpc/gen_ndr/ndr_misc.h"
28 #include "librpc/gen_ndr/ndr_security.h"
30 struct netlogon_samlogon_response
32 uint32_t ntver;
33 union {
34 struct NETLOGON_SAM_LOGON_RESPONSE_NT40 nt4;
35 struct NETLOGON_SAM_LOGON_RESPONSE nt5;
36 struct NETLOGON_SAM_LOGON_RESPONSE_EX nt5_ex;
37 } data;
41 struct nbt_netlogon_response
43 enum {NETLOGON_GET_PDC, NETLOGON_SAMLOGON, NETLOGON_RESPONSE2} response_type;
44 union {
45 struct nbt_netlogon_response_from_pdc get_pdc;
46 struct netlogon_samlogon_response samlogon;
47 struct nbt_netlogon_response2 response2;
48 } data;
51 #include "../libcli/netlogon/netlogon_proto.h"
52 #endif /* __CLDAP_SERVER_PROTO_H__ */