1 #include "librpc/gen_ndr/ndr_lsa.h"
4 NTSTATUS
rpccli_lsa_Close(struct rpc_pipe_client
*cli
,
6 struct policy_handle
*handle
/* [in,out] [ref] */);
7 NTSTATUS
rpccli_lsa_Delete(struct rpc_pipe_client
*cli
,
9 struct policy_handle
*handle
/* [in] [ref] */);
10 NTSTATUS
rpccli_lsa_EnumPrivs(struct rpc_pipe_client
*cli
,
12 struct policy_handle
*handle
/* [in] [ref] */,
13 uint32_t *resume_handle
/* [in,out] [ref] */,
14 struct lsa_PrivArray
*privs
/* [out] [ref] */,
15 uint32_t max_count
/* [in] */);
16 NTSTATUS
rpccli_lsa_QuerySecurity(struct rpc_pipe_client
*cli
,
18 struct policy_handle
*handle
/* [in] [ref] */,
19 uint32_t sec_info
/* [in] */,
20 struct sec_desc_buf
**sdbuf
/* [out] [ref] */);
21 NTSTATUS
rpccli_lsa_SetSecObj(struct rpc_pipe_client
*cli
,
23 struct policy_handle
*handle
/* [in] [ref] */,
24 uint32_t sec_info
/* [in] */,
25 struct sec_desc_buf
*sdbuf
/* [in] [ref] */);
26 NTSTATUS
rpccli_lsa_ChangePassword(struct rpc_pipe_client
*cli
,
28 NTSTATUS
rpccli_lsa_OpenPolicy(struct rpc_pipe_client
*cli
,
30 uint16_t *system_name
/* [in] [unique] */,
31 struct lsa_ObjectAttribute
*attr
/* [in] [ref] */,
32 uint32_t access_mask
/* [in] */,
33 struct policy_handle
*handle
/* [out] [ref] */);
34 NTSTATUS
rpccli_lsa_QueryInfoPolicy(struct rpc_pipe_client
*cli
,
36 struct policy_handle
*handle
/* [in] [ref] */,
37 enum lsa_PolicyInfo level
/* [in] */,
38 union lsa_PolicyInformation
**info
/* [out] [ref,switch_is(level)] */);
39 NTSTATUS
rpccli_lsa_SetInfoPolicy(struct rpc_pipe_client
*cli
,
41 struct policy_handle
*handle
/* [in] [ref] */,
42 enum lsa_PolicyInfo level
/* [in] */,
43 union lsa_PolicyInformation
*info
/* [in] [ref,switch_is(level)] */);
44 NTSTATUS
rpccli_lsa_ClearAuditLog(struct rpc_pipe_client
*cli
,
46 NTSTATUS
rpccli_lsa_CreateAccount(struct rpc_pipe_client
*cli
,
48 struct policy_handle
*handle
/* [in] [ref] */,
49 struct dom_sid2
*sid
/* [in] [ref] */,
50 uint32_t access_mask
/* [in] */,
51 struct policy_handle
*acct_handle
/* [out] [ref] */);
52 NTSTATUS
rpccli_lsa_EnumAccounts(struct rpc_pipe_client
*cli
,
54 struct policy_handle
*handle
/* [in] [ref] */,
55 uint32_t *resume_handle
/* [in,out] [ref] */,
56 struct lsa_SidArray
*sids
/* [out] [ref] */,
57 uint32_t num_entries
/* [in] [range(0,8192)] */);
58 NTSTATUS
rpccli_lsa_CreateTrustedDomain(struct rpc_pipe_client
*cli
,
60 struct policy_handle
*handle
/* [in] [ref] */,
61 struct lsa_DomainInfo
*info
/* [in] [ref] */,
62 uint32_t access_mask
/* [in] */,
63 struct policy_handle
*trustdom_handle
/* [out] [ref] */);
64 NTSTATUS
rpccli_lsa_EnumTrustDom(struct rpc_pipe_client
*cli
,
66 struct policy_handle
*handle
/* [in] [ref] */,
67 uint32_t *resume_handle
/* [in,out] [ref] */,
68 struct lsa_DomainList
*domains
/* [out] [ref] */,
69 uint32_t max_size
/* [in] */);
70 NTSTATUS
rpccli_lsa_LookupNames(struct rpc_pipe_client
*cli
,
72 struct policy_handle
*handle
/* [in] [ref] */,
73 uint32_t num_names
/* [in] [range(0,1000)] */,
74 struct lsa_String
*names
/* [in] [size_is(num_names)] */,
75 struct lsa_RefDomainList
**domains
/* [out] [ref] */,
76 struct lsa_TransSidArray
*sids
/* [in,out] [ref] */,
77 enum lsa_LookupNamesLevel level
/* [in] */,
78 uint32_t *count
/* [in,out] [ref] */);
79 NTSTATUS
rpccli_lsa_LookupSids(struct rpc_pipe_client
*cli
,
81 struct policy_handle
*handle
/* [in] [ref] */,
82 struct lsa_SidArray
*sids
/* [in] [ref] */,
83 struct lsa_RefDomainList
**domains
/* [out] [ref] */,
84 struct lsa_TransNameArray
*names
/* [in,out] [ref] */,
85 uint16_t level
/* [in] */,
86 uint32_t *count
/* [in,out] [ref] */);
87 NTSTATUS
rpccli_lsa_CreateSecret(struct rpc_pipe_client
*cli
,
89 struct policy_handle
*handle
/* [in] [ref] */,
90 struct lsa_String name
/* [in] */,
91 uint32_t access_mask
/* [in] */,
92 struct policy_handle
*sec_handle
/* [out] [ref] */);
93 NTSTATUS
rpccli_lsa_OpenAccount(struct rpc_pipe_client
*cli
,
95 struct policy_handle
*handle
/* [in] [ref] */,
96 struct dom_sid2
*sid
/* [in] [ref] */,
97 uint32_t access_mask
/* [in] */,
98 struct policy_handle
*acct_handle
/* [out] [ref] */);
99 NTSTATUS
rpccli_lsa_EnumPrivsAccount(struct rpc_pipe_client
*cli
,
101 struct policy_handle
*handle
/* [in] [ref] */,
102 struct lsa_PrivilegeSet
**privs
/* [out] [ref] */);
103 NTSTATUS
rpccli_lsa_AddPrivilegesToAccount(struct rpc_pipe_client
*cli
,
105 struct policy_handle
*handle
/* [in] [ref] */,
106 struct lsa_PrivilegeSet
*privs
/* [in] [ref] */);
107 NTSTATUS
rpccli_lsa_RemovePrivilegesFromAccount(struct rpc_pipe_client
*cli
,
109 struct policy_handle
*handle
/* [in] [ref] */,
110 uint8_t remove_all
/* [in] */,
111 struct lsa_PrivilegeSet
*privs
/* [in] [unique] */);
112 NTSTATUS
rpccli_lsa_GetQuotasForAccount(struct rpc_pipe_client
*cli
,
113 TALLOC_CTX
*mem_ctx
);
114 NTSTATUS
rpccli_lsa_SetQuotasForAccount(struct rpc_pipe_client
*cli
,
115 TALLOC_CTX
*mem_ctx
);
116 NTSTATUS
rpccli_lsa_GetSystemAccessAccount(struct rpc_pipe_client
*cli
,
118 struct policy_handle
*handle
/* [in] [ref] */,
119 uint32_t *access_mask
/* [out] [ref] */);
120 NTSTATUS
rpccli_lsa_SetSystemAccessAccount(struct rpc_pipe_client
*cli
,
122 struct policy_handle
*handle
/* [in] [ref] */,
123 uint32_t access_mask
/* [in] */);
124 NTSTATUS
rpccli_lsa_OpenTrustedDomain(struct rpc_pipe_client
*cli
,
126 struct policy_handle
*handle
/* [in] [ref] */,
127 struct dom_sid2
*sid
/* [in] [ref] */,
128 uint32_t access_mask
/* [in] */,
129 struct policy_handle
*trustdom_handle
/* [out] [ref] */);
130 NTSTATUS
rpccli_lsa_QueryTrustedDomainInfo(struct rpc_pipe_client
*cli
,
132 struct policy_handle
*trustdom_handle
/* [in] [ref] */,
133 enum lsa_TrustDomInfoEnum level
/* [in] */,
134 union lsa_TrustedDomainInfo
**info
/* [out] [ref,switch_is(level)] */);
135 NTSTATUS
rpccli_lsa_SetInformationTrustedDomain(struct rpc_pipe_client
*cli
,
136 TALLOC_CTX
*mem_ctx
);
137 NTSTATUS
rpccli_lsa_OpenSecret(struct rpc_pipe_client
*cli
,
139 struct policy_handle
*handle
/* [in] [ref] */,
140 struct lsa_String name
/* [in] */,
141 uint32_t access_mask
/* [in] */,
142 struct policy_handle
*sec_handle
/* [out] [ref] */);
143 NTSTATUS
rpccli_lsa_SetSecret(struct rpc_pipe_client
*cli
,
145 struct policy_handle
*sec_handle
/* [in] [ref] */,
146 struct lsa_DATA_BUF
*new_val
/* [in] [unique] */,
147 struct lsa_DATA_BUF
*old_val
/* [in] [unique] */);
148 NTSTATUS
rpccli_lsa_QuerySecret(struct rpc_pipe_client
*cli
,
150 struct policy_handle
*sec_handle
/* [in] [ref] */,
151 struct lsa_DATA_BUF_PTR
*new_val
/* [in,out] [unique] */,
152 NTTIME
*new_mtime
/* [in,out] [unique] */,
153 struct lsa_DATA_BUF_PTR
*old_val
/* [in,out] [unique] */,
154 NTTIME
*old_mtime
/* [in,out] [unique] */);
155 NTSTATUS
rpccli_lsa_LookupPrivValue(struct rpc_pipe_client
*cli
,
157 struct policy_handle
*handle
/* [in] [ref] */,
158 struct lsa_String
*name
/* [in] [ref] */,
159 struct lsa_LUID
*luid
/* [out] [ref] */);
160 NTSTATUS
rpccli_lsa_LookupPrivName(struct rpc_pipe_client
*cli
,
162 struct policy_handle
*handle
/* [in] [ref] */,
163 struct lsa_LUID
*luid
/* [in] [ref] */,
164 struct lsa_StringLarge
**name
/* [out] [ref] */);
165 NTSTATUS
rpccli_lsa_LookupPrivDisplayName(struct rpc_pipe_client
*cli
,
167 struct policy_handle
*handle
/* [in] [ref] */,
168 struct lsa_String
*name
/* [in] [ref] */,
169 uint16_t language_id
/* [in] */,
170 uint16_t language_id_sys
/* [in] */,
171 struct lsa_StringLarge
**disp_name
/* [out] [ref] */,
172 uint16_t *returned_language_id
/* [out] [ref] */);
173 NTSTATUS
rpccli_lsa_DeleteObject(struct rpc_pipe_client
*cli
,
175 struct policy_handle
*handle
/* [in,out] [ref] */);
176 NTSTATUS
rpccli_lsa_EnumAccountsWithUserRight(struct rpc_pipe_client
*cli
,
178 struct policy_handle
*handle
/* [in] [ref] */,
179 struct lsa_String
*name
/* [in] [unique] */,
180 struct lsa_SidArray
*sids
/* [out] [ref] */);
181 NTSTATUS
rpccli_lsa_EnumAccountRights(struct rpc_pipe_client
*cli
,
183 struct policy_handle
*handle
/* [in] [ref] */,
184 struct dom_sid2
*sid
/* [in] [ref] */,
185 struct lsa_RightSet
*rights
/* [out] [ref] */);
186 NTSTATUS
rpccli_lsa_AddAccountRights(struct rpc_pipe_client
*cli
,
188 struct policy_handle
*handle
/* [in] [ref] */,
189 struct dom_sid2
*sid
/* [in] [ref] */,
190 struct lsa_RightSet
*rights
/* [in] [ref] */);
191 NTSTATUS
rpccli_lsa_RemoveAccountRights(struct rpc_pipe_client
*cli
,
193 struct policy_handle
*handle
/* [in] [ref] */,
194 struct dom_sid2
*sid
/* [in] [ref] */,
195 uint8_t remove_all
/* [in] */,
196 struct lsa_RightSet
*rights
/* [in] [ref] */);
197 NTSTATUS
rpccli_lsa_QueryTrustedDomainInfoBySid(struct rpc_pipe_client
*cli
,
199 struct policy_handle
*handle
/* [in] [ref] */,
200 struct dom_sid2
*dom_sid
/* [in] [ref] */,
201 enum lsa_TrustDomInfoEnum level
/* [in] */,
202 union lsa_TrustedDomainInfo
**info
/* [out] [ref,switch_is(level)] */);
203 NTSTATUS
rpccli_lsa_SetTrustedDomainInfo(struct rpc_pipe_client
*cli
,
204 TALLOC_CTX
*mem_ctx
);
205 NTSTATUS
rpccli_lsa_DeleteTrustedDomain(struct rpc_pipe_client
*cli
,
207 struct policy_handle
*handle
/* [in] [ref] */,
208 struct dom_sid2
*dom_sid
/* [in] [ref] */);
209 NTSTATUS
rpccli_lsa_StorePrivateData(struct rpc_pipe_client
*cli
,
210 TALLOC_CTX
*mem_ctx
);
211 NTSTATUS
rpccli_lsa_RetrievePrivateData(struct rpc_pipe_client
*cli
,
212 TALLOC_CTX
*mem_ctx
);
213 NTSTATUS
rpccli_lsa_OpenPolicy2(struct rpc_pipe_client
*cli
,
215 const char *system_name
/* [in] [unique,charset(UTF16)] */,
216 struct lsa_ObjectAttribute
*attr
/* [in] [ref] */,
217 uint32_t access_mask
/* [in] */,
218 struct policy_handle
*handle
/* [out] [ref] */);
219 NTSTATUS
rpccli_lsa_GetUserName(struct rpc_pipe_client
*cli
,
221 const char *system_name
/* [in] [unique,charset(UTF16)] */,
222 struct lsa_String
**account_name
/* [in,out] [ref] */,
223 struct lsa_String
**authority_name
/* [in,out] [unique] */);
224 NTSTATUS
rpccli_lsa_QueryInfoPolicy2(struct rpc_pipe_client
*cli
,
226 struct policy_handle
*handle
/* [in] [ref] */,
227 enum lsa_PolicyInfo level
/* [in] */,
228 union lsa_PolicyInformation
**info
/* [out] [ref,switch_is(level)] */);
229 NTSTATUS
rpccli_lsa_SetInfoPolicy2(struct rpc_pipe_client
*cli
,
231 struct policy_handle
*handle
/* [in] [ref] */,
232 enum lsa_PolicyInfo level
/* [in] */,
233 union lsa_PolicyInformation
*info
/* [in] [ref,switch_is(level)] */);
234 NTSTATUS
rpccli_lsa_QueryTrustedDomainInfoByName(struct rpc_pipe_client
*cli
,
236 struct policy_handle
*handle
/* [in] [ref] */,
237 struct lsa_String
*trusted_domain
/* [in] [ref] */,
238 enum lsa_TrustDomInfoEnum level
/* [in] */,
239 union lsa_TrustedDomainInfo
**info
/* [out] [ref,switch_is(level)] */);
240 NTSTATUS
rpccli_lsa_SetTrustedDomainInfoByName(struct rpc_pipe_client
*cli
,
242 struct policy_handle
*handle
/* [in] [ref] */,
243 struct lsa_String trusted_domain
/* [in] */,
244 enum lsa_TrustDomInfoEnum level
/* [in] */,
245 union lsa_TrustedDomainInfo
*info
/* [in] [unique,switch_is(level)] */);
246 NTSTATUS
rpccli_lsa_EnumTrustedDomainsEx(struct rpc_pipe_client
*cli
,
248 struct policy_handle
*handle
/* [in] [ref] */,
249 uint32_t *resume_handle
/* [in,out] [ref] */,
250 struct lsa_DomainListEx
*domains
/* [out] [ref] */,
251 uint32_t max_size
/* [in] */);
252 NTSTATUS
rpccli_lsa_CreateTrustedDomainEx(struct rpc_pipe_client
*cli
,
253 TALLOC_CTX
*mem_ctx
);
254 NTSTATUS
rpccli_lsa_CloseTrustedDomainEx(struct rpc_pipe_client
*cli
,
256 struct policy_handle
*handle
/* [in,out] [ref] */);
257 NTSTATUS
rpccli_lsa_QueryDomainInformationPolicy(struct rpc_pipe_client
*cli
,
259 struct policy_handle
*handle
/* [in] [ref] */,
260 uint16_t level
/* [in] */,
261 union lsa_DomainInformationPolicy
**info
/* [out] [ref,switch_is(level)] */);
262 NTSTATUS
rpccli_lsa_SetDomainInformationPolicy(struct rpc_pipe_client
*cli
,
264 struct policy_handle
*handle
/* [in] [ref] */,
265 uint16_t level
/* [in] */,
266 union lsa_DomainInformationPolicy
*info
/* [in] [unique,switch_is(level)] */);
267 NTSTATUS
rpccli_lsa_OpenTrustedDomainByName(struct rpc_pipe_client
*cli
,
269 struct policy_handle
*handle
/* [in] [ref] */,
270 struct lsa_String name
/* [in] */,
271 uint32_t access_mask
/* [in] */,
272 struct policy_handle
*trustdom_handle
/* [out] [ref] */);
273 NTSTATUS
rpccli_lsa_TestCall(struct rpc_pipe_client
*cli
,
274 TALLOC_CTX
*mem_ctx
);
275 NTSTATUS
rpccli_lsa_LookupSids2(struct rpc_pipe_client
*cli
,
277 struct policy_handle
*handle
/* [in] [ref] */,
278 struct lsa_SidArray
*sids
/* [in] [ref] */,
279 struct lsa_RefDomainList
**domains
/* [out] [ref] */,
280 struct lsa_TransNameArray2
*names
/* [in,out] [ref] */,
281 uint16_t level
/* [in] */,
282 uint32_t *count
/* [in,out] [ref] */,
283 uint32_t unknown1
/* [in] */,
284 uint32_t unknown2
/* [in] */);
285 NTSTATUS
rpccli_lsa_LookupNames2(struct rpc_pipe_client
*cli
,
287 struct policy_handle
*handle
/* [in] [ref] */,
288 uint32_t num_names
/* [in] [range(0,1000)] */,
289 struct lsa_String
*names
/* [in] [size_is(num_names)] */,
290 struct lsa_RefDomainList
**domains
/* [out] [ref] */,
291 struct lsa_TransSidArray2
*sids
/* [in,out] [ref] */,
292 enum lsa_LookupNamesLevel level
/* [in] */,
293 uint32_t *count
/* [in,out] [ref] */,
294 uint32_t unknown1
/* [in] */,
295 uint32_t unknown2
/* [in] */);
296 NTSTATUS
rpccli_lsa_CreateTrustedDomainEx2(struct rpc_pipe_client
*cli
,
297 TALLOC_CTX
*mem_ctx
);
298 NTSTATUS
rpccli_lsa_CREDRWRITE(struct rpc_pipe_client
*cli
,
299 TALLOC_CTX
*mem_ctx
);
300 NTSTATUS
rpccli_lsa_CREDRREAD(struct rpc_pipe_client
*cli
,
301 TALLOC_CTX
*mem_ctx
);
302 NTSTATUS
rpccli_lsa_CREDRENUMERATE(struct rpc_pipe_client
*cli
,
303 TALLOC_CTX
*mem_ctx
);
304 NTSTATUS
rpccli_lsa_CREDRWRITEDOMAINCREDENTIALS(struct rpc_pipe_client
*cli
,
305 TALLOC_CTX
*mem_ctx
);
306 NTSTATUS
rpccli_lsa_CREDRREADDOMAINCREDENTIALS(struct rpc_pipe_client
*cli
,
307 TALLOC_CTX
*mem_ctx
);
308 NTSTATUS
rpccli_lsa_CREDRDELETE(struct rpc_pipe_client
*cli
,
309 TALLOC_CTX
*mem_ctx
);
310 NTSTATUS
rpccli_lsa_CREDRGETTARGETINFO(struct rpc_pipe_client
*cli
,
311 TALLOC_CTX
*mem_ctx
);
312 NTSTATUS
rpccli_lsa_CREDRPROFILELOADED(struct rpc_pipe_client
*cli
,
313 TALLOC_CTX
*mem_ctx
);
314 NTSTATUS
rpccli_lsa_LookupNames3(struct rpc_pipe_client
*cli
,
316 struct policy_handle
*handle
/* [in] [ref] */,
317 uint32_t num_names
/* [in] [range(0,1000)] */,
318 struct lsa_String
*names
/* [in] [size_is(num_names)] */,
319 struct lsa_RefDomainList
**domains
/* [out] [ref] */,
320 struct lsa_TransSidArray3
*sids
/* [in,out] [ref] */,
321 enum lsa_LookupNamesLevel level
/* [in] */,
322 uint32_t *count
/* [in,out] [ref] */,
323 uint32_t unknown1
/* [in] */,
324 uint32_t unknown2
/* [in] */);
325 NTSTATUS
rpccli_lsa_CREDRGETSESSIONTYPES(struct rpc_pipe_client
*cli
,
326 TALLOC_CTX
*mem_ctx
);
327 NTSTATUS
rpccli_lsa_LSARREGISTERAUDITEVENT(struct rpc_pipe_client
*cli
,
328 TALLOC_CTX
*mem_ctx
);
329 NTSTATUS
rpccli_lsa_LSARGENAUDITEVENT(struct rpc_pipe_client
*cli
,
330 TALLOC_CTX
*mem_ctx
);
331 NTSTATUS
rpccli_lsa_LSARUNREGISTERAUDITEVENT(struct rpc_pipe_client
*cli
,
332 TALLOC_CTX
*mem_ctx
);
333 NTSTATUS
rpccli_lsa_lsaRQueryForestTrustInformation(struct rpc_pipe_client
*cli
,
335 struct policy_handle
*handle
/* [in] [ref] */,
336 struct lsa_String
*trusted_domain_name
/* [in] [ref] */,
337 uint16_t unknown
/* [in] */,
338 struct lsa_ForestTrustInformation
**forest_trust_info
/* [out] [ref] */);
339 NTSTATUS
rpccli_lsa_LSARSETFORESTTRUSTINFORMATION(struct rpc_pipe_client
*cli
,
340 TALLOC_CTX
*mem_ctx
);
341 NTSTATUS
rpccli_lsa_CREDRRENAME(struct rpc_pipe_client
*cli
,
342 TALLOC_CTX
*mem_ctx
);
343 NTSTATUS
rpccli_lsa_LookupSids3(struct rpc_pipe_client
*cli
,
345 struct lsa_SidArray
*sids
/* [in] [ref] */,
346 struct lsa_RefDomainList
**domains
/* [out] [ref] */,
347 struct lsa_TransNameArray2
*names
/* [in,out] [ref] */,
348 uint16_t level
/* [in] */,
349 uint32_t *count
/* [in,out] [ref] */,
350 uint32_t unknown1
/* [in] */,
351 uint32_t unknown2
/* [in] */);
352 NTSTATUS
rpccli_lsa_LookupNames4(struct rpc_pipe_client
*cli
,
354 uint32_t num_names
/* [in] [range(0,1000)] */,
355 struct lsa_String
*names
/* [in] [size_is(num_names)] */,
356 struct lsa_RefDomainList
**domains
/* [out] [ref] */,
357 struct lsa_TransSidArray3
*sids
/* [in,out] [ref] */,
358 enum lsa_LookupNamesLevel level
/* [in] */,
359 uint32_t *count
/* [in,out] [ref] */,
360 uint32_t unknown1
/* [in] */,
361 uint32_t unknown2
/* [in] */);
362 NTSTATUS
rpccli_lsa_LSAROPENPOLICYSCE(struct rpc_pipe_client
*cli
,
363 TALLOC_CTX
*mem_ctx
);
364 NTSTATUS
rpccli_lsa_LSARADTREGISTERSECURITYEVENTSOURCE(struct rpc_pipe_client
*cli
,
365 TALLOC_CTX
*mem_ctx
);
366 NTSTATUS
rpccli_lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE(struct rpc_pipe_client
*cli
,
367 TALLOC_CTX
*mem_ctx
);
368 NTSTATUS
rpccli_lsa_LSARADTREPORTSECURITYEVENT(struct rpc_pipe_client
*cli
,
369 TALLOC_CTX
*mem_ctx
);
370 #endif /* __CLI_LSARPC__ */