LCOV - code coverage report
Current view: top level - bin/default/source3/librpc/gen_ndr - ndr_libnet_join.c (source / functions) Hit Total Coverage
Test: coverage report for support-claim-type-attributes 6b5c566e Lines: 126 137 92.0 %
Date: 2023-11-21 12:31:41 Functions: 3 5 60.0 %

          Line data    Source code
       1             : /* parser auto-generated by pidl */
       2             : 
       3             : #include "includes.h"
       4             : #include "bin/default/source3/librpc/gen_ndr/ndr_libnet_join.h"
       5             : 
       6             : #include "librpc/gen_ndr/ndr_wkssvc.h"
       7             : #include "librpc/gen_ndr/ndr_security.h"
       8             : #include "librpc/gen_ndr/ndr_misc.h"
       9             : #include "librpc/gen_ndr/ndr_netlogon.h"
      10             : #include "librpc/gen_ndr/ndr_ODJ.h"
      11             : #include "librpc/gen_ndr/ndr_ads.h"
      12           0 : _PUBLIC_ enum ndr_err_code ndr_push_libnetjoin_JoinDomNameType(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum libnetjoin_JoinDomNameType r)
      13             : {
      14           0 :         NDR_CHECK(ndr_push_enum_uint1632(ndr, NDR_SCALARS, r));
      15           0 :         return NDR_ERR_SUCCESS;
      16             : }
      17             : 
      18           0 : _PUBLIC_ enum ndr_err_code ndr_pull_libnetjoin_JoinDomNameType(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum libnetjoin_JoinDomNameType *r)
      19             : {
      20           0 :         uint16_t v;
      21           0 :         NDR_CHECK(ndr_pull_enum_uint1632(ndr, NDR_SCALARS, &v));
      22           0 :         *r = v;
      23           0 :         return NDR_ERR_SUCCESS;
      24             : }
      25             : 
      26          92 : _PUBLIC_ void ndr_print_libnetjoin_JoinDomNameType(struct ndr_print *ndr, const char *name, enum libnetjoin_JoinDomNameType r)
      27             : {
      28          92 :         const char *val = NULL;
      29             : 
      30          92 :         switch (r) {
      31          46 :                 case JoinDomNameTypeUnknown: val = "JoinDomNameTypeUnknown"; break;
      32          42 :                 case JoinDomNameTypeDNS: val = "JoinDomNameTypeDNS"; break;
      33           4 :                 case JoinDomNameTypeNBT: val = "JoinDomNameTypeNBT"; break;
      34             :         }
      35          92 :         ndr_print_enum(ndr, name, "ENUM", val, r);
      36          92 : }
      37             : 
      38         184 : _PUBLIC_ void ndr_print_libnet_JoinCtx(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct libnet_JoinCtx *r)
      39             : {
      40         184 :         ndr_print_struct(ndr, name, "libnet_JoinCtx");
      41         184 :         if (r == NULL) { ndr_print_null(ndr); return; }
      42         184 :         ndr->depth++;
      43         184 :         if (flags & NDR_SET_VALUES) {
      44          92 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
      45             :         }
      46         184 :         if (flags & NDR_IN) {
      47          92 :                 ndr_print_struct(ndr, "in", "libnet_JoinCtx");
      48          92 :                 ndr->depth++;
      49          92 :                 ndr_print_string(ndr, "dc_name", r->in.dc_name);
      50          92 :                 ndr_print_string(ndr, "machine_name", r->in.machine_name);
      51          92 :                 ndr_print_ptr(ndr, "domain_name", r->in.domain_name);
      52          92 :                 ndr->depth++;
      53          92 :                 ndr_print_string(ndr, "domain_name", r->in.domain_name);
      54          92 :                 ndr->depth--;
      55          92 :                 ndr_print_libnetjoin_JoinDomNameType(ndr, "domain_name_type", r->in.domain_name_type);
      56          92 :                 ndr_print_string(ndr, "account_ou", r->in.account_ou);
      57          92 :                 ndr_print_string(ndr, "admin_account", r->in.admin_account);
      58          92 :                 ndr_print_string(ndr, "admin_domain", r->in.admin_domain);
      59          92 :                 ndr_print_string(ndr, "machine_password", r->in.machine_password);
      60          92 :                 ndr_print_wkssvc_joinflags(ndr, "join_flags", r->in.join_flags);
      61          92 :                 ndr_print_string(ndr, "os_version", r->in.os_version);
      62          92 :                 ndr_print_string(ndr, "os_name", r->in.os_name);
      63          92 :                 ndr_print_string(ndr, "os_servicepack", r->in.os_servicepack);
      64          92 :                 ndr_print_uint8(ndr, "create_upn", r->in.create_upn);
      65          92 :                 ndr_print_string(ndr, "upn", r->in.upn);
      66          92 :                 ndr_print_string(ndr, "dnshostname", r->in.dnshostname);
      67          92 :                 ndr_print_uint8(ndr, "modify_config", r->in.modify_config);
      68          92 :                 ndr_print_ptr(ndr, "ads", r->in.ads);
      69          92 :                 ndr->depth++;
      70          92 :                 if (r->in.ads) {
      71           0 :                         ndr_print_ads_struct(ndr, "ads", r->in.ads);
      72             :                 }
      73          92 :                 ndr->depth--;
      74          92 :                 ndr_print_uint8(ndr, "debug", r->in.debug);
      75          92 :                 ndr_print_uint8(ndr, "use_kerberos", r->in.use_kerberos);
      76          92 :                 ndr_print_netr_SchannelType(ndr, "secure_channel_type", r->in.secure_channel_type);
      77          92 :                 ndr_print_uint32(ndr, "desired_encryption_types", r->in.desired_encryption_types);
      78          92 :                 ndr_print_uint8(ndr, "provision_computer_account_only", r->in.provision_computer_account_only);
      79          92 :                 ndr_print_ptr(ndr, "odj_provision_data", r->in.odj_provision_data);
      80          92 :                 ndr->depth++;
      81          92 :                 if (r->in.odj_provision_data) {
      82          18 :                         ndr_print_ODJ_PROVISION_DATA(ndr, "odj_provision_data", r->in.odj_provision_data);
      83             :                 }
      84          92 :                 ndr->depth--;
      85          92 :                 ndr_print_uint8(ndr, "request_offline_join", r->in.request_offline_join);
      86          92 :                 ndr->depth--;
      87             :         }
      88         184 :         if (flags & NDR_OUT) {
      89          92 :                 ndr_print_struct(ndr, "out", "libnet_JoinCtx");
      90          92 :                 ndr->depth++;
      91          92 :                 ndr_print_ptr(ndr, "odj_provision_data", r->out.odj_provision_data);
      92          92 :                 ndr->depth++;
      93          92 :                 if (r->out.odj_provision_data) {
      94           0 :                         ndr_print_ODJ_PROVISION_DATA(ndr, "odj_provision_data", r->out.odj_provision_data);
      95             :                 }
      96          92 :                 ndr->depth--;
      97          92 :                 ndr_print_string(ndr, "account_name", r->out.account_name);
      98          92 :                 ndr_print_string(ndr, "netbios_domain_name", r->out.netbios_domain_name);
      99          92 :                 ndr_print_string(ndr, "dns_domain_name", r->out.dns_domain_name);
     100          92 :                 ndr_print_string(ndr, "forest_name", r->out.forest_name);
     101          92 :                 ndr_print_string(ndr, "dn", r->out.dn);
     102          92 :                 ndr_print_GUID(ndr, "domain_guid", &r->out.domain_guid);
     103          92 :                 ndr_print_ptr(ndr, "domain_sid", r->out.domain_sid);
     104          92 :                 ndr->depth++;
     105          92 :                 ndr_print_dom_sid(ndr, "domain_sid", r->out.domain_sid);
     106          92 :                 ndr->depth--;
     107          92 :                 ndr_print_uint8(ndr, "modified_config", r->out.modified_config);
     108          92 :                 ndr_print_string(ndr, "error_string", r->out.error_string);
     109          92 :                 ndr_print_uint8(ndr, "domain_is_ad", r->out.domain_is_ad);
     110          92 :                 ndr_print_uint32(ndr, "set_encryption_types", r->out.set_encryption_types);
     111          92 :                 ndr_print_string(ndr, "krb5_salt", r->out.krb5_salt);
     112          92 :                 ndr_print_ptr(ndr, "dcinfo", r->out.dcinfo);
     113          92 :                 ndr->depth++;
     114          92 :                 if (r->out.dcinfo) {
     115          86 :                         ndr_print_netr_DsRGetDCNameInfo(ndr, "dcinfo", r->out.dcinfo);
     116             :                 }
     117          92 :                 ndr->depth--;
     118          92 :                 ndr_print_uint32(ndr, "account_rid", r->out.account_rid);
     119          92 :                 ndr_print_WERROR(ndr, "result", r->out.result);
     120          92 :                 ndr->depth--;
     121             :         }
     122         184 :         ndr->depth--;
     123             : }
     124             : 
     125          68 : _PUBLIC_ void ndr_print_libnet_UnjoinCtx(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct libnet_UnjoinCtx *r)
     126             : {
     127          68 :         ndr_print_struct(ndr, name, "libnet_UnjoinCtx");
     128          68 :         if (r == NULL) { ndr_print_null(ndr); return; }
     129          68 :         ndr->depth++;
     130          68 :         if (flags & NDR_SET_VALUES) {
     131          34 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
     132             :         }
     133          68 :         if (flags & NDR_IN) {
     134          34 :                 ndr_print_struct(ndr, "in", "libnet_UnjoinCtx");
     135          34 :                 ndr->depth++;
     136          34 :                 ndr_print_string(ndr, "dc_name", r->in.dc_name);
     137          34 :                 ndr_print_string(ndr, "machine_name", r->in.machine_name);
     138          34 :                 ndr_print_string(ndr, "domain_name", r->in.domain_name);
     139          34 :                 ndr_print_string(ndr, "account_ou", r->in.account_ou);
     140          34 :                 ndr_print_string(ndr, "admin_account", r->in.admin_account);
     141          34 :                 ndr_print_string(ndr, "admin_domain", r->in.admin_domain);
     142          34 :                 ndr_print_string(ndr, "machine_password", r->in.machine_password);
     143          34 :                 ndr_print_wkssvc_joinflags(ndr, "unjoin_flags", r->in.unjoin_flags);
     144          34 :                 ndr_print_uint8(ndr, "delete_machine_account", r->in.delete_machine_account);
     145          34 :                 ndr_print_uint8(ndr, "modify_config", r->in.modify_config);
     146          34 :                 ndr_print_ptr(ndr, "domain_sid", r->in.domain_sid);
     147          34 :                 ndr->depth++;
     148          34 :                 ndr_print_dom_sid(ndr, "domain_sid", r->in.domain_sid);
     149          34 :                 ndr->depth--;
     150          34 :                 ndr_print_ptr(ndr, "ads", r->in.ads);
     151          34 :                 ndr->depth++;
     152          34 :                 if (r->in.ads) {
     153           0 :                         ndr_print_ads_struct(ndr, "ads", r->in.ads);
     154             :                 }
     155          34 :                 ndr->depth--;
     156          34 :                 ndr_print_uint8(ndr, "debug", r->in.debug);
     157          34 :                 ndr_print_uint8(ndr, "use_kerberos", r->in.use_kerberos);
     158          34 :                 ndr->depth--;
     159             :         }
     160          68 :         if (flags & NDR_OUT) {
     161          34 :                 ndr_print_struct(ndr, "out", "libnet_UnjoinCtx");
     162          34 :                 ndr->depth++;
     163          34 :                 ndr_print_string(ndr, "netbios_domain_name", r->out.netbios_domain_name);
     164          34 :                 ndr_print_string(ndr, "dns_domain_name", r->out.dns_domain_name);
     165          34 :                 ndr_print_string(ndr, "forest_name", r->out.forest_name);
     166          34 :                 ndr_print_uint8(ndr, "modified_config", r->out.modified_config);
     167          34 :                 ndr_print_string(ndr, "error_string", r->out.error_string);
     168          34 :                 ndr_print_uint8(ndr, "disabled_machine_account", r->out.disabled_machine_account);
     169          34 :                 ndr_print_uint8(ndr, "deleted_machine_account", r->out.deleted_machine_account);
     170          34 :                 ndr_print_WERROR(ndr, "result", r->out.result);
     171          34 :                 ndr->depth--;
     172             :         }
     173          68 :         ndr->depth--;
     174             : }
     175             : 
     176             : #ifndef SKIP_NDR_TABLE_libnetjoin
     177             : static const struct ndr_interface_public_struct libnetjoin_public_structs[] = {
     178             :         { .name = NULL }
     179             : };
     180             : 
     181             : static const struct ndr_interface_call libnetjoin_calls[] = {
     182             :         { .name = NULL }
     183             : };
     184             : 
     185             : static const char * const libnetjoin_endpoint_strings[] = {
     186             :         "ncacn_np:[\\pipe\\libnetjoin]", 
     187             : };
     188             : 
     189             : static const struct ndr_interface_string_array libnetjoin_endpoints = {
     190             :         .count  = 1,
     191             :         .names  = libnetjoin_endpoint_strings
     192             : };
     193             : 
     194             : static const char * const libnetjoin_authservice_strings[] = {
     195             :         "host", 
     196             : };
     197             : 
     198             : static const struct ndr_interface_string_array libnetjoin_authservices = {
     199             :         .count  = 1,
     200             :         .names  = libnetjoin_authservice_strings
     201             : };
     202             : 
     203             : 
     204             : const struct ndr_interface_table ndr_table_libnetjoin = {
     205             :         .name           = "libnetjoin",
     206             :         .num_calls      = 0,
     207             :         .calls          = libnetjoin_calls,
     208             :         .num_public_structs     = 0,
     209             :         .public_structs         = libnetjoin_public_structs,
     210             :         .endpoints      = &libnetjoin_endpoints,
     211             :         .authservices   = &libnetjoin_authservices
     212             : };
     213             : 
     214             : #endif /* SKIP_NDR_TABLE_libnetjoin */

Generated by: LCOV version 1.14