| 1 | /*
|
|---|
| 2 | Unix SMB/CIFS implementation.
|
|---|
| 3 |
|
|---|
| 4 | CLDAP server structures
|
|---|
| 5 |
|
|---|
| 6 | Copyright (C) Andrew Bartlett <abartlet@samba.org> 2008
|
|---|
| 7 |
|
|---|
| 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.
|
|---|
| 12 |
|
|---|
| 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.
|
|---|
| 17 |
|
|---|
| 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/>.
|
|---|
| 20 | */
|
|---|
| 21 |
|
|---|
| 22 | #ifndef __LIBCLI_NETLOGON_H__
|
|---|
| 23 | #define __LIBCLI_NETLOGON_H__
|
|---|
| 24 |
|
|---|
| 25 | #include "librpc/gen_ndr/ndr_nbt.h"
|
|---|
| 26 |
|
|---|
| 27 | #include "librpc/gen_ndr/ndr_misc.h"
|
|---|
| 28 | #include "librpc/gen_ndr/ndr_security.h"
|
|---|
| 29 | #include "librpc/gen_ndr/ndr_svcctl.h"
|
|---|
| 30 | #include "librpc/gen_ndr/ndr_samr.h"
|
|---|
| 31 |
|
|---|
| 32 | struct netlogon_samlogon_response
|
|---|
| 33 | {
|
|---|
| 34 | uint32_t ntver;
|
|---|
| 35 | union {
|
|---|
| 36 | struct NETLOGON_SAM_LOGON_RESPONSE_NT40 nt4;
|
|---|
| 37 | struct NETLOGON_SAM_LOGON_RESPONSE nt5;
|
|---|
| 38 | struct NETLOGON_SAM_LOGON_RESPONSE_EX nt5_ex;
|
|---|
| 39 | } data;
|
|---|
| 40 |
|
|---|
| 41 | };
|
|---|
| 42 |
|
|---|
| 43 | struct nbt_netlogon_response
|
|---|
| 44 | {
|
|---|
| 45 | enum {NETLOGON_GET_PDC, NETLOGON_SAMLOGON} response_type;
|
|---|
| 46 | union {
|
|---|
| 47 | struct nbt_netlogon_response_from_pdc get_pdc;
|
|---|
| 48 | struct netlogon_samlogon_response samlogon;
|
|---|
| 49 | } data;
|
|---|
| 50 | };
|
|---|
| 51 |
|
|---|
| 52 | #include "../libcli/netlogon_proto.h"
|
|---|
| 53 | #include "../libcli/ndr_netlogon_proto.h"
|
|---|
| 54 | #endif /* __CLDAP_SERVER_PROTO_H__ */
|
|---|