1 #include "librpc/gen_ndr/ndr_lsa.h"
4 NTSTATUS rpccli_lsa_Close(struct rpc_pipe_client *cli,
6 struct policy_handle *handle);
7 NTSTATUS rpccli_lsa_Delete(struct rpc_pipe_client *cli,
9 struct policy_handle *handle);
10 NTSTATUS rpccli_lsa_EnumPrivs(struct rpc_pipe_client *cli,
12 struct policy_handle *handle,
13 uint32_t *resume_handle,
15 struct lsa_PrivArray *privs);
16 NTSTATUS rpccli_lsa_QuerySecurity(struct rpc_pipe_client *cli,
18 struct policy_handle *handle,
20 struct sec_desc_buf **sdbuf);
21 NTSTATUS rpccli_lsa_SetSecObj(struct rpc_pipe_client *cli,
23 struct policy_handle *handle,
25 struct sec_desc_buf *sdbuf);
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,
31 struct lsa_ObjectAttribute *attr,
33 struct policy_handle *handle);
34 NTSTATUS rpccli_lsa_QueryInfoPolicy(struct rpc_pipe_client *cli,
36 struct policy_handle *handle,
37 enum lsa_PolicyInfo level,
38 union lsa_PolicyInformation **info);
39 NTSTATUS rpccli_lsa_SetInfoPolicy(struct rpc_pipe_client *cli,
41 struct policy_handle *handle,
42 enum lsa_PolicyInfo level,
43 union lsa_PolicyInformation *info);
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,
51 struct policy_handle *acct_handle);
52 NTSTATUS rpccli_lsa_EnumAccounts(struct rpc_pipe_client *cli,
54 struct policy_handle *handle,
55 uint32_t *resume_handle,
57 struct lsa_SidArray *sids);
58 NTSTATUS rpccli_lsa_CreateTrustedDomain(struct rpc_pipe_client *cli,
60 struct policy_handle *handle,
61 struct lsa_DomainInfo *info,
63 struct policy_handle *trustdom_handle);
64 NTSTATUS rpccli_lsa_EnumTrustDom(struct rpc_pipe_client *cli,
66 struct policy_handle *handle,
67 uint32_t *resume_handle,
69 struct lsa_DomainList *domains);
70 NTSTATUS rpccli_lsa_LookupNames(struct rpc_pipe_client *cli,
72 struct policy_handle *handle,
74 struct lsa_String *names,
75 struct lsa_RefDomainList *domains,
76 struct lsa_TransSidArray *sids,
77 enum lsa_LookupNamesLevel level,
79 NTSTATUS rpccli_lsa_LookupSids(struct rpc_pipe_client *cli,
81 struct policy_handle *handle,
82 struct lsa_SidArray *sids,
83 struct lsa_RefDomainList *domains,
84 struct lsa_TransNameArray *names,
87 NTSTATUS rpccli_lsa_CreateSecret(struct rpc_pipe_client *cli,
89 struct policy_handle *handle,
90 struct lsa_String name,
92 struct policy_handle *sec_handle);
93 NTSTATUS rpccli_lsa_OpenAccount(struct rpc_pipe_client *cli,
95 struct policy_handle *handle,
98 struct policy_handle *acct_handle);
99 NTSTATUS rpccli_lsa_EnumPrivsAccount(struct rpc_pipe_client *cli,
101 struct policy_handle *handle,
102 struct lsa_PrivilegeSet *privs);
103 NTSTATUS rpccli_lsa_AddPrivilegesToAccount(struct rpc_pipe_client *cli,
105 struct policy_handle *handle,
106 struct lsa_PrivilegeSet *privs);
107 NTSTATUS rpccli_lsa_RemovePrivilegesFromAccount(struct rpc_pipe_client *cli,
109 struct policy_handle *handle,
111 struct lsa_PrivilegeSet *privs);
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,
119 uint32_t *access_mask);
120 NTSTATUS rpccli_lsa_SetSystemAccessAccount(struct rpc_pipe_client *cli,
122 struct policy_handle *handle,
123 uint32_t access_mask);
124 NTSTATUS rpccli_lsa_OpenTrustedDomain(struct rpc_pipe_client *cli,
126 struct policy_handle *handle,
127 struct dom_sid2 *sid,
128 uint32_t access_mask,
129 struct policy_handle *trustdom_handle);
130 NTSTATUS rpccli_lsa_QueryTrustedDomainInfo(struct rpc_pipe_client *cli,
132 struct policy_handle *trustdom_handle,
133 enum lsa_TrustDomInfoEnum level,
134 union lsa_TrustedDomainInfo *info);
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,
140 struct lsa_String name,
141 uint32_t access_mask,
142 struct policy_handle *sec_handle);
143 NTSTATUS rpccli_lsa_SetSecret(struct rpc_pipe_client *cli,
145 struct policy_handle *sec_handle,
146 struct lsa_DATA_BUF *new_val,
147 struct lsa_DATA_BUF *old_val);
148 NTSTATUS rpccli_lsa_QuerySecret(struct rpc_pipe_client *cli,
150 struct policy_handle *sec_handle,
151 struct lsa_DATA_BUF_PTR *new_val,
153 struct lsa_DATA_BUF_PTR *old_val,
155 NTSTATUS rpccli_lsa_LookupPrivValue(struct rpc_pipe_client *cli,
157 struct policy_handle *handle,
158 struct lsa_String *name,
159 struct lsa_LUID *luid);
160 NTSTATUS rpccli_lsa_LookupPrivName(struct rpc_pipe_client *cli,
162 struct policy_handle *handle,
163 struct lsa_LUID *luid,
164 struct lsa_StringLarge *name);
165 NTSTATUS rpccli_lsa_LookupPrivDisplayName(struct rpc_pipe_client *cli,
167 struct policy_handle *handle,
168 struct lsa_String *name,
169 struct lsa_StringLarge *disp_name,
170 uint16_t *language_id,
172 NTSTATUS rpccli_lsa_DeleteObject(struct rpc_pipe_client *cli,
174 struct policy_handle *handle);
175 NTSTATUS rpccli_lsa_EnumAccountsWithUserRight(struct rpc_pipe_client *cli,
177 struct policy_handle *handle,
178 struct lsa_String *name,
179 struct lsa_SidArray *sids);
180 NTSTATUS rpccli_lsa_EnumAccountRights(struct rpc_pipe_client *cli,
182 struct policy_handle *handle,
183 struct dom_sid2 *sid,
184 struct lsa_RightSet *rights);
185 NTSTATUS rpccli_lsa_AddAccountRights(struct rpc_pipe_client *cli,
187 struct policy_handle *handle,
188 struct dom_sid2 *sid,
189 struct lsa_RightSet *rights);
190 NTSTATUS rpccli_lsa_RemoveAccountRights(struct rpc_pipe_client *cli,
192 struct policy_handle *handle,
193 struct dom_sid2 *sid,
195 struct lsa_RightSet *rights);
196 NTSTATUS rpccli_lsa_QueryTrustedDomainInfoBySid(struct rpc_pipe_client *cli,
198 struct policy_handle *handle,
199 struct dom_sid2 *dom_sid,
200 enum lsa_TrustDomInfoEnum level,
201 union lsa_TrustedDomainInfo *info);
202 NTSTATUS rpccli_lsa_SetTrustedDomainInfo(struct rpc_pipe_client *cli,
203 TALLOC_CTX *mem_ctx);
204 NTSTATUS rpccli_lsa_DeleteTrustedDomain(struct rpc_pipe_client *cli,
206 struct policy_handle *handle,
207 struct dom_sid2 *dom_sid);
208 NTSTATUS rpccli_lsa_StorePrivateData(struct rpc_pipe_client *cli,
209 TALLOC_CTX *mem_ctx);
210 NTSTATUS rpccli_lsa_RetrievePrivateData(struct rpc_pipe_client *cli,
211 TALLOC_CTX *mem_ctx);
212 NTSTATUS rpccli_lsa_OpenPolicy2(struct rpc_pipe_client *cli,
214 const char *system_name,
215 struct lsa_ObjectAttribute *attr,
216 uint32_t access_mask,
217 struct policy_handle *handle);
218 NTSTATUS rpccli_lsa_GetUserName(struct rpc_pipe_client *cli,
220 const char *system_name,
221 struct lsa_String *account_name,
222 struct lsa_StringPointer *authority_name);
223 NTSTATUS rpccli_lsa_QueryInfoPolicy2(struct rpc_pipe_client *cli,
225 struct policy_handle *handle,
226 enum lsa_PolicyInfo level,
227 union lsa_PolicyInformation **info);
228 NTSTATUS rpccli_lsa_SetInfoPolicy2(struct rpc_pipe_client *cli,
230 struct policy_handle *handle,
231 enum lsa_PolicyInfo level,
232 union lsa_PolicyInformation *info);
233 NTSTATUS rpccli_lsa_QueryTrustedDomainInfoByName(struct rpc_pipe_client *cli,
235 struct policy_handle *handle,
236 struct lsa_String *trusted_domain,
237 enum lsa_TrustDomInfoEnum level,
238 union lsa_TrustedDomainInfo *info);
239 NTSTATUS rpccli_lsa_SetTrustedDomainInfoByName(struct rpc_pipe_client *cli,
241 struct policy_handle *handle,
242 struct lsa_String trusted_domain,
243 enum lsa_TrustDomInfoEnum level,
244 union lsa_TrustedDomainInfo *info);
245 NTSTATUS rpccli_lsa_EnumTrustedDomainsEx(struct rpc_pipe_client *cli,
247 struct policy_handle *handle,
248 uint32_t *resume_handle,
249 struct lsa_DomainListEx *domains,
251 NTSTATUS rpccli_lsa_CreateTrustedDomainEx(struct rpc_pipe_client *cli,
252 TALLOC_CTX *mem_ctx);
253 NTSTATUS rpccli_lsa_CloseTrustedDomainEx(struct rpc_pipe_client *cli,
255 struct policy_handle *handle);
256 NTSTATUS rpccli_lsa_QueryDomainInformationPolicy(struct rpc_pipe_client *cli,
258 struct policy_handle *handle,
260 union lsa_DomainInformationPolicy *info);
261 NTSTATUS rpccli_lsa_SetDomainInformationPolicy(struct rpc_pipe_client *cli,
263 struct policy_handle *handle,
265 union lsa_DomainInformationPolicy *info);
266 NTSTATUS rpccli_lsa_OpenTrustedDomainByName(struct rpc_pipe_client *cli,
268 struct policy_handle *handle,
269 struct lsa_String name,
270 uint32_t access_mask,
271 struct policy_handle *trustdom_handle);
272 NTSTATUS rpccli_lsa_TestCall(struct rpc_pipe_client *cli,
273 TALLOC_CTX *mem_ctx);
274 NTSTATUS rpccli_lsa_LookupSids2(struct rpc_pipe_client *cli,
276 struct policy_handle *handle,
277 struct lsa_SidArray *sids,
278 struct lsa_RefDomainList *domains,
279 struct lsa_TransNameArray2 *names,
284 NTSTATUS rpccli_lsa_LookupNames2(struct rpc_pipe_client *cli,
286 struct policy_handle *handle,
288 struct lsa_String *names,
289 struct lsa_RefDomainList *domains,
290 struct lsa_TransSidArray2 *sids,
291 enum lsa_LookupNamesLevel level,
295 NTSTATUS rpccli_lsa_CreateTrustedDomainEx2(struct rpc_pipe_client *cli,
296 TALLOC_CTX *mem_ctx);
297 NTSTATUS rpccli_lsa_CREDRWRITE(struct rpc_pipe_client *cli,
298 TALLOC_CTX *mem_ctx);
299 NTSTATUS rpccli_lsa_CREDRREAD(struct rpc_pipe_client *cli,
300 TALLOC_CTX *mem_ctx);
301 NTSTATUS rpccli_lsa_CREDRENUMERATE(struct rpc_pipe_client *cli,
302 TALLOC_CTX *mem_ctx);
303 NTSTATUS rpccli_lsa_CREDRWRITEDOMAINCREDENTIALS(struct rpc_pipe_client *cli,
304 TALLOC_CTX *mem_ctx);
305 NTSTATUS rpccli_lsa_CREDRREADDOMAINCREDENTIALS(struct rpc_pipe_client *cli,
306 TALLOC_CTX *mem_ctx);
307 NTSTATUS rpccli_lsa_CREDRDELETE(struct rpc_pipe_client *cli,
308 TALLOC_CTX *mem_ctx);
309 NTSTATUS rpccli_lsa_CREDRGETTARGETINFO(struct rpc_pipe_client *cli,
310 TALLOC_CTX *mem_ctx);
311 NTSTATUS rpccli_lsa_CREDRPROFILELOADED(struct rpc_pipe_client *cli,
312 TALLOC_CTX *mem_ctx);
313 NTSTATUS rpccli_lsa_LookupNames3(struct rpc_pipe_client *cli,
315 struct policy_handle *handle,
317 struct lsa_String *names,
318 struct lsa_RefDomainList *domains,
319 struct lsa_TransSidArray3 *sids,
320 enum lsa_LookupNamesLevel level,
324 NTSTATUS rpccli_lsa_CREDRGETSESSIONTYPES(struct rpc_pipe_client *cli,
325 TALLOC_CTX *mem_ctx);
326 NTSTATUS rpccli_lsa_LSARREGISTERAUDITEVENT(struct rpc_pipe_client *cli,
327 TALLOC_CTX *mem_ctx);
328 NTSTATUS rpccli_lsa_LSARGENAUDITEVENT(struct rpc_pipe_client *cli,
329 TALLOC_CTX *mem_ctx);
330 NTSTATUS rpccli_lsa_LSARUNREGISTERAUDITEVENT(struct rpc_pipe_client *cli,
331 TALLOC_CTX *mem_ctx);
332 NTSTATUS rpccli_lsa_lsaRQueryForestTrustInformation(struct rpc_pipe_client *cli,
334 struct policy_handle *handle,
335 struct lsa_String *trusted_domain_name,
337 struct lsa_ForestTrustInformation **forest_trust_info);
338 NTSTATUS rpccli_lsa_LSARSETFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli,
339 TALLOC_CTX *mem_ctx);
340 NTSTATUS rpccli_lsa_CREDRRENAME(struct rpc_pipe_client *cli,
341 TALLOC_CTX *mem_ctx);
342 NTSTATUS rpccli_lsa_LookupSids3(struct rpc_pipe_client *cli,
344 struct lsa_SidArray *sids,
345 struct lsa_RefDomainList *domains,
346 struct lsa_TransNameArray2 *names,
351 NTSTATUS rpccli_lsa_LookupNames4(struct rpc_pipe_client *cli,
354 struct lsa_String *names,
355 struct lsa_RefDomainList *domains,
356 struct lsa_TransSidArray3 *sids,
357 enum lsa_LookupNamesLevel level,
361 NTSTATUS rpccli_lsa_LSAROPENPOLICYSCE(struct rpc_pipe_client *cli,
362 TALLOC_CTX *mem_ctx);
363 NTSTATUS rpccli_lsa_LSARADTREGISTERSECURITYEVENTSOURCE(struct rpc_pipe_client *cli,
364 TALLOC_CTX *mem_ctx);
365 NTSTATUS rpccli_lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE(struct rpc_pipe_client *cli,
366 TALLOC_CTX *mem_ctx);
367 NTSTATUS rpccli_lsa_LSARADTREPORTSECURITYEVENT(struct rpc_pipe_client *cli,
368 TALLOC_CTX *mem_ctx);
369 #endif /* __CLI_LSARPC__ */