NETLOGON pipe improvements
[ira/wip.git] / librpc / gen_ndr / cli_netlogon.h
1 #include "../librpc/gen_ndr/ndr_netlogon.h"
2 #ifndef __CLI_NETLOGON__
3 #define __CLI_NETLOGON__
4 NTSTATUS rpccli_netr_LogonUasLogon(struct rpc_pipe_client *cli,
5                                    TALLOC_CTX *mem_ctx,
6                                    const char *server_name /* [in] [unique,charset(UTF16)] */,
7                                    const char *account_name /* [in] [charset(UTF16)] */,
8                                    const char *workstation /* [in] [charset(UTF16)] */,
9                                    struct netr_UasInfo **info /* [out] [ref] */,
10                                    WERROR *werror);
11 NTSTATUS rpccli_netr_LogonUasLogoff(struct rpc_pipe_client *cli,
12                                     TALLOC_CTX *mem_ctx,
13                                     const char *server_name /* [in] [unique,charset(UTF16)] */,
14                                     const char *account_name /* [in] [charset(UTF16)] */,
15                                     const char *workstation /* [in] [charset(UTF16)] */,
16                                     struct netr_UasLogoffInfo *info /* [out] [ref] */,
17                                     WERROR *werror);
18 NTSTATUS rpccli_netr_LogonSamLogon(struct rpc_pipe_client *cli,
19                                    TALLOC_CTX *mem_ctx,
20                                    const char *server_name /* [in] [unique,charset(UTF16)] */,
21                                    const char *computer_name /* [in] [unique,charset(UTF16)] */,
22                                    struct netr_Authenticator *credential /* [in] [unique] */,
23                                    struct netr_Authenticator *return_authenticator /* [in,out] [unique] */,
24                                    enum netr_LogonInfoClass logon_level /* [in]  */,
25                                    union netr_LogonLevel *logon /* [in] [ref,switch_is(logon_level)] */,
26                                    uint16_t validation_level /* [in]  */,
27                                    union netr_Validation *validation /* [out] [ref,switch_is(validation_level)] */,
28                                    uint8_t *authoritative /* [out] [ref] */);
29 NTSTATUS rpccli_netr_LogonSamLogoff(struct rpc_pipe_client *cli,
30                                     TALLOC_CTX *mem_ctx,
31                                     const char *server_name /* [in] [unique,charset(UTF16)] */,
32                                     const char *computer_name /* [in] [unique,charset(UTF16)] */,
33                                     struct netr_Authenticator *credential /* [in] [unique] */,
34                                     struct netr_Authenticator *return_authenticator /* [in,out] [unique] */,
35                                     enum netr_LogonInfoClass logon_level /* [in]  */,
36                                     union netr_LogonLevel logon /* [in] [switch_is(logon_level)] */);
37 NTSTATUS rpccli_netr_ServerReqChallenge(struct rpc_pipe_client *cli,
38                                         TALLOC_CTX *mem_ctx,
39                                         const char *server_name /* [in] [unique,charset(UTF16)] */,
40                                         const char *computer_name /* [in] [charset(UTF16)] */,
41                                         struct netr_Credential *credentials /* [in] [ref] */,
42                                         struct netr_Credential *return_credentials /* [out] [ref] */);
43 NTSTATUS rpccli_netr_ServerAuthenticate(struct rpc_pipe_client *cli,
44                                         TALLOC_CTX *mem_ctx,
45                                         const char *server_name /* [in] [unique,charset(UTF16)] */,
46                                         const char *account_name /* [in] [charset(UTF16)] */,
47                                         enum netr_SchannelType secure_channel_type /* [in]  */,
48                                         const char *computer_name /* [in] [charset(UTF16)] */,
49                                         struct netr_Credential *credentials /* [in] [ref] */,
50                                         struct netr_Credential *return_credentials /* [out] [ref] */);
51 NTSTATUS rpccli_netr_ServerPasswordSet(struct rpc_pipe_client *cli,
52                                        TALLOC_CTX *mem_ctx,
53                                        const char *server_name /* [in] [unique,charset(UTF16)] */,
54                                        const char *account_name /* [in] [charset(UTF16)] */,
55                                        enum netr_SchannelType secure_channel_type /* [in]  */,
56                                        const char *computer_name /* [in] [charset(UTF16)] */,
57                                        struct netr_Authenticator *credential /* [in] [ref] */,
58                                        struct netr_Authenticator *return_authenticator /* [out] [ref] */,
59                                        struct samr_Password *new_password /* [in] [ref] */);
60 NTSTATUS rpccli_netr_DatabaseDeltas(struct rpc_pipe_client *cli,
61                                     TALLOC_CTX *mem_ctx,
62                                     const char *logon_server /* [in] [charset(UTF16)] */,
63                                     const char *computername /* [in] [charset(UTF16)] */,
64                                     struct netr_Authenticator *credential /* [in] [ref] */,
65                                     struct netr_Authenticator *return_authenticator /* [in,out] [ref] */,
66                                     enum netr_SamDatabaseID database_id /* [in]  */,
67                                     uint64_t *sequence_num /* [in,out] [ref] */,
68                                     struct netr_DELTA_ENUM_ARRAY **delta_enum_array /* [out] [ref] */,
69                                     uint32_t preferredmaximumlength /* [in]  */);
70 NTSTATUS rpccli_netr_DatabaseSync(struct rpc_pipe_client *cli,
71                                   TALLOC_CTX *mem_ctx,
72                                   const char *logon_server /* [in] [charset(UTF16)] */,
73                                   const char *computername /* [in] [charset(UTF16)] */,
74                                   struct netr_Authenticator *credential /* [in] [ref] */,
75                                   struct netr_Authenticator *return_authenticator /* [in,out] [ref] */,
76                                   enum netr_SamDatabaseID database_id /* [in]  */,
77                                   uint32_t *sync_context /* [in,out] [ref] */,
78                                   struct netr_DELTA_ENUM_ARRAY **delta_enum_array /* [out] [ref] */,
79                                   uint32_t preferredmaximumlength /* [in]  */);
80 NTSTATUS rpccli_netr_AccountDeltas(struct rpc_pipe_client *cli,
81                                    TALLOC_CTX *mem_ctx,
82                                    const char *logon_server /* [in] [unique,charset(UTF16)] */,
83                                    const char *computername /* [in] [charset(UTF16)] */,
84                                    struct netr_Authenticator credential /* [in]  */,
85                                    struct netr_Authenticator *return_authenticator /* [in,out] [ref] */,
86                                    struct netr_UAS_INFO_0 uas /* [in]  */,
87                                    uint32_t count /* [in]  */,
88                                    uint32_t level /* [in]  */,
89                                    uint32_t buffersize /* [in]  */,
90                                    struct netr_AccountBuffer *buffer /* [out] [ref,subcontext(4)] */,
91                                    uint32_t *count_returned /* [out] [ref] */,
92                                    uint32_t *total_entries /* [out] [ref] */,
93                                    struct netr_UAS_INFO_0 *recordid /* [out] [ref] */);
94 NTSTATUS rpccli_netr_AccountSync(struct rpc_pipe_client *cli,
95                                  TALLOC_CTX *mem_ctx,
96                                  const char *logon_server /* [in] [unique,charset(UTF16)] */,
97                                  const char *computername /* [in] [charset(UTF16)] */,
98                                  struct netr_Authenticator credential /* [in]  */,
99                                  struct netr_Authenticator *return_authenticator /* [in,out] [ref] */,
100                                  uint32_t reference /* [in]  */,
101                                  uint32_t level /* [in]  */,
102                                  uint32_t buffersize /* [in]  */,
103                                  struct netr_AccountBuffer *buffer /* [out] [ref,subcontext(4)] */,
104                                  uint32_t *count_returned /* [out] [ref] */,
105                                  uint32_t *total_entries /* [out] [ref] */,
106                                  uint32_t *next_reference /* [out] [ref] */,
107                                  struct netr_UAS_INFO_0 *recordid /* [in,out] [ref] */);
108 NTSTATUS rpccli_netr_GetDcName(struct rpc_pipe_client *cli,
109                                TALLOC_CTX *mem_ctx,
110                                const char *logon_server /* [in] [charset(UTF16)] */,
111                                const char *domainname /* [in] [unique,charset(UTF16)] */,
112                                const char **dcname /* [out] [ref,charset(UTF16)] */,
113                                WERROR *werror);
114 NTSTATUS rpccli_netr_LogonControl(struct rpc_pipe_client *cli,
115                                   TALLOC_CTX *mem_ctx,
116                                   const char *logon_server /* [in] [unique,charset(UTF16)] */,
117                                   enum netr_LogonControlCode function_code /* [in]  */,
118                                   uint32_t level /* [in]  */,
119                                   union netr_CONTROL_QUERY_INFORMATION *query /* [out] [ref,switch_is(level)] */,
120                                   WERROR *werror);
121 NTSTATUS rpccli_netr_GetAnyDCName(struct rpc_pipe_client *cli,
122                                   TALLOC_CTX *mem_ctx,
123                                   const char *logon_server /* [in] [unique,charset(UTF16)] */,
124                                   const char *domainname /* [in] [unique,charset(UTF16)] */,
125                                   const char **dcname /* [out] [ref,charset(UTF16)] */,
126                                   WERROR *werror);
127 NTSTATUS rpccli_netr_LogonControl2(struct rpc_pipe_client *cli,
128                                    TALLOC_CTX *mem_ctx,
129                                    const char *logon_server /* [in] [unique,charset(UTF16)] */,
130                                    enum netr_LogonControlCode function_code /* [in]  */,
131                                    uint32_t level /* [in]  */,
132                                    union netr_CONTROL_DATA_INFORMATION *data /* [in] [ref,switch_is(function_code)] */,
133                                    union netr_CONTROL_QUERY_INFORMATION *query /* [out] [ref,switch_is(level)] */,
134                                    WERROR *werror);
135 NTSTATUS rpccli_netr_ServerAuthenticate2(struct rpc_pipe_client *cli,
136                                          TALLOC_CTX *mem_ctx,
137                                          const char *server_name /* [in] [unique,charset(UTF16)] */,
138                                          const char *account_name /* [in] [charset(UTF16)] */,
139                                          enum netr_SchannelType secure_channel_type /* [in]  */,
140                                          const char *computer_name /* [in] [charset(UTF16)] */,
141                                          struct netr_Credential *credentials /* [in] [ref] */,
142                                          struct netr_Credential *return_credentials /* [out] [ref] */,
143                                          uint32_t *negotiate_flags /* [in,out] [ref] */);
144 NTSTATUS rpccli_netr_DatabaseSync2(struct rpc_pipe_client *cli,
145                                    TALLOC_CTX *mem_ctx,
146                                    const char *logon_server /* [in] [charset(UTF16)] */,
147                                    const char *computername /* [in] [charset(UTF16)] */,
148                                    struct netr_Authenticator *credential /* [in] [ref] */,
149                                    struct netr_Authenticator *return_authenticator /* [in,out] [ref] */,
150                                    enum netr_SamDatabaseID database_id /* [in]  */,
151                                    enum SyncStateEnum restart_state /* [in]  */,
152                                    uint32_t *sync_context /* [in,out] [ref] */,
153                                    struct netr_DELTA_ENUM_ARRAY **delta_enum_array /* [out] [ref] */,
154                                    uint32_t preferredmaximumlength /* [in]  */);
155 NTSTATUS rpccli_netr_DatabaseRedo(struct rpc_pipe_client *cli,
156                                   TALLOC_CTX *mem_ctx,
157                                   const char *logon_server /* [in] [charset(UTF16)] */,
158                                   const char *computername /* [in] [charset(UTF16)] */,
159                                   struct netr_Authenticator *credential /* [in] [ref] */,
160                                   struct netr_Authenticator *return_authenticator /* [in,out] [ref] */,
161                                   struct netr_ChangeLogEntry change_log_entry /* [in] [subcontext_size(change_log_entry_size),subcontext(4)] */,
162                                   uint32_t change_log_entry_size /* [in] [value(ndr_size_netr_ChangeLogEntry(&change_log_entry,ndr->iconv_convenience,ndr->flags))] */,
163                                   struct netr_DELTA_ENUM_ARRAY **delta_enum_array /* [out] [ref] */);
164 NTSTATUS rpccli_netr_LogonControl2Ex(struct rpc_pipe_client *cli,
165                                      TALLOC_CTX *mem_ctx,
166                                      const char *logon_server /* [in] [unique,charset(UTF16)] */,
167                                      enum netr_LogonControlCode function_code /* [in]  */,
168                                      uint32_t level /* [in]  */,
169                                      union netr_CONTROL_DATA_INFORMATION *data /* [in] [ref,switch_is(function_code)] */,
170                                      union netr_CONTROL_QUERY_INFORMATION *query /* [out] [ref,switch_is(level)] */,
171                                      WERROR *werror);
172 NTSTATUS rpccli_netr_NetrEnumerateTrustedDomains(struct rpc_pipe_client *cli,
173                                                  TALLOC_CTX *mem_ctx,
174                                                  const char *server_name /* [in] [unique,charset(UTF16)] */,
175                                                  struct netr_Blob *trusted_domains_blob /* [out] [ref] */,
176                                                  WERROR *werror);
177 NTSTATUS rpccli_netr_DsRGetDCName(struct rpc_pipe_client *cli,
178                                   TALLOC_CTX *mem_ctx,
179                                   const char *server_unc /* [in] [unique,charset(UTF16)] */,
180                                   const char *domain_name /* [in] [unique,charset(UTF16)] */,
181                                   struct GUID *domain_guid /* [in] [unique] */,
182                                   struct GUID *site_guid /* [in] [unique] */,
183                                   uint32_t flags /* [in]  */,
184                                   struct netr_DsRGetDCNameInfo **info /* [out] [ref] */,
185                                   WERROR *werror);
186 NTSTATUS rpccli_netr_LogonGetCapabilities(struct rpc_pipe_client *cli,
187                                           TALLOC_CTX *mem_ctx,
188                                           const char *server_name /* [in] [charset(UTF16)] */,
189                                           const char *computer_name /* [in] [unique,charset(UTF16)] */,
190                                           struct netr_Authenticator *credential /* [in] [ref] */,
191                                           struct netr_Authenticator *return_authenticator /* [in,out] [ref] */,
192                                           uint32_t query_level /* [in]  */,
193                                           union netr_Capabilities *capabilities /* [out] [ref,switch_is(query_level)] */);
194 NTSTATUS rpccli_netr_NETRLOGONSETSERVICEBITS(struct rpc_pipe_client *cli,
195                                              TALLOC_CTX *mem_ctx,
196                                              WERROR *werror);
197 NTSTATUS rpccli_netr_LogonGetTrustRid(struct rpc_pipe_client *cli,
198                                       TALLOC_CTX *mem_ctx,
199                                       const char *server_name /* [in] [unique,charset(UTF16)] */,
200                                       const char *domain_name /* [in] [unique,charset(UTF16)] */,
201                                       uint32_t *rid /* [out] [ref] */,
202                                       WERROR *werror);
203 NTSTATUS rpccli_netr_NETRLOGONCOMPUTESERVERDIGEST(struct rpc_pipe_client *cli,
204                                                   TALLOC_CTX *mem_ctx,
205                                                   WERROR *werror);
206 NTSTATUS rpccli_netr_NETRLOGONCOMPUTECLIENTDIGEST(struct rpc_pipe_client *cli,
207                                                   TALLOC_CTX *mem_ctx,
208                                                   WERROR *werror);
209 NTSTATUS rpccli_netr_ServerAuthenticate3(struct rpc_pipe_client *cli,
210                                          TALLOC_CTX *mem_ctx,
211                                          const char *server_name /* [in] [unique,charset(UTF16)] */,
212                                          const char *account_name /* [in] [charset(UTF16)] */,
213                                          enum netr_SchannelType secure_channel_type /* [in]  */,
214                                          const char *computer_name /* [in] [charset(UTF16)] */,
215                                          struct netr_Credential *credentials /* [in] [ref] */,
216                                          struct netr_Credential *return_credentials /* [out] [ref] */,
217                                          uint32_t *negotiate_flags /* [in,out] [ref] */,
218                                          uint32_t *rid /* [out] [ref] */);
219 NTSTATUS rpccli_netr_DsRGetDCNameEx(struct rpc_pipe_client *cli,
220                                     TALLOC_CTX *mem_ctx,
221                                     const char *server_unc /* [in] [unique,charset(UTF16)] */,
222                                     const char *domain_name /* [in] [unique,charset(UTF16)] */,
223                                     struct GUID *domain_guid /* [in] [unique] */,
224                                     const char *site_name /* [in] [unique,charset(UTF16)] */,
225                                     uint32_t flags /* [in]  */,
226                                     struct netr_DsRGetDCNameInfo **info /* [out] [ref] */,
227                                     WERROR *werror);
228 NTSTATUS rpccli_netr_DsRGetSiteName(struct rpc_pipe_client *cli,
229                                     TALLOC_CTX *mem_ctx,
230                                     const char *computer_name /* [in] [unique,charset(UTF16)] */,
231                                     const char **site /* [out] [ref,charset(UTF16)] */,
232                                     WERROR *werror);
233 NTSTATUS rpccli_netr_LogonGetDomainInfo(struct rpc_pipe_client *cli,
234                                         TALLOC_CTX *mem_ctx,
235                                         const char *server_name /* [in] [charset(UTF16)] */,
236                                         const char *computer_name /* [in] [unique,charset(UTF16)] */,
237                                         struct netr_Authenticator *credential /* [in] [ref] */,
238                                         struct netr_Authenticator *return_authenticator /* [in,out] [ref] */,
239                                         uint32_t level /* [in]  */,
240                                         union netr_DomainQuery query /* [in] [switch_is(level)] */,
241                                         union netr_DomainInfo *info /* [out] [ref,switch_is(level)] */);
242 NTSTATUS rpccli_netr_ServerPasswordSet2(struct rpc_pipe_client *cli,
243                                         TALLOC_CTX *mem_ctx,
244                                         const char *server_name /* [in] [unique,charset(UTF16)] */,
245                                         const char *account_name /* [in] [charset(UTF16)] */,
246                                         enum netr_SchannelType secure_channel_type /* [in]  */,
247                                         const char *computer_name /* [in] [charset(UTF16)] */,
248                                         struct netr_Authenticator *credential /* [in] [ref] */,
249                                         struct netr_Authenticator *return_authenticator /* [out] [ref] */,
250                                         struct netr_CryptPassword *new_password /* [in] [ref] */);
251 NTSTATUS rpccli_netr_ServerPasswordGet(struct rpc_pipe_client *cli,
252                                        TALLOC_CTX *mem_ctx,
253                                        const char *server_name /* [in] [unique,charset(UTF16)] */,
254                                        const char *account_name /* [in] [charset(UTF16)] */,
255                                        enum netr_SchannelType secure_channel_type /* [in]  */,
256                                        const char *computer_name /* [in] [charset(UTF16)] */,
257                                        struct netr_Authenticator *credential /* [in] [ref] */,
258                                        struct netr_Authenticator *return_authenticator /* [out] [ref] */,
259                                        struct samr_Password *password /* [out] [ref] */,
260                                        WERROR *werror);
261 NTSTATUS rpccli_netr_NETRLOGONSENDTOSAM(struct rpc_pipe_client *cli,
262                                         TALLOC_CTX *mem_ctx,
263                                         WERROR *werror);
264 NTSTATUS rpccli_netr_DsRAddressToSitenamesW(struct rpc_pipe_client *cli,
265                                             TALLOC_CTX *mem_ctx,
266                                             const char *server_name /* [in] [unique,charset(UTF16)] */,
267                                             uint32_t count /* [in] [range(0,32000)] */,
268                                             struct netr_DsRAddress *addresses /* [in] [ref,size_is(count)] */,
269                                             struct netr_DsRAddressToSitenamesWCtr **ctr /* [out] [ref] */,
270                                             WERROR *werror);
271 NTSTATUS rpccli_netr_DsRGetDCNameEx2(struct rpc_pipe_client *cli,
272                                      TALLOC_CTX *mem_ctx,
273                                      const char *server_unc /* [in] [unique,charset(UTF16)] */,
274                                      const char *client_account /* [in] [unique,charset(UTF16)] */,
275                                      uint32_t mask /* [in]  */,
276                                      const char *domain_name /* [in] [unique,charset(UTF16)] */,
277                                      struct GUID *domain_guid /* [in] [unique] */,
278                                      const char *site_name /* [in] [unique,charset(UTF16)] */,
279                                      uint32_t flags /* [in]  */,
280                                      struct netr_DsRGetDCNameInfo **info /* [out] [ref] */,
281                                      WERROR *werror);
282 NTSTATUS rpccli_netr_NETRLOGONGETTIMESERVICEPARENTDOMAIN(struct rpc_pipe_client *cli,
283                                                          TALLOC_CTX *mem_ctx,
284                                                          WERROR *werror);
285 NTSTATUS rpccli_netr_NetrEnumerateTrustedDomainsEx(struct rpc_pipe_client *cli,
286                                                    TALLOC_CTX *mem_ctx,
287                                                    const char *server_name /* [in] [unique,charset(UTF16)] */,
288                                                    struct netr_DomainTrustList *dom_trust_list /* [out] [ref] */,
289                                                    WERROR *werror);
290 NTSTATUS rpccli_netr_DsRAddressToSitenamesExW(struct rpc_pipe_client *cli,
291                                               TALLOC_CTX *mem_ctx,
292                                               const char *server_name /* [in] [unique,charset(UTF16)] */,
293                                               uint32_t count /* [in] [range(0,32000)] */,
294                                               struct netr_DsRAddress *addresses /* [in] [ref,size_is(count)] */,
295                                               struct netr_DsRAddressToSitenamesExWCtr **ctr /* [out] [ref] */,
296                                               WERROR *werror);
297 NTSTATUS rpccli_netr_DsrGetDcSiteCoverageW(struct rpc_pipe_client *cli,
298                                            TALLOC_CTX *mem_ctx,
299                                            const char *server_name /* [in] [unique,charset(UTF16)] */,
300                                            struct DcSitesCtr **ctr /* [out] [ref] */,
301                                            WERROR *werror);
302 NTSTATUS rpccli_netr_LogonSamLogonEx(struct rpc_pipe_client *cli,
303                                      TALLOC_CTX *mem_ctx,
304                                      const char *server_name /* [in] [unique,charset(UTF16)] */,
305                                      const char *computer_name /* [in] [unique,charset(UTF16)] */,
306                                      enum netr_LogonInfoClass logon_level /* [in]  */,
307                                      union netr_LogonLevel *logon /* [in] [ref,switch_is(logon_level)] */,
308                                      uint16_t validation_level /* [in]  */,
309                                      union netr_Validation *validation /* [out] [ref,switch_is(validation_level)] */,
310                                      uint8_t *authoritative /* [out] [ref] */,
311                                      uint32_t *flags /* [in,out] [ref] */);
312 NTSTATUS rpccli_netr_DsrEnumerateDomainTrusts(struct rpc_pipe_client *cli,
313                                               TALLOC_CTX *mem_ctx,
314                                               const char *server_name /* [in] [unique,charset(UTF16)] */,
315                                               uint32_t trust_flags /* [in]  */,
316                                               struct netr_DomainTrustList *trusts /* [out] [ref] */,
317                                               WERROR *werror);
318 NTSTATUS rpccli_netr_DsrDeregisterDNSHostRecords(struct rpc_pipe_client *cli,
319                                                  TALLOC_CTX *mem_ctx,
320                                                  const char *server_name /* [in] [unique,charset(UTF16)] */,
321                                                  const char *domain /* [in] [unique,charset(UTF16)] */,
322                                                  struct GUID *domain_guid /* [in] [unique] */,
323                                                  struct GUID *dsa_guid /* [in] [unique] */,
324                                                  const char *dns_host /* [in] [ref,charset(UTF16)] */,
325                                                  WERROR *werror);
326 NTSTATUS rpccli_netr_ServerTrustPasswordsGet(struct rpc_pipe_client *cli,
327                                              TALLOC_CTX *mem_ctx,
328                                              const char *server_name /* [in] [unique,charset(UTF16)] */,
329                                              const char *account_name /* [in] [charset(UTF16)] */,
330                                              enum netr_SchannelType secure_channel_type /* [in]  */,
331                                              const char *computer_name /* [in] [charset(UTF16)] */,
332                                              struct netr_Authenticator *credential /* [in] [ref] */,
333                                              struct netr_Authenticator *return_authenticator /* [out] [ref] */,
334                                              struct samr_Password *password /* [out] [ref] */,
335                                              struct samr_Password *password2 /* [out] [ref] */);
336 NTSTATUS rpccli_netr_DsRGetForestTrustInformation(struct rpc_pipe_client *cli,
337                                                   TALLOC_CTX *mem_ctx,
338                                                   const char *server_name /* [in] [unique,charset(UTF16)] */,
339                                                   const char *trusted_domain_name /* [in] [unique,charset(UTF16)] */,
340                                                   uint32_t flags /* [in]  */,
341                                                   struct lsa_ForestTrustInformation **forest_trust_info /* [out] [ref] */,
342                                                   WERROR *werror);
343 NTSTATUS rpccli_netr_GetForestTrustInformation(struct rpc_pipe_client *cli,
344                                                TALLOC_CTX *mem_ctx,
345                                                const char *server_name /* [in] [unique,charset(UTF16)] */,
346                                                const char *trusted_domain_name /* [in] [ref,charset(UTF16)] */,
347                                                struct netr_Authenticator *credential /* [in] [ref] */,
348                                                struct netr_Authenticator *return_authenticator /* [out] [ref] */,
349                                                uint32_t flags /* [in]  */,
350                                                struct lsa_ForestTrustInformation **forest_trust_info /* [out] [ref] */,
351                                                WERROR *werror);
352 NTSTATUS rpccli_netr_LogonSamLogonWithFlags(struct rpc_pipe_client *cli,
353                                             TALLOC_CTX *mem_ctx,
354                                             const char *server_name /* [in] [unique,charset(UTF16)] */,
355                                             const char *computer_name /* [in] [unique,charset(UTF16)] */,
356                                             struct netr_Authenticator *credential /* [in] [unique] */,
357                                             struct netr_Authenticator *return_authenticator /* [in,out] [unique] */,
358                                             enum netr_LogonInfoClass logon_level /* [in]  */,
359                                             union netr_LogonLevel *logon /* [in] [ref,switch_is(logon_level)] */,
360                                             uint16_t validation_level /* [in]  */,
361                                             union netr_Validation *validation /* [out] [ref,switch_is(validation_level)] */,
362                                             uint8_t *authoritative /* [out] [ref] */,
363                                             uint32_t *flags /* [in,out] [ref] */);
364 NTSTATUS rpccli_netr_ServerGetTrustInfo(struct rpc_pipe_client *cli,
365                                         TALLOC_CTX *mem_ctx,
366                                         const char *server_name /* [in] [unique,charset(UTF16)] */,
367                                         const char *account_name /* [in] [ref,charset(UTF16)] */,
368                                         enum netr_SchannelType secure_channel_type /* [in]  */,
369                                         const char *computer_name /* [in] [ref,charset(UTF16)] */,
370                                         struct netr_Authenticator *credential /* [in] [ref] */,
371                                         struct netr_Authenticator *return_authenticator /* [out] [ref] */,
372                                         struct samr_Password *new_owf_password /* [out] [ref] */,
373                                         struct samr_Password *old_owf_password /* [out] [ref] */,
374                                         struct netr_TrustInfo **trust_info /* [out] [ref] */);
375 #endif /* __CLI_NETLOGON__ */