3f64bb450dce52f1a6f4f07ab65b0d4174e5332a
[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                               uint32_t max_count,
15                               struct lsa_PrivArray *privs);
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                                  uint32_t num_entries,
57                                  struct lsa_SidArray *sids);
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                                  uint32_t max_size,
69                                  struct lsa_DomainList *domains);
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                                           struct lsa_StringLarge *disp_name,
170                                           uint16_t *language_id,
171                                           uint16_t unknown);
172 NTSTATUS rpccli_lsa_DeleteObject(struct rpc_pipe_client *cli,
173                                  TALLOC_CTX *mem_ctx,
174                                  struct policy_handle *handle);
175 NTSTATUS rpccli_lsa_EnumAccountsWithUserRight(struct rpc_pipe_client *cli,
176                                               TALLOC_CTX *mem_ctx,
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,
181                                       TALLOC_CTX *mem_ctx,
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,
186                                      TALLOC_CTX *mem_ctx,
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,
191                                         TALLOC_CTX *mem_ctx,
192                                         struct policy_handle *handle,
193                                         struct dom_sid2 *sid,
194                                         uint32_t unknown,
195                                         struct lsa_RightSet *rights);
196 NTSTATUS rpccli_lsa_QueryTrustedDomainInfoBySid(struct rpc_pipe_client *cli,
197                                                 TALLOC_CTX *mem_ctx,
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,
205                                         TALLOC_CTX *mem_ctx,
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,
213                                 TALLOC_CTX *mem_ctx,
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,
219                                 TALLOC_CTX *mem_ctx,
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,
224                                      TALLOC_CTX *mem_ctx,
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,
229                                    TALLOC_CTX *mem_ctx,
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,
234                                                  TALLOC_CTX *mem_ctx,
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,
240                                                TALLOC_CTX *mem_ctx,
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,
246                                          TALLOC_CTX *mem_ctx,
247                                          struct policy_handle *handle,
248                                          uint32_t *resume_handle,
249                                          struct lsa_DomainListEx *domains,
250                                          uint32_t max_size);
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,
254                                          TALLOC_CTX *mem_ctx,
255                                          struct policy_handle *handle);
256 NTSTATUS rpccli_lsa_QueryDomainInformationPolicy(struct rpc_pipe_client *cli,
257                                                  TALLOC_CTX *mem_ctx,
258                                                  struct policy_handle *handle,
259                                                  uint16_t level,
260                                                  union lsa_DomainInformationPolicy *info);
261 NTSTATUS rpccli_lsa_SetDomainInformationPolicy(struct rpc_pipe_client *cli,
262                                                TALLOC_CTX *mem_ctx,
263                                                struct policy_handle *handle,
264                                                uint16_t level,
265                                                union lsa_DomainInformationPolicy *info);
266 NTSTATUS rpccli_lsa_OpenTrustedDomainByName(struct rpc_pipe_client *cli,
267                                             TALLOC_CTX *mem_ctx,
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,
275                                 TALLOC_CTX *mem_ctx,
276                                 struct policy_handle *handle,
277                                 struct lsa_SidArray *sids,
278                                 struct lsa_RefDomainList *domains,
279                                 struct lsa_TransNameArray2 *names,
280                                 uint16_t level,
281                                 uint32_t *count,
282                                 uint32_t unknown1,
283                                 uint32_t unknown2);
284 NTSTATUS rpccli_lsa_LookupNames2(struct rpc_pipe_client *cli,
285                                  TALLOC_CTX *mem_ctx,
286                                  struct policy_handle *handle,
287                                  uint32_t num_names,
288                                  struct lsa_String *names,
289                                  struct lsa_RefDomainList *domains,
290                                  struct lsa_TransSidArray2 *sids,
291                                  enum lsa_LookupNamesLevel level,
292                                  uint32_t *count,
293                                  uint32_t unknown1,
294                                  uint32_t unknown2);
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,
314                                  TALLOC_CTX *mem_ctx,
315                                  struct policy_handle *handle,
316                                  uint32_t num_names,
317                                  struct lsa_String *names,
318                                  struct lsa_RefDomainList *domains,
319                                  struct lsa_TransSidArray3 *sids,
320                                  enum lsa_LookupNamesLevel level,
321                                  uint32_t *count,
322                                  uint32_t unknown1,
323                                  uint32_t unknown2);
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,
333                                                     TALLOC_CTX *mem_ctx,
334                                                     struct policy_handle *handle,
335                                                     struct lsa_String *trusted_domain_name,
336                                                     uint16_t unknown,
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,
343                                 TALLOC_CTX *mem_ctx,
344                                 struct lsa_SidArray *sids,
345                                 struct lsa_RefDomainList *domains,
346                                 struct lsa_TransNameArray2 *names,
347                                 uint16_t level,
348                                 uint32_t *count,
349                                 uint32_t unknown1,
350                                 uint32_t unknown2);
351 NTSTATUS rpccli_lsa_LookupNames4(struct rpc_pipe_client *cli,
352                                  TALLOC_CTX *mem_ctx,
353                                  uint32_t num_names,
354                                  struct lsa_String *names,
355                                  struct lsa_RefDomainList *domains,
356                                  struct lsa_TransSidArray3 *sids,
357                                  enum lsa_LookupNamesLevel level,
358                                  uint32_t *count,
359                                  uint32_t unknown1,
360                                  uint32_t unknown2);
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__ */