Re-run make idl.
[ab/samba.git/.git] / source3 / librpc / gen_ndr / cli_lsa.h
1 #include "librpc/gen_ndr/ndr_lsa.h"
2 #ifndef __CLI_LSARPC__
3 #define __CLI_LSARPC__
4 NTSTATUS rpccli_lsa_Close(struct rpc_pipe_client *cli,
5                           TALLOC_CTX *mem_ctx,
6                           struct policy_handle *handle);
7 NTSTATUS rpccli_lsa_Delete(struct rpc_pipe_client *cli,
8                            TALLOC_CTX *mem_ctx,
9                            struct policy_handle *handle);
10 NTSTATUS rpccli_lsa_EnumPrivs(struct rpc_pipe_client *cli,
11                               TALLOC_CTX *mem_ctx,
12                               struct policy_handle *handle,
13                               uint32_t *resume_handle,
14                               struct lsa_PrivArray *privs,
15                               uint32_t max_count);
16 NTSTATUS rpccli_lsa_QuerySecurity(struct rpc_pipe_client *cli,
17                                   TALLOC_CTX *mem_ctx,
18                                   struct policy_handle *handle,
19                                   uint32_t sec_info,
20                                   struct sec_desc_buf **sdbuf);
21 NTSTATUS rpccli_lsa_SetSecObj(struct rpc_pipe_client *cli,
22                               TALLOC_CTX *mem_ctx,
23                               struct policy_handle *handle,
24                               uint32_t sec_info,
25                               struct sec_desc_buf *sdbuf);
26 NTSTATUS rpccli_lsa_ChangePassword(struct rpc_pipe_client *cli,
27                                    TALLOC_CTX *mem_ctx);
28 NTSTATUS rpccli_lsa_OpenPolicy(struct rpc_pipe_client *cli,
29                                TALLOC_CTX *mem_ctx,
30                                uint16_t *system_name,
31                                struct lsa_ObjectAttribute *attr,
32                                uint32_t access_mask,
33                                struct policy_handle *handle);
34 NTSTATUS rpccli_lsa_QueryInfoPolicy(struct rpc_pipe_client *cli,
35                                     TALLOC_CTX *mem_ctx,
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,
40                                   TALLOC_CTX *mem_ctx,
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,
45                                   TALLOC_CTX *mem_ctx);
46 NTSTATUS rpccli_lsa_CreateAccount(struct rpc_pipe_client *cli,
47                                   TALLOC_CTX *mem_ctx,
48                                   struct policy_handle *handle,
49                                   struct dom_sid2 *sid,
50                                   uint32_t access_mask,
51                                   struct policy_handle *acct_handle);
52 NTSTATUS rpccli_lsa_EnumAccounts(struct rpc_pipe_client *cli,
53                                  TALLOC_CTX *mem_ctx,
54                                  struct policy_handle *handle,
55                                  uint32_t *resume_handle,
56                                  struct lsa_SidArray *sids,
57                                  uint32_t num_entries);
58 NTSTATUS rpccli_lsa_CreateTrustedDomain(struct rpc_pipe_client *cli,
59                                         TALLOC_CTX *mem_ctx,
60                                         struct policy_handle *handle,
61                                         struct lsa_DomainInfo *info,
62                                         uint32_t access_mask,
63                                         struct policy_handle *trustdom_handle);
64 NTSTATUS rpccli_lsa_EnumTrustDom(struct rpc_pipe_client *cli,
65                                  TALLOC_CTX *mem_ctx,
66                                  struct policy_handle *handle,
67                                  uint32_t *resume_handle,
68                                  struct lsa_DomainList *domains,
69                                  uint32_t max_size);
70 NTSTATUS rpccli_lsa_LookupNames(struct rpc_pipe_client *cli,
71                                 TALLOC_CTX *mem_ctx,
72                                 struct policy_handle *handle,
73                                 uint32_t num_names,
74                                 struct lsa_String *names,
75                                 struct lsa_RefDomainList *domains,
76                                 struct lsa_TransSidArray *sids,
77                                 enum lsa_LookupNamesLevel level,
78                                 uint32_t *count);
79 NTSTATUS rpccli_lsa_LookupSids(struct rpc_pipe_client *cli,
80                                TALLOC_CTX *mem_ctx,
81                                struct policy_handle *handle,
82                                struct lsa_SidArray *sids,
83                                struct lsa_RefDomainList *domains,
84                                struct lsa_TransNameArray *names,
85                                uint16_t level,
86                                uint32_t *count);
87 NTSTATUS rpccli_lsa_CreateSecret(struct rpc_pipe_client *cli,
88                                  TALLOC_CTX *mem_ctx,
89                                  struct policy_handle *handle,
90                                  struct lsa_String name,
91                                  uint32_t access_mask,
92                                  struct policy_handle *sec_handle);
93 NTSTATUS rpccli_lsa_OpenAccount(struct rpc_pipe_client *cli,
94                                 TALLOC_CTX *mem_ctx,
95                                 struct policy_handle *handle,
96                                 struct dom_sid2 *sid,
97                                 uint32_t access_mask,
98                                 struct policy_handle *acct_handle);
99 NTSTATUS rpccli_lsa_EnumPrivsAccount(struct rpc_pipe_client *cli,
100                                      TALLOC_CTX *mem_ctx,
101                                      struct policy_handle *handle,
102                                      struct lsa_PrivilegeSet **privs);
103 NTSTATUS rpccli_lsa_AddPrivilegesToAccount(struct rpc_pipe_client *cli,
104                                            TALLOC_CTX *mem_ctx,
105                                            struct policy_handle *handle,
106                                            struct lsa_PrivilegeSet *privs);
107 NTSTATUS rpccli_lsa_RemovePrivilegesFromAccount(struct rpc_pipe_client *cli,
108                                                 TALLOC_CTX *mem_ctx,
109                                                 struct policy_handle *handle,
110                                                 uint8_t remove_all,
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,
117                                            TALLOC_CTX *mem_ctx,
118                                            struct policy_handle *handle,
119                                            uint32_t *access_mask);
120 NTSTATUS rpccli_lsa_SetSystemAccessAccount(struct rpc_pipe_client *cli,
121                                            TALLOC_CTX *mem_ctx,
122                                            struct policy_handle *handle,
123                                            uint32_t access_mask);
124 NTSTATUS rpccli_lsa_OpenTrustedDomain(struct rpc_pipe_client *cli,
125                                       TALLOC_CTX *mem_ctx,
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,
131                                            TALLOC_CTX *mem_ctx,
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,
138                                TALLOC_CTX *mem_ctx,
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,
144                               TALLOC_CTX *mem_ctx,
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,
149                                 TALLOC_CTX *mem_ctx,
150                                 struct policy_handle *sec_handle,
151                                 struct lsa_DATA_BUF_PTR *new_val,
152                                 NTTIME *new_mtime,
153                                 struct lsa_DATA_BUF_PTR *old_val,
154                                 NTTIME *old_mtime);
155 NTSTATUS rpccli_lsa_LookupPrivValue(struct rpc_pipe_client *cli,
156                                     TALLOC_CTX *mem_ctx,
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,
161                                    TALLOC_CTX *mem_ctx,
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,
166                                           TALLOC_CTX *mem_ctx,
167                                           struct policy_handle *handle,
168                                           struct lsa_String *name,
169                                           uint16_t language_id,
170                                           uint16_t language_id_sys,
171                                           struct lsa_StringLarge **disp_name,
172                                           uint16_t *returned_language_id);
173 NTSTATUS rpccli_lsa_DeleteObject(struct rpc_pipe_client *cli,
174                                  TALLOC_CTX *mem_ctx,
175                                  struct policy_handle *handle);
176 NTSTATUS rpccli_lsa_EnumAccountsWithUserRight(struct rpc_pipe_client *cli,
177                                               TALLOC_CTX *mem_ctx,
178                                               struct policy_handle *handle,
179                                               struct lsa_String *name,
180                                               struct lsa_SidArray *sids);
181 NTSTATUS rpccli_lsa_EnumAccountRights(struct rpc_pipe_client *cli,
182                                       TALLOC_CTX *mem_ctx,
183                                       struct policy_handle *handle,
184                                       struct dom_sid2 *sid,
185                                       struct lsa_RightSet *rights);
186 NTSTATUS rpccli_lsa_AddAccountRights(struct rpc_pipe_client *cli,
187                                      TALLOC_CTX *mem_ctx,
188                                      struct policy_handle *handle,
189                                      struct dom_sid2 *sid,
190                                      struct lsa_RightSet *rights);
191 NTSTATUS rpccli_lsa_RemoveAccountRights(struct rpc_pipe_client *cli,
192                                         TALLOC_CTX *mem_ctx,
193                                         struct policy_handle *handle,
194                                         struct dom_sid2 *sid,
195                                         uint32_t unknown,
196                                         struct lsa_RightSet *rights);
197 NTSTATUS rpccli_lsa_QueryTrustedDomainInfoBySid(struct rpc_pipe_client *cli,
198                                                 TALLOC_CTX *mem_ctx,
199                                                 struct policy_handle *handle,
200                                                 struct dom_sid2 *dom_sid,
201                                                 enum lsa_TrustDomInfoEnum level,
202                                                 union lsa_TrustedDomainInfo *info);
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,
206                                         TALLOC_CTX *mem_ctx,
207                                         struct policy_handle *handle,
208                                         struct dom_sid2 *dom_sid);
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,
214                                 TALLOC_CTX *mem_ctx,
215                                 const char *system_name,
216                                 struct lsa_ObjectAttribute *attr,
217                                 uint32_t access_mask,
218                                 struct policy_handle *handle);
219 NTSTATUS rpccli_lsa_GetUserName(struct rpc_pipe_client *cli,
220                                 TALLOC_CTX *mem_ctx,
221                                 const char *system_name,
222                                 struct lsa_String **account_name,
223                                 struct lsa_String **authority_name);
224 NTSTATUS rpccli_lsa_QueryInfoPolicy2(struct rpc_pipe_client *cli,
225                                      TALLOC_CTX *mem_ctx,
226                                      struct policy_handle *handle,
227                                      enum lsa_PolicyInfo level,
228                                      union lsa_PolicyInformation **info);
229 NTSTATUS rpccli_lsa_SetInfoPolicy2(struct rpc_pipe_client *cli,
230                                    TALLOC_CTX *mem_ctx,
231                                    struct policy_handle *handle,
232                                    enum lsa_PolicyInfo level,
233                                    union lsa_PolicyInformation *info);
234 NTSTATUS rpccli_lsa_QueryTrustedDomainInfoByName(struct rpc_pipe_client *cli,
235                                                  TALLOC_CTX *mem_ctx,
236                                                  struct policy_handle *handle,
237                                                  struct lsa_String *trusted_domain,
238                                                  enum lsa_TrustDomInfoEnum level,
239                                                  union lsa_TrustedDomainInfo *info);
240 NTSTATUS rpccli_lsa_SetTrustedDomainInfoByName(struct rpc_pipe_client *cli,
241                                                TALLOC_CTX *mem_ctx,
242                                                struct policy_handle *handle,
243                                                struct lsa_String trusted_domain,
244                                                enum lsa_TrustDomInfoEnum level,
245                                                union lsa_TrustedDomainInfo *info);
246 NTSTATUS rpccli_lsa_EnumTrustedDomainsEx(struct rpc_pipe_client *cli,
247                                          TALLOC_CTX *mem_ctx,
248                                          struct policy_handle *handle,
249                                          uint32_t *resume_handle,
250                                          struct lsa_DomainListEx *domains,
251                                          uint32_t max_size);
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,
255                                          TALLOC_CTX *mem_ctx,
256                                          struct policy_handle *handle);
257 NTSTATUS rpccli_lsa_QueryDomainInformationPolicy(struct rpc_pipe_client *cli,
258                                                  TALLOC_CTX *mem_ctx,
259                                                  struct policy_handle *handle,
260                                                  uint16_t level,
261                                                  union lsa_DomainInformationPolicy *info);
262 NTSTATUS rpccli_lsa_SetDomainInformationPolicy(struct rpc_pipe_client *cli,
263                                                TALLOC_CTX *mem_ctx,
264                                                struct policy_handle *handle,
265                                                uint16_t level,
266                                                union lsa_DomainInformationPolicy *info);
267 NTSTATUS rpccli_lsa_OpenTrustedDomainByName(struct rpc_pipe_client *cli,
268                                             TALLOC_CTX *mem_ctx,
269                                             struct policy_handle *handle,
270                                             struct lsa_String name,
271                                             uint32_t access_mask,
272                                             struct policy_handle *trustdom_handle);
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,
276                                 TALLOC_CTX *mem_ctx,
277                                 struct policy_handle *handle,
278                                 struct lsa_SidArray *sids,
279                                 struct lsa_RefDomainList *domains,
280                                 struct lsa_TransNameArray2 *names,
281                                 uint16_t level,
282                                 uint32_t *count,
283                                 uint32_t unknown1,
284                                 uint32_t unknown2);
285 NTSTATUS rpccli_lsa_LookupNames2(struct rpc_pipe_client *cli,
286                                  TALLOC_CTX *mem_ctx,
287                                  struct policy_handle *handle,
288                                  uint32_t num_names,
289                                  struct lsa_String *names,
290                                  struct lsa_RefDomainList *domains,
291                                  struct lsa_TransSidArray2 *sids,
292                                  enum lsa_LookupNamesLevel level,
293                                  uint32_t *count,
294                                  uint32_t unknown1,
295                                  uint32_t unknown2);
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,
315                                  TALLOC_CTX *mem_ctx,
316                                  struct policy_handle *handle,
317                                  uint32_t num_names,
318                                  struct lsa_String *names,
319                                  struct lsa_RefDomainList *domains,
320                                  struct lsa_TransSidArray3 *sids,
321                                  enum lsa_LookupNamesLevel level,
322                                  uint32_t *count,
323                                  uint32_t unknown1,
324                                  uint32_t unknown2);
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,
334                                                     TALLOC_CTX *mem_ctx,
335                                                     struct policy_handle *handle,
336                                                     struct lsa_String *trusted_domain_name,
337                                                     uint16_t unknown,
338                                                     struct lsa_ForestTrustInformation **forest_trust_info);
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,
344                                 TALLOC_CTX *mem_ctx,
345                                 struct lsa_SidArray *sids,
346                                 struct lsa_RefDomainList *domains,
347                                 struct lsa_TransNameArray2 *names,
348                                 uint16_t level,
349                                 uint32_t *count,
350                                 uint32_t unknown1,
351                                 uint32_t unknown2);
352 NTSTATUS rpccli_lsa_LookupNames4(struct rpc_pipe_client *cli,
353                                  TALLOC_CTX *mem_ctx,
354                                  uint32_t num_names,
355                                  struct lsa_String *names,
356                                  struct lsa_RefDomainList *domains,
357                                  struct lsa_TransSidArray3 *sids,
358                                  enum lsa_LookupNamesLevel level,
359                                  uint32_t *count,
360                                  uint32_t unknown1,
361                                  uint32_t unknown2);
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__ */