Print this page
1575 untangle libmlrpc ... (smbsrv)
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/common/smbsrv/ndl/dssetup.ndl
+++ new/usr/src/uts/common/smbsrv/ndl/dssetup.ndl
1 1 /*
2 2 * CDDL HEADER START
3 3 *
4 4 * The contents of this file are subject to the terms of the
5 5 * Common Development and Distribution License (the "License").
6 6 * You may not use this file except in compliance with the License.
7 7 *
8 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 * or http://www.opensolaris.org/os/licensing.
10 10 * See the License for the specific language governing permissions
11 11 * and limitations under the License.
12 12 *
13 13 * When distributing Covered Code, include this CDDL HEADER in each
↓ open down ↓ |
13 lines elided |
↑ open up ↑ |
14 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 * If applicable, add the following below this CDDL HEADER, with the
16 16 * fields enclosed by brackets "[]" replaced with your own identifying
17 17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 18 *
19 19 * CDDL HEADER END
20 20 */
21 21 /*
22 22 * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
23 23 * Use is subject to license terms.
24 + *
25 + * Copyright 2013 Nexenta Systems, Inc. All rights reserved.
24 26 */
25 27
26 28 #ifndef _DSSETUP_NDL_
27 29 #define _DSSETUP_NDL_
28 30
29 31 /*
30 32 * Active Directory Service Setup
31 33 *
32 34 * Originally this interface contained a number of operations, as listed
33 35 * below, but due to a buffer overflow security issue, all operations
34 36 * except DsRoleGetPrimaryDomainInfo have been deprecated (MS04-011).
35 37 */
36 38
37 -#include "ndrtypes.ndl"
39 +#include <libmlrpc/ndrtypes.ndl>
38 40
39 41
40 42 #define DSSETUP_OPNUM_DsRoleGetPrimaryDomainInfo 0x00
41 43 #define DSSETUP_OPNUM_DsRoleDnsNameToFlatName 0x01
42 44 #define DSSETUP_OPNUM_DsRoleDcAsDc 0x02
43 45 #define DSSETUP_OPNUM_DsRoleDcAsReplica 0x03
44 46 #define DSSETUP_OPNUM_DsRoleDemoteDc 0x04
45 47 #define DSSETUP_OPNUM_DsRoleGetDcOperationProgress 0x05
46 48 #define DSSETUP_OPNUM_DsRoleGetDcOperationResults 0x06
47 49 #define DSSETUP_OPNUM_DsRoleCancel 0x07
48 50 #define DSSETUP_OPNUM_DsRoleServerSaveStateForUpgrade 0x08
49 51 #define DSSETUP_OPNUM_DsRoleUpgradeDownlevelServer 0x09
50 52 #define DSSETUP_OPNUM_DsRoleAbortDownlevelServerUpgrade 0x0a
51 53
52 54 /*
53 55 * DS roles
54 56 */
55 57 #define DS_ROLE_STANDALONE_WORKSTATION 0
56 58 #define DS_ROLE_MEMBER_WORKSTATION 1
57 59 #define DS_ROLE_STANDALONE_SERVER 2
58 60 #define DS_ROLE_MEMBER_SERVER 3
59 61 #define DS_ROLE_BACKUP_DC 4
60 62 #define DS_ROLE_PRIMARY_DC 5
61 63
62 64 /*
63 65 * DS role flags
64 66 */
65 67 #define DS_ROLE_PRIMARY_DS_RUNNING 0x00000001
66 68 #define DS_ROLE_PRIMARY_DS_MIXED_MODE 0x00000002
67 69 #define DS_ROLE_UPGRADE_IN_PROGRESS 0x00000004
68 70 #define DS_ROLE_PRIMARY_DOMAIN_GUID_PRESENT 0x01000000
69 71
70 72 /*
71 73 * DS role upgrade
72 74 */
73 75 #define DS_ROLE_NOT_UPGRADING 0
74 76 #define DS_ROLE_UPGRADING 1
75 77
76 78 /*
77 79 * DS role previous
78 80 */
79 81 #define DS_ROLE_PREVIOUS_UNKNOWN 0
80 82 #define DS_ROLE_PREVIOUS_PRIMARY 1
81 83 #define DS_ROLE_PREVIOUS_BACKUP 2
82 84
83 85 /*
84 86 * DS role state
85 87 */
86 88 #define DS_ROLE_OP_IDLE 0
87 89 #define DS_ROLE_OP_ACTIVE 1
88 90 #define DS_ROLE_OP_NEEDS_REBOOT 2
89 91
90 92 /*
91 93 * DS role information levels
92 94 */
93 95 #define DS_ROLE_BASIC_INFORMATION 1
94 96 #define DS_ROLE_UPGRADE_STATUS 2
95 97 #define DS_ROLE_OP_STATUS 3
96 98
97 99 struct dssetup_uuid {
98 100 DWORD data1;
99 101 WORD data2;
100 102 WORD data3;
101 103 BYTE data4[8];
102 104 };
103 105 typedef struct dssetup_uuid dssetup_uuid_t;
104 106
105 107 /*
106 108 * DS_ROLE_BASIC_INFORMATION
107 109 */
108 110 struct dssetup_DsRolePrimaryDomInfo1 {
109 111 DWORD role;
110 112 DWORD flags;
111 113 LPTSTR nt_domain;
112 114 LPTSTR dns_domain;
113 115 LPTSTR forest;
114 116 dssetup_uuid_t domain_guid;
115 117 };
116 118 typedef struct dssetup_DsRolePrimaryDomInfo1 ds_primary_domain_info_t;
117 119
118 120 /*
119 121 * DS_ROLE_UPGRADE_STATUS
120 122 */
121 123 struct dssetup_DsRolePrimaryDomInfo2 {
122 124 DWORD upgrade_state;
123 125 DWORD previous_role;
124 126 };
125 127
126 128 /*
127 129 * DS_ROLE_OP_STATUS
128 130 */
129 131 struct dssetup_DsRolePrimaryDomInfo3 {
130 132 DWORD status;
131 133 };
132 134
133 135 union dssetup_GetPrimaryDomainInfo_ru {
134 136 UNION_INFO_ENT(1,dssetup_DsRolePrimaryDomInfo);
135 137 UNION_INFO_ENT(2,dssetup_DsRolePrimaryDomInfo);
136 138 UNION_INFO_ENT(3,dssetup_DsRolePrimaryDomInfo);
137 139 DEFAULT char *nullptr;
138 140 };
139 141
140 142 struct dssetup_GetPrimaryDomainInfo {
141 143 WORD switch_value;
142 144 SWITCH(switch_value)
143 145 union dssetup_GetPrimaryDomainInfo_ru ru;
144 146 };
145 147 typedef struct dssetup_GetPrimaryDomainInfo dssetup_GetPrimaryDomainInfo_t;
146 148
147 149 OPERATION(DSSETUP_OPNUM_DsRoleGetPrimaryDomainInfo)
148 150 struct dssetup_DsRoleGetPrimaryDomainInfo {
149 151 IN WORD level;
150 152 OUT struct dssetup_GetPrimaryDomainInfo *info;
151 153 OUT DWORD status;
152 154 };
153 155 typedef struct dssetup_DsRoleGetPrimaryDomainInfo
154 156 dssetup_DsRoleGetPrimaryDomainInfo_t;
155 157
156 158
157 159 /*
158 160 ***********************************************************************
159 161 * DSSETUP interface definiton.
160 162 ***********************************************************************
161 163 */
162 164 INTERFACE(0)
163 165 union dssetup_interface {
164 166 CASE(DSSETUP_OPNUM_DsRoleGetPrimaryDomainInfo)
165 167 struct dssetup_DsRoleGetPrimaryDomainInfo GetPrimaryDomainInfo;
166 168 };
167 169 typedef union dssetup_interface dssetup_interface_t;
168 170 EXTERNTYPEINFO(dssetup_interface)
169 171
170 172 #endif /* _DSSETUP_NDL_ */
↓ open down ↓ |
123 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX