Move inline comment about MSV1_0 flags to IDL.
[Samba/bb.git] / source / include / rpc_netlogon.h
blob239fe0f7c695c5b66a42bffd3723628c30fef51a
1 /*
2 Unix SMB/CIFS implementation.
3 SMB parameters and setup
4 Copyright (C) Andrew Tridgell 1992-1997
5 Copyright (C) Luke Kenneth Casson Leighton 1996-1997
6 Copyright (C) Paul Ashton 1997
7 Copyright (C) Jean François Micouleau 2002
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 3 of the License, or
12 (at your option) any later version.
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
19 You should have received a copy of the GNU General Public License
20 along with this program. If not, see <http://www.gnu.org/licenses/>.
23 #ifndef _RPC_NETLOGON_H /* _RPC_NETLOGON_H */
24 #define _RPC_NETLOGON_H
26 /* Some flag values reverse engineered from NLTEST.EXE */
27 /* used in the NETLOGON_CONTROL[2] reply */
29 #define NL_CTRL_IN_SYNC 0x0000
30 #define NL_CTRL_REPL_NEEDED 0x0001
31 #define NL_CTRL_REPL_IN_PROGRESS 0x0002
32 #define NL_CTRL_FULL_SYNC 0x0004
34 #define LOGON_KRB5_FAIL_CLOCK_SKEW 0x02000000
36 #define INTERACTIVE_LOGON_TYPE 1
37 #define NET_LOGON_TYPE 2
39 /* LOCKOUT_STRING */
40 typedef struct account_lockout_string {
41 uint32 array_size;
42 uint32 offset;
43 uint32 length;
44 /* uint16 *bindata; */
45 uint64 lockout_duration;
46 uint64 reset_count;
47 uint32 bad_attempt_lockout;
48 uint32 dummy;
49 } LOCKOUT_STRING;
51 /* HDR_LOCKOUT_STRING */
52 typedef struct hdr_account_lockout_string {
53 uint16 size;
54 uint16 length;
55 uint32 buffer;
56 } HDR_LOCKOUT_STRING;
58 #define DSGETDC_VALID_FLAGS ( \
59 DS_FORCE_REDISCOVERY | \
60 DS_DIRECTORY_SERVICE_REQUIRED | \
61 DS_DIRECTORY_SERVICE_PREFERRED | \
62 DS_GC_SERVER_REQUIRED | \
63 DS_PDC_REQUIRED | \
64 DS_BACKGROUND_ONLY | \
65 DS_IP_REQUIRED | \
66 DS_KDC_REQUIRED | \
67 DS_TIMESERV_REQUIRED | \
68 DS_WRITABLE_REQUIRED | \
69 DS_GOOD_TIMESERV_PREFERRED | \
70 DS_AVOID_SELF | \
71 DS_ONLY_LDAP_NEEDED | \
72 DS_IS_FLAT_NAME | \
73 DS_IS_DNS_NAME | \
74 DS_RETURN_FLAT_NAME | \
75 DS_RETURN_DNS_NAME )
77 struct DS_DOMAIN_CONTROLLER_INFO {
78 const char *domain_controller_name;
79 const char *domain_controller_address;
80 int32 domain_controller_address_type;
81 struct GUID *domain_guid;
82 const char *domain_name;
83 const char *dns_forest_name;
84 uint32 flags;
85 const char *dc_site_name;
86 const char *client_site_name;
89 #endif /* _RPC_NETLOGON_H */