Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-test
[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 NTSTATUS rpccli_lsa_ChangePassword(struct rpc_pipe_client *cli,
24                                    TALLOC_CTX *mem_ctx);
25 NTSTATUS rpccli_lsa_OpenPolicy(struct rpc_pipe_client *cli,
26                                TALLOC_CTX *mem_ctx,
27                                uint16_t *system_name,
28                                struct lsa_ObjectAttribute *attr,
29                                uint32_t access_mask,
30                                struct policy_handle *handle);
31 NTSTATUS rpccli_lsa_QueryInfoPolicy(struct rpc_pipe_client *cli,
32                                     TALLOC_CTX *mem_ctx,
33                                     struct policy_handle *handle,
34                                     enum lsa_PolicyInfo level,
35                                     union lsa_PolicyInformation *info);
36 NTSTATUS rpccli_lsa_SetInfoPolicy(struct rpc_pipe_client *cli,
37                                   TALLOC_CTX *mem_ctx,
38                                   struct policy_handle *handle,
39                                   enum lsa_PolicyInfo level,
40                                   union lsa_PolicyInformation *info);
41 NTSTATUS rpccli_lsa_ClearAuditLog(struct rpc_pipe_client *cli,
42                                   TALLOC_CTX *mem_ctx);
43 NTSTATUS rpccli_lsa_CreateAccount(struct rpc_pipe_client *cli,
44                                   TALLOC_CTX *mem_ctx,
45                                   struct policy_handle *handle,
46                                   struct dom_sid2 *sid,
47                                   uint32_t access_mask,
48                                   struct policy_handle *acct_handle);
49 NTSTATUS rpccli_lsa_EnumAccounts(struct rpc_pipe_client *cli,
50                                  TALLOC_CTX *mem_ctx,
51                                  struct policy_handle *handle,
52                                  uint32_t *resume_handle,
53                                  uint32_t num_entries,
54                                  struct lsa_SidArray *sids);
55 NTSTATUS rpccli_lsa_CreateTrustedDomain(struct rpc_pipe_client *cli,
56                                         TALLOC_CTX *mem_ctx,
57                                         struct policy_handle *handle,
58                                         struct lsa_DomainInfo *info,
59                                         uint32_t access_mask,
60                                         struct policy_handle *trustdom_handle);
61 NTSTATUS rpccli_lsa_EnumTrustDom(struct rpc_pipe_client *cli,
62                                  TALLOC_CTX *mem_ctx,
63                                  struct policy_handle *handle,
64                                  uint32_t *resume_handle,
65                                  uint32_t max_size,
66                                  struct lsa_DomainList *domains);
67 NTSTATUS rpccli_lsa_LookupNames(struct rpc_pipe_client *cli,
68                                 TALLOC_CTX *mem_ctx,
69                                 struct policy_handle *handle,
70                                 uint32_t num_names,
71                                 struct lsa_String *names,
72                                 struct lsa_RefDomainList *domains,
73                                 struct lsa_TransSidArray *sids,
74                                 enum lsa_LookupNamesLevel level,
75                                 uint32_t *count);
76 NTSTATUS rpccli_lsa_LookupSids(struct rpc_pipe_client *cli,
77                                TALLOC_CTX *mem_ctx,
78                                struct policy_handle *handle,
79                                struct lsa_SidArray *sids,
80                                struct lsa_RefDomainList *domains,
81                                struct lsa_TransNameArray *names,
82                                uint16_t level,
83                                uint32_t *count);
84 NTSTATUS rpccli_lsa_CreateSecret(struct rpc_pipe_client *cli,
85                                  TALLOC_CTX *mem_ctx,
86                                  struct policy_handle *handle,
87                                  struct lsa_String name,
88                                  uint32_t access_mask,
89                                  struct policy_handle *sec_handle);
90 NTSTATUS rpccli_lsa_OpenAccount(struct rpc_pipe_client *cli,
91                                 TALLOC_CTX *mem_ctx,
92                                 struct policy_handle *handle,
93                                 struct dom_sid2 *sid,
94                                 uint32_t access_mask,
95                                 struct policy_handle *acct_handle);
96 NTSTATUS rpccli_lsa_EnumPrivsAccount(struct rpc_pipe_client *cli,
97                                      TALLOC_CTX *mem_ctx,
98                                      struct policy_handle *handle,
99                                      struct lsa_PrivilegeSet *privs);
100 NTSTATUS rpccli_lsa_AddPrivilegesToAccount(struct rpc_pipe_client *cli,
101                                            TALLOC_CTX *mem_ctx,
102                                            struct policy_handle *handle,
103                                            struct lsa_PrivilegeSet *privs);
104 NTSTATUS rpccli_lsa_RemovePrivilegesFromAccount(struct rpc_pipe_client *cli,
105                                                 TALLOC_CTX *mem_ctx,
106                                                 struct policy_handle *handle,
107                                                 uint8_t remove_all,
108                                                 struct lsa_PrivilegeSet *privs);
109 NTSTATUS rpccli_lsa_GetQuotasForAccount(struct rpc_pipe_client *cli,
110                                         TALLOC_CTX *mem_ctx);
111 NTSTATUS rpccli_lsa_SetQuotasForAccount(struct rpc_pipe_client *cli,
112                                         TALLOC_CTX *mem_ctx);
113 NTSTATUS rpccli_lsa_GetSystemAccessAccount(struct rpc_pipe_client *cli,
114                                            TALLOC_CTX *mem_ctx);
115 NTSTATUS rpccli_lsa_SetSystemAccessAccount(struct rpc_pipe_client *cli,
116                                            TALLOC_CTX *mem_ctx);
117 NTSTATUS rpccli_lsa_OpenTrustedDomain(struct rpc_pipe_client *cli,
118                                       TALLOC_CTX *mem_ctx,
119                                       struct policy_handle *handle,
120                                       struct dom_sid2 *sid,
121                                       uint32_t access_mask,
122                                       struct policy_handle *trustdom_handle);
123 NTSTATUS rpccli_lsa_QueryTrustedDomainInfo(struct rpc_pipe_client *cli,
124                                            TALLOC_CTX *mem_ctx,
125                                            struct policy_handle *trustdom_handle,
126                                            enum lsa_TrustDomInfoEnum level,
127                                            union lsa_TrustedDomainInfo *info);
128 NTSTATUS rpccli_lsa_SetInformationTrustedDomain(struct rpc_pipe_client *cli,
129                                                 TALLOC_CTX *mem_ctx);
130 NTSTATUS rpccli_lsa_OpenSecret(struct rpc_pipe_client *cli,
131                                TALLOC_CTX *mem_ctx,
132                                struct policy_handle *handle,
133                                struct lsa_String name,
134                                uint32_t access_mask,
135                                struct policy_handle *sec_handle);
136 NTSTATUS rpccli_lsa_SetSecret(struct rpc_pipe_client *cli,
137                               TALLOC_CTX *mem_ctx,
138                               struct policy_handle *sec_handle,
139                               struct lsa_DATA_BUF *new_val,
140                               struct lsa_DATA_BUF *old_val);
141 NTSTATUS rpccli_lsa_QuerySecret(struct rpc_pipe_client *cli,
142                                 TALLOC_CTX *mem_ctx,
143                                 struct policy_handle *sec_handle,
144                                 struct lsa_DATA_BUF_PTR *new_val,
145                                 NTTIME *new_mtime,
146                                 struct lsa_DATA_BUF_PTR *old_val,
147                                 NTTIME *old_mtime);
148 NTSTATUS rpccli_lsa_LookupPrivValue(struct rpc_pipe_client *cli,
149                                     TALLOC_CTX *mem_ctx,
150                                     struct policy_handle *handle,
151                                     struct lsa_String *name,
152                                     struct lsa_LUID *luid);
153 NTSTATUS rpccli_lsa_LookupPrivName(struct rpc_pipe_client *cli,
154                                    TALLOC_CTX *mem_ctx,
155                                    struct policy_handle *handle,
156                                    struct lsa_LUID *luid,
157                                    struct lsa_StringLarge *name);
158 NTSTATUS rpccli_lsa_LookupPrivDisplayName(struct rpc_pipe_client *cli,
159                                           TALLOC_CTX *mem_ctx,
160                                           struct policy_handle *handle,
161                                           struct lsa_String *name,
162                                           struct lsa_StringLarge *disp_name,
163                                           uint16_t *language_id,
164                                           uint16_t unknown);
165 NTSTATUS rpccli_lsa_DeleteObject(struct rpc_pipe_client *cli,
166                                  TALLOC_CTX *mem_ctx);
167 NTSTATUS rpccli_lsa_EnumAccountsWithUserRight(struct rpc_pipe_client *cli,
168                                               TALLOC_CTX *mem_ctx,
169                                               struct policy_handle *handle,
170                                               struct lsa_String *name,
171                                               struct lsa_SidArray *sids);
172 NTSTATUS rpccli_lsa_EnumAccountRights(struct rpc_pipe_client *cli,
173                                       TALLOC_CTX *mem_ctx,
174                                       struct policy_handle *handle,
175                                       struct dom_sid2 *sid,
176                                       struct lsa_RightSet *rights);
177 NTSTATUS rpccli_lsa_AddAccountRights(struct rpc_pipe_client *cli,
178                                      TALLOC_CTX *mem_ctx,
179                                      struct policy_handle *handle,
180                                      struct dom_sid2 *sid,
181                                      struct lsa_RightSet *rights);
182 NTSTATUS rpccli_lsa_RemoveAccountRights(struct rpc_pipe_client *cli,
183                                         TALLOC_CTX *mem_ctx,
184                                         struct policy_handle *handle,
185                                         struct dom_sid2 *sid,
186                                         uint32_t unknown,
187                                         struct lsa_RightSet *rights);
188 NTSTATUS rpccli_lsa_QueryTrustedDomainInfoBySid(struct rpc_pipe_client *cli,
189                                                 TALLOC_CTX *mem_ctx,
190                                                 struct policy_handle *handle,
191                                                 struct dom_sid2 *dom_sid,
192                                                 enum lsa_TrustDomInfoEnum level,
193                                                 union lsa_TrustedDomainInfo *info);
194 NTSTATUS rpccli_lsa_SetTrustedDomainInfo(struct rpc_pipe_client *cli,
195                                          TALLOC_CTX *mem_ctx);
196 NTSTATUS rpccli_lsa_DeleteTrustedDomain(struct rpc_pipe_client *cli,
197                                         TALLOC_CTX *mem_ctx,
198                                         struct policy_handle *handle,
199                                         struct dom_sid2 *dom_sid);
200 NTSTATUS rpccli_lsa_StorePrivateData(struct rpc_pipe_client *cli,
201                                      TALLOC_CTX *mem_ctx);
202 NTSTATUS rpccli_lsa_RetrievePrivateData(struct rpc_pipe_client *cli,
203                                         TALLOC_CTX *mem_ctx);
204 NTSTATUS rpccli_lsa_OpenPolicy2(struct rpc_pipe_client *cli,
205                                 TALLOC_CTX *mem_ctx,
206                                 const char *system_name,
207                                 struct lsa_ObjectAttribute *attr,
208                                 uint32_t access_mask,
209                                 struct policy_handle *handle);
210 NTSTATUS rpccli_lsa_GetUserName(struct rpc_pipe_client *cli,
211                                 TALLOC_CTX *mem_ctx,
212                                 const char *system_name,
213                                 struct lsa_String *account_name,
214                                 struct lsa_StringPointer *authority_name);
215 NTSTATUS rpccli_lsa_QueryInfoPolicy2(struct rpc_pipe_client *cli,
216                                      TALLOC_CTX *mem_ctx,
217                                      struct policy_handle *handle,
218                                      enum lsa_PolicyInfo level,
219                                      union lsa_PolicyInformation *info);
220 NTSTATUS rpccli_lsa_SetInfoPolicy2(struct rpc_pipe_client *cli,
221                                    TALLOC_CTX *mem_ctx,
222                                    struct policy_handle *handle,
223                                    enum lsa_PolicyInfo level,
224                                    union lsa_PolicyInformation *info);
225 NTSTATUS rpccli_lsa_QueryTrustedDomainInfoByName(struct rpc_pipe_client *cli,
226                                                  TALLOC_CTX *mem_ctx,
227                                                  struct policy_handle *handle,
228                                                  struct lsa_String trusted_domain,
229                                                  enum lsa_TrustDomInfoEnum level,
230                                                  union lsa_TrustedDomainInfo *info);
231 NTSTATUS rpccli_lsa_SetTrustedDomainInfoByName(struct rpc_pipe_client *cli,
232                                                TALLOC_CTX *mem_ctx,
233                                                struct policy_handle *handle,
234                                                struct lsa_String trusted_domain,
235                                                enum lsa_TrustDomInfoEnum level,
236                                                union lsa_TrustedDomainInfo *info);
237 NTSTATUS rpccli_lsa_EnumTrustedDomainsEx(struct rpc_pipe_client *cli,
238                                          TALLOC_CTX *mem_ctx,
239                                          struct policy_handle *handle,
240                                          uint32_t *resume_handle,
241                                          struct lsa_DomainListEx *domains,
242                                          uint32_t max_size);
243 NTSTATUS rpccli_lsa_CreateTrustedDomainEx(struct rpc_pipe_client *cli,
244                                           TALLOC_CTX *mem_ctx);
245 NTSTATUS rpccli_lsa_CloseTrustedDomainEx(struct rpc_pipe_client *cli,
246                                          TALLOC_CTX *mem_ctx,
247                                          struct policy_handle *handle);
248 NTSTATUS rpccli_lsa_QueryDomainInformationPolicy(struct rpc_pipe_client *cli,
249                                                  TALLOC_CTX *mem_ctx,
250                                                  struct policy_handle *handle,
251                                                  uint16_t level,
252                                                  union lsa_DomainInformationPolicy *info);
253 NTSTATUS rpccli_lsa_SetDomainInformationPolicy(struct rpc_pipe_client *cli,
254                                                TALLOC_CTX *mem_ctx,
255                                                struct policy_handle *handle,
256                                                uint16_t level,
257                                                union lsa_DomainInformationPolicy *info);
258 NTSTATUS rpccli_lsa_OpenTrustedDomainByName(struct rpc_pipe_client *cli,
259                                             TALLOC_CTX *mem_ctx,
260                                             struct policy_handle *handle,
261                                             struct lsa_String name,
262                                             uint32_t access_mask,
263                                             struct policy_handle *trustdom_handle);
264 NTSTATUS rpccli_lsa_TestCall(struct rpc_pipe_client *cli,
265                              TALLOC_CTX *mem_ctx);
266 NTSTATUS rpccli_lsa_LookupSids2(struct rpc_pipe_client *cli,
267                                 TALLOC_CTX *mem_ctx,
268                                 struct policy_handle *handle,
269                                 struct lsa_SidArray *sids,
270                                 struct lsa_RefDomainList *domains,
271                                 struct lsa_TransNameArray2 *names,
272                                 uint16_t level,
273                                 uint32_t *count,
274                                 uint32_t unknown1,
275                                 uint32_t unknown2);
276 NTSTATUS rpccli_lsa_LookupNames2(struct rpc_pipe_client *cli,
277                                  TALLOC_CTX *mem_ctx,
278                                  struct policy_handle *handle,
279                                  uint32_t num_names,
280                                  struct lsa_String *names,
281                                  struct lsa_RefDomainList *domains,
282                                  struct lsa_TransSidArray2 *sids,
283                                  enum lsa_LookupNamesLevel level,
284                                  uint32_t *count,
285                                  uint32_t unknown1,
286                                  uint32_t unknown2);
287 NTSTATUS rpccli_lsa_CreateTrustedDomainEx2(struct rpc_pipe_client *cli,
288                                            TALLOC_CTX *mem_ctx);
289 NTSTATUS rpccli_lsa_CREDRWRITE(struct rpc_pipe_client *cli,
290                                TALLOC_CTX *mem_ctx);
291 NTSTATUS rpccli_lsa_CREDRREAD(struct rpc_pipe_client *cli,
292                               TALLOC_CTX *mem_ctx);
293 NTSTATUS rpccli_lsa_CREDRENUMERATE(struct rpc_pipe_client *cli,
294                                    TALLOC_CTX *mem_ctx);
295 NTSTATUS rpccli_lsa_CREDRWRITEDOMAINCREDENTIALS(struct rpc_pipe_client *cli,
296                                                 TALLOC_CTX *mem_ctx);
297 NTSTATUS rpccli_lsa_CREDRREADDOMAINCREDENTIALS(struct rpc_pipe_client *cli,
298                                                TALLOC_CTX *mem_ctx);
299 NTSTATUS rpccli_lsa_CREDRDELETE(struct rpc_pipe_client *cli,
300                                 TALLOC_CTX *mem_ctx);
301 NTSTATUS rpccli_lsa_CREDRGETTARGETINFO(struct rpc_pipe_client *cli,
302                                        TALLOC_CTX *mem_ctx);
303 NTSTATUS rpccli_lsa_CREDRPROFILELOADED(struct rpc_pipe_client *cli,
304                                        TALLOC_CTX *mem_ctx);
305 NTSTATUS rpccli_lsa_LookupNames3(struct rpc_pipe_client *cli,
306                                  TALLOC_CTX *mem_ctx,
307                                  struct policy_handle *handle,
308                                  uint32_t num_names,
309                                  struct lsa_String *names,
310                                  struct lsa_RefDomainList *domains,
311                                  struct lsa_TransSidArray3 *sids,
312                                  enum lsa_LookupNamesLevel level,
313                                  uint32_t *count,
314                                  uint32_t unknown1,
315                                  uint32_t unknown2);
316 NTSTATUS rpccli_lsa_CREDRGETSESSIONTYPES(struct rpc_pipe_client *cli,
317                                          TALLOC_CTX *mem_ctx);
318 NTSTATUS rpccli_lsa_LSARREGISTERAUDITEVENT(struct rpc_pipe_client *cli,
319                                            TALLOC_CTX *mem_ctx);
320 NTSTATUS rpccli_lsa_LSARGENAUDITEVENT(struct rpc_pipe_client *cli,
321                                       TALLOC_CTX *mem_ctx);
322 NTSTATUS rpccli_lsa_LSARUNREGISTERAUDITEVENT(struct rpc_pipe_client *cli,
323                                              TALLOC_CTX *mem_ctx);
324 NTSTATUS rpccli_lsa_lsaRQueryForestTrustInformation(struct rpc_pipe_client *cli,
325                                                     TALLOC_CTX *mem_ctx,
326                                                     struct policy_handle *handle,
327                                                     struct lsa_String *trusted_domain_name,
328                                                     uint16_t unknown,
329                                                     struct lsa_ForestTrustInformation **forest_trust_info);
330 NTSTATUS rpccli_lsa_LSARSETFORESTTRUSTINFORMATION(struct rpc_pipe_client *cli,
331                                                   TALLOC_CTX *mem_ctx);
332 NTSTATUS rpccli_lsa_CREDRRENAME(struct rpc_pipe_client *cli,
333                                 TALLOC_CTX *mem_ctx);
334 NTSTATUS rpccli_lsa_LookupSids3(struct rpc_pipe_client *cli,
335                                 TALLOC_CTX *mem_ctx,
336                                 struct lsa_SidArray *sids,
337                                 struct lsa_RefDomainList *domains,
338                                 struct lsa_TransNameArray2 *names,
339                                 uint16_t level,
340                                 uint32_t *count,
341                                 uint32_t unknown1,
342                                 uint32_t unknown2);
343 NTSTATUS rpccli_lsa_LookupNames4(struct rpc_pipe_client *cli,
344                                  TALLOC_CTX *mem_ctx,
345                                  uint32_t num_names,
346                                  struct lsa_String *names,
347                                  struct lsa_RefDomainList *domains,
348                                  struct lsa_TransSidArray3 *sids,
349                                  enum lsa_LookupNamesLevel level,
350                                  uint32_t *count,
351                                  uint32_t unknown1,
352                                  uint32_t unknown2);
353 NTSTATUS rpccli_lsa_LSAROPENPOLICYSCE(struct rpc_pipe_client *cli,
354                                       TALLOC_CTX *mem_ctx);
355 NTSTATUS rpccli_lsa_LSARADTREGISTERSECURITYEVENTSOURCE(struct rpc_pipe_client *cli,
356                                                        TALLOC_CTX *mem_ctx);
357 NTSTATUS rpccli_lsa_LSARADTUNREGISTERSECURITYEVENTSOURCE(struct rpc_pipe_client *cli,
358                                                          TALLOC_CTX *mem_ctx);
359 NTSTATUS rpccli_lsa_LSARADTREPORTSECURITYEVENT(struct rpc_pipe_client *cli,
360                                                TALLOC_CTX *mem_ctx);
361 #endif /* __CLI_LSARPC__ */