_PUBLIC_ void ndr_print_echo_TestCall(struct ndr_print *ndr, const char *name, int flags, const struct echo_TestCall *r) { ndr_print_struct(ndr, name, "echo_TestCall"); ndr->depth++; if (flags & NDR_SET_VALUES) { ndr->flags |= LIBNDR_PRINT_SET_VALUES; } if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "echo_TestCall"); ndr->depth++; ndr_print_ptr(ndr, "s1", r->in.s1); ndr->depth++; ndr_print_string(ndr, "s1", r->in.s1); ndr->depth--; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "echo_TestCall"); ndr->depth++; ndr_print_ptr(ndr, "s2", r->out.s2); ndr->depth++; ndr_print_ptr(ndr, "s2", *r->out.s2); ndr->depth++; if (*r->out.s2) { ndr_print_string(ndr, "s2", *r->out.s2); } ndr->depth--; ndr->depth--; ndr->depth--; } ndr->depth--; }
_PUBLIC_ void ndr_print_echo_TestSurrounding(struct ndr_print *ndr, const char *name, int flags, const struct echo_TestSurrounding *r) { ndr_print_struct(ndr, name, "echo_TestSurrounding"); ndr->depth++; if (flags & NDR_SET_VALUES) { ndr->flags |= LIBNDR_PRINT_SET_VALUES; } if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "echo_TestSurrounding"); ndr->depth++; ndr_print_ptr(ndr, "data", r->in.data); ndr->depth++; ndr_print_echo_Surrounding(ndr, "data", r->in.data); ndr->depth--; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "echo_TestSurrounding"); ndr->depth++; ndr_print_ptr(ndr, "data", r->out.data); ndr->depth++; ndr_print_echo_Surrounding(ndr, "data", r->out.data); ndr->depth--; ndr->depth--; } ndr->depth--; }
_PUBLIC_ void ndr_print_dssetup_DsRolePrimaryDomInfoBasic(struct ndr_print *ndr, const char *name, const struct dssetup_DsRolePrimaryDomInfoBasic *r) { ndr_print_struct(ndr, name, "dssetup_DsRolePrimaryDomInfoBasic"); if (r == NULL) { ndr_print_null(ndr); return; } ndr->depth++; ndr_print_dssetup_DsRole(ndr, "role", r->role); ndr_print_dssetup_DsRoleFlags(ndr, "flags", r->flags); ndr_print_ptr(ndr, "domain", r->domain); ndr->depth++; if (r->domain) { ndr_print_string(ndr, "domain", r->domain); } ndr->depth--; ndr_print_ptr(ndr, "dns_domain", r->dns_domain); ndr->depth++; if (r->dns_domain) { ndr_print_string(ndr, "dns_domain", r->dns_domain); } ndr->depth--; ndr_print_ptr(ndr, "forest", r->forest); ndr->depth++; if (r->forest) { ndr_print_string(ndr, "forest", r->forest); } ndr->depth--; ndr_print_GUID(ndr, "domain_guid", &r->domain_guid); ndr->depth--; }
_PUBLIC_ void ndr_print_frsapi_GetDsPollingIntervalW(struct ndr_print *ndr, const char *name, int flags, const struct frsapi_GetDsPollingIntervalW *r) { ndr_print_struct(ndr, name, "frsapi_GetDsPollingIntervalW"); if (r == NULL) { ndr_print_null(ndr); return; } ndr->depth++; if (flags & NDR_SET_VALUES) { ndr->flags |= LIBNDR_PRINT_SET_VALUES; } if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "frsapi_GetDsPollingIntervalW"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "frsapi_GetDsPollingIntervalW"); ndr->depth++; ndr_print_ptr(ndr, "CurrentInterval", r->out.CurrentInterval); ndr->depth++; ndr_print_uint32(ndr, "CurrentInterval", *r->out.CurrentInterval); ndr->depth--; ndr_print_ptr(ndr, "DsPollingLongInterval", r->out.DsPollingLongInterval); ndr->depth++; ndr_print_uint32(ndr, "DsPollingLongInterval", *r->out.DsPollingLongInterval); ndr->depth--; ndr_print_ptr(ndr, "DsPollingShortInterval", r->out.DsPollingShortInterval); ndr->depth++; ndr_print_uint32(ndr, "DsPollingShortInterval", *r->out.DsPollingShortInterval); ndr->depth--; ndr_print_WERROR(ndr, "result", r->out.result); ndr->depth--; } ndr->depth--; }
_PUBLIC_ void ndr_print_rot_add(struct ndr_print *ndr, const char *name, int flags, const struct rot_add *r) { ndr_print_struct(ndr, name, "rot_add"); if (r == NULL) { ndr_print_null(ndr); return; } ndr->depth++; if (flags & NDR_SET_VALUES) { ndr->flags |= LIBNDR_PRINT_SET_VALUES; } if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "rot_add"); ndr->depth++; ndr_print_uint32(ndr, "flags", r->in.flags); ndr_print_ptr(ndr, "unk", r->in.unk); ndr->depth++; ndr_print_MInterfacePointer(ndr, "unk", r->in.unk); ndr->depth--; ndr_print_ptr(ndr, "moniker", r->in.moniker); ndr->depth++; ndr_print_MInterfacePointer(ndr, "moniker", r->in.moniker); ndr->depth--; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "rot_add"); ndr->depth++; ndr_print_ptr(ndr, "rotid", r->out.rotid); ndr->depth++; ndr_print_uint32(ndr, "rotid", *r->out.rotid); ndr->depth--; ndr_print_WERROR(ndr, "result", r->out.result); ndr->depth--; } ndr->depth--; }
_PUBLIC_ void ndr_print_frsapi_InfoW(struct ndr_print *ndr, const char *name, int flags, const struct frsapi_InfoW *r) { ndr_print_struct(ndr, name, "frsapi_InfoW"); if (r == NULL) { ndr_print_null(ndr); return; } ndr->depth++; if (flags & NDR_SET_VALUES) { ndr->flags |= LIBNDR_PRINT_SET_VALUES; } if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "frsapi_InfoW"); ndr->depth++; ndr_print_uint32(ndr, "length", r->in.length); ndr_print_ptr(ndr, "info", r->in.info); ndr->depth++; if (r->in.info) { ndr_print_frsapi_Info(ndr, "info", r->in.info); } ndr->depth--; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "frsapi_InfoW"); ndr->depth++; ndr_print_ptr(ndr, "info", r->out.info); ndr->depth++; if (r->out.info) { ndr_print_frsapi_Info(ndr, "info", r->out.info); } ndr->depth--; ndr_print_WERROR(ndr, "result", r->out.result); ndr->depth--; } ndr->depth--; }
_PUBLIC_ void ndr_print_libnet_JoinCtx(struct ndr_print *ndr, const char *name, int flags, const struct libnet_JoinCtx *r) { ndr_print_struct(ndr, name, "libnet_JoinCtx"); ndr->depth++; if (flags & NDR_SET_VALUES) { ndr->flags |= LIBNDR_PRINT_SET_VALUES; } if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "libnet_JoinCtx"); ndr->depth++; ndr_print_string(ndr, "dc_name", r->in.dc_name); ndr_print_string(ndr, "machine_name", r->in.machine_name); ndr_print_ptr(ndr, "domain_name", r->in.domain_name); ndr->depth++; ndr_print_string(ndr, "domain_name", r->in.domain_name); ndr->depth--; ndr_print_string(ndr, "account_ou", r->in.account_ou); ndr_print_string(ndr, "admin_account", r->in.admin_account); #ifdef DEBUG_PASSWORD ndr_print_string(ndr, "admin_password", r->in.admin_password); ndr_print_string(ndr, "machine_password", r->in.machine_password); #else ndr_print_ptr(ndr, "admin_password", r->in.admin_password); ndr_print_ptr(ndr, "machine_password", r->in.machine_password); #endif ndr_print_wkssvc_joinflags(ndr, "join_flags", r->in.join_flags); ndr_print_string(ndr, "os_version", r->in.os_version); ndr_print_string(ndr, "os_name", r->in.os_name); ndr_print_uint8(ndr, "create_upn", r->in.create_upn); ndr_print_string(ndr, "upn", r->in.upn); ndr_print_uint8(ndr, "modify_config", r->in.modify_config); ndr_print_ptr(ndr, "ads", r->in.ads); ndr->depth++; ndr_print_ads_struct(ndr, "ads", r->in.ads); ndr->depth--; ndr_print_uint8(ndr, "debug", r->in.debug); ndr_print_uint8(ndr, "use_kerberos", r->in.use_kerberos); ndr_print_netr_SchannelType(ndr, "secure_channel_type", r->in.secure_channel_type); ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "libnet_JoinCtx"); ndr->depth++; ndr_print_string(ndr, "account_name", r->out.account_name); ndr_print_string(ndr, "netbios_domain_name", r->out.netbios_domain_name); ndr_print_string(ndr, "dns_domain_name", r->out.dns_domain_name); ndr_print_string(ndr, "forest_name", r->out.forest_name); ndr_print_string(ndr, "dn", r->out.dn); ndr_print_ptr(ndr, "domain_sid", r->out.domain_sid); ndr->depth++; ndr_print_dom_sid(ndr, "domain_sid", r->out.domain_sid); ndr->depth--; ndr_print_uint8(ndr, "modified_config", r->out.modified_config); ndr_print_string(ndr, "error_string", r->out.error_string); ndr_print_uint8(ndr, "domain_is_ad", r->out.domain_is_ad); ndr_print_WERROR(ndr, "result", r->out.result); ndr->depth--; } ndr->depth--; }
_PUBLIC_ void ndr_print_rot_get_modification_time(struct ndr_print *ndr, const char *name, int flags, const struct rot_get_modification_time *r) { ndr_print_struct(ndr, name, "rot_get_modification_time"); if (r == NULL) { ndr_print_null(ndr); return; } ndr->depth++; if (flags & NDR_SET_VALUES) { ndr->flags |= LIBNDR_PRINT_SET_VALUES; } if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "rot_get_modification_time"); ndr->depth++; ndr_print_ptr(ndr, "moniker", r->in.moniker); ndr->depth++; ndr_print_MInterfacePointer(ndr, "moniker", r->in.moniker); ndr->depth--; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "rot_get_modification_time"); ndr->depth++; ndr_print_ptr(ndr, "t", r->out.t); ndr->depth++; ndr_print_NTTIME(ndr, "t", *r->out.t); ndr->depth--; ndr_print_WERROR(ndr, "result", r->out.result); ndr->depth--; } ndr->depth--; }
_PUBLIC_ void ndr_print_xattr_NTACL_Info(struct ndr_print *ndr, const char *name, const union xattr_NTACL_Info *r) { int level; level = ndr_print_get_switch_value(ndr, r); ndr_print_union(ndr, name, level, "xattr_NTACL_Info"); switch (level) { case 1: ndr_print_ptr(ndr, "sd", r->sd); ndr->depth++; if (r->sd) { ndr_print_security_descriptor(ndr, "sd", r->sd); } ndr->depth--; break; case 2: ndr_print_ptr(ndr, "sd_hs", r->sd_hs); ndr->depth++; if (r->sd_hs) { ndr_print_security_descriptor_hash(ndr, "sd_hs", r->sd_hs); } ndr->depth--; break; default: ndr_print_bad_level(ndr, name, level); } }
_PUBLIC_ void ndr_print_echo_TestDoublePointer(struct ndr_print *ndr, const char *name, int flags, const struct echo_TestDoublePointer *r) { ndr_print_struct(ndr, name, "echo_TestDoublePointer"); ndr->depth++; if (flags & NDR_SET_VALUES) { ndr->flags |= LIBNDR_PRINT_SET_VALUES; } if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "echo_TestDoublePointer"); ndr->depth++; ndr_print_ptr(ndr, "data", r->in.data); ndr->depth++; ndr_print_ptr(ndr, "data", *r->in.data); ndr->depth++; if (*r->in.data) { ndr_print_ptr(ndr, "data", **r->in.data); ndr->depth++; if (**r->in.data) { ndr_print_uint16(ndr, "data", ***r->in.data); } ndr->depth--; } ndr->depth--; ndr->depth--; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "echo_TestDoublePointer"); ndr->depth++; ndr_print_uint16(ndr, "result", r->out.result); ndr->depth--; } ndr->depth--; }
_PUBLIC_ void ndr_print_pcap_printer(struct ndr_print *ndr, const char *name, const struct pcap_printer *r) { ndr_print_struct(ndr, name, "pcap_printer"); if (r == NULL) { ndr_print_null(ndr); return; } ndr->depth++; ndr_print_ptr(ndr, "name", r->name); ndr->depth++; if (r->name) { ndr_print_string(ndr, "name", r->name); } ndr->depth--; ndr_print_ptr(ndr, "info", r->info); ndr->depth++; if (r->info) { ndr_print_string(ndr, "info", r->info); } ndr->depth--; ndr_print_ptr(ndr, "location", r->location); ndr->depth++; if (r->location) { ndr_print_string(ndr, "location", r->location); } ndr->depth--; ndr->depth--; }
void ndr_print_winbindd_cm_conn(struct ndr_print *ndr, const char *name, const struct winbindd_cm_conn *r) { ndr_print_struct(ndr, name, "winbindd_cm_conn"); ndr->depth++; ndr_print_ptr(ndr, "cli", r->cli); ndr_print_ptr(ndr, "samr_pipe", r->samr_pipe); ndr_print_policy_handle(ndr, "sam_connect_handle", &r->sam_connect_handle); ndr_print_policy_handle(ndr, "sam_domain_handle", &r->sam_domain_handle); ndr_print_ptr(ndr, "lsa_pipe", r->lsa_pipe); ndr_print_policy_handle(ndr, "lsa_policy", &r->lsa_policy); ndr_print_ptr(ndr, "netlogon_pipe", r->netlogon_pipe); ndr->depth--; }
_PUBLIC_ void ndr_print_initshutdown_Abort(struct ndr_print *ndr, const char *name, int flags, const struct initshutdown_Abort *r) { ndr_print_struct(ndr, name, "initshutdown_Abort"); if (r == NULL) { ndr_print_null(ndr); return; } ndr->depth++; if (flags & NDR_SET_VALUES) { ndr->flags |= LIBNDR_PRINT_SET_VALUES; } if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "initshutdown_Abort"); ndr->depth++; ndr_print_ptr(ndr, "server", r->in.server); ndr->depth++; if (r->in.server) { ndr_print_uint16(ndr, "server", *r->in.server); } ndr->depth--; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "initshutdown_Abort"); ndr->depth++; ndr_print_WERROR(ndr, "result", r->out.result); ndr->depth--; } ndr->depth--; }
_PUBLIC_ void ndr_print_echo_TestCall2(struct ndr_print *ndr, const char *name, int flags, const struct echo_TestCall2 *r) { ndr_print_struct(ndr, name, "echo_TestCall2"); ndr->depth++; if (flags & NDR_SET_VALUES) { ndr->flags |= LIBNDR_PRINT_SET_VALUES; } if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "echo_TestCall2"); ndr->depth++; ndr_print_uint16(ndr, "level", r->in.level); ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "echo_TestCall2"); ndr->depth++; ndr_print_ptr(ndr, "info", r->out.info); ndr->depth++; ndr_print_set_switch_value(ndr, r->out.info, r->in.level); ndr_print_echo_Info(ndr, "info", r->out.info); ndr->depth--; ndr_print_NTSTATUS(ndr, "result", r->out.result); ndr->depth--; } ndr->depth--; }
static void _print_drsuapi_DsAttributeValueCtr(struct ndr_print *ndr, const char *name, const struct drsuapi_DsAttributeValueCtr *r, void (*print_val_fn)(struct ndr_print *ndr, const char *name, const struct drsuapi_DsAttributeValue *r)) { uint32_t cntr_values_1; ndr_print_struct(ndr, name, "drsuapi_DsAttributeValueCtr"); ndr->depth++; ndr_print_uint32(ndr, "num_values", r->num_values); ndr_print_ptr(ndr, "values", r->values); ndr->depth++; if (r->values) { ndr->print(ndr, "%s: ARRAY(%d)", "values", (int)r->num_values); ndr->depth++; for (cntr_values_1=0;cntr_values_1<r->num_values;cntr_values_1++) { char *idx_1=NULL; if (asprintf(&idx_1, "[%d]", cntr_values_1) != -1) { //ndr_print_drsuapi_DsAttributeValue(ndr, "values", &r->values[cntr_values_1]); print_val_fn(ndr, "values", &r->values[cntr_values_1]); free(idx_1); } } ndr->depth--; } ndr->depth--; ndr->depth--; }
_PUBLIC_ void ndr_print_dssetup_DsRoleGetPrimaryDomainInformation(struct ndr_print *ndr, const char *name, int flags, const struct dssetup_DsRoleGetPrimaryDomainInformation *r) { ndr_print_struct(ndr, name, "dssetup_DsRoleGetPrimaryDomainInformation"); if (r == NULL) { ndr_print_null(ndr); return; } ndr->depth++; if (flags & NDR_SET_VALUES) { ndr->flags |= LIBNDR_PRINT_SET_VALUES; } if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "dssetup_DsRoleGetPrimaryDomainInformation"); ndr->depth++; ndr_print_dssetup_DsRoleInfoLevel(ndr, "level", r->in.level); ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "dssetup_DsRoleGetPrimaryDomainInformation"); ndr->depth++; ndr_print_ptr(ndr, "info", r->out.info); ndr->depth++; if (r->out.info) { ndr_print_set_switch_value(ndr, r->out.info, r->in.level); ndr_print_dssetup_DsRoleInfo(ndr, "info", r->out.info); } ndr->depth--; ndr_print_WERROR(ndr, "result", r->out.result); ndr->depth--; } ndr->depth--; }
_PUBLIC_ void ndr_print_rot_enum(struct ndr_print *ndr, const char *name, int flags, const struct rot_enum *r) { ndr_print_struct(ndr, name, "rot_enum"); if (r == NULL) { ndr_print_null(ndr); return; } ndr->depth++; if (flags & NDR_SET_VALUES) { ndr->flags |= LIBNDR_PRINT_SET_VALUES; } if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "rot_enum"); ndr->depth++; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "rot_enum"); ndr->depth++; ndr_print_ptr(ndr, "EnumMoniker", r->out.EnumMoniker); ndr->depth++; ndr_print_MInterfacePointer(ndr, "EnumMoniker", r->out.EnumMoniker); ndr->depth--; ndr_print_WERROR(ndr, "result", r->out.result); ndr->depth--; } ndr->depth--; }
_PUBLIC_ void ndr_print_frsapi_ForceReplication(struct ndr_print *ndr, const char *name, int flags, const struct frsapi_ForceReplication *r) { ndr_print_struct(ndr, name, "frsapi_ForceReplication"); if (r == NULL) { ndr_print_null(ndr); return; } ndr->depth++; if (flags & NDR_SET_VALUES) { ndr->flags |= LIBNDR_PRINT_SET_VALUES; } if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "frsapi_ForceReplication"); ndr->depth++; ndr_print_ptr(ndr, "replica_set_guid", r->in.replica_set_guid); ndr->depth++; if (r->in.replica_set_guid) { ndr_print_GUID(ndr, "replica_set_guid", r->in.replica_set_guid); } ndr->depth--; ndr_print_ptr(ndr, "connection_guid", r->in.connection_guid); ndr->depth++; if (r->in.connection_guid) { ndr_print_GUID(ndr, "connection_guid", r->in.connection_guid); } ndr->depth--; ndr_print_ptr(ndr, "replica_set_name", r->in.replica_set_name); ndr->depth++; if (r->in.replica_set_name) { ndr_print_string(ndr, "replica_set_name", r->in.replica_set_name); } ndr->depth--; ndr_print_ptr(ndr, "partner_dns_name", r->in.partner_dns_name); ndr->depth++; if (r->in.partner_dns_name) { ndr_print_string(ndr, "partner_dns_name", r->in.partner_dns_name); } ndr->depth--; ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "frsapi_ForceReplication"); ndr->depth++; ndr_print_WERROR(ndr, "result", r->out.result); ndr->depth--; } ndr->depth--; }
void ndr_print_winbindd_child(struct ndr_print *ndr, const char *name, const struct winbindd_child *r) { ndr_print_struct(ndr, name, "winbindd_child"); ndr->depth++; ndr_print_uint32(ndr, "pid", (uint32_t)r->pid); #if 0 ndr_print_winbindd_domain(ndr, "domain", r->domain); #else ndr_print_ptr(ndr, "domain", r->domain); #endif ndr_print_string(ndr, "logfilename", r->logfilename); /* struct fd_event event; */ ndr_print_ptr(ndr, "lockout_policy_event", r->lockout_policy_event); ndr_print_ptr(ndr, "table", r->table); ndr->depth--; }
_PUBLIC_ void ndr_print_frsapi_IsPathReplicated(struct ndr_print *ndr, const char *name, int flags, const struct frsapi_IsPathReplicated *r) { ndr_print_struct(ndr, name, "frsapi_IsPathReplicated"); if (r == NULL) { ndr_print_null(ndr); return; } ndr->depth++; if (flags & NDR_SET_VALUES) { ndr->flags |= LIBNDR_PRINT_SET_VALUES; } if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "frsapi_IsPathReplicated"); ndr->depth++; ndr_print_ptr(ndr, "path", r->in.path); ndr->depth++; if (r->in.path) { ndr_print_string(ndr, "path", r->in.path); } ndr->depth--; ndr_print_frsapi_ReplicaSetType(ndr, "replica_set_type", r->in.replica_set_type); ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "frsapi_IsPathReplicated"); ndr->depth++; ndr_print_ptr(ndr, "replicated", r->out.replicated); ndr->depth++; ndr_print_uint32(ndr, "replicated", *r->out.replicated); ndr->depth--; ndr_print_ptr(ndr, "primary", r->out.primary); ndr->depth++; ndr_print_uint32(ndr, "primary", *r->out.primary); ndr->depth--; ndr_print_ptr(ndr, "root", r->out.root); ndr->depth++; ndr_print_uint32(ndr, "root", *r->out.root); ndr->depth--; ndr_print_ptr(ndr, "replica_set_guid", r->out.replica_set_guid); ndr->depth++; ndr_print_GUID(ndr, "replica_set_guid", r->out.replica_set_guid); ndr->depth--; ndr_print_WERROR(ndr, "result", r->out.result); ndr->depth--; } ndr->depth--; }
_PUBLIC_ void ndr_print_trustAuthInOutBlob(struct ndr_print *ndr, const char *name, const struct trustAuthInOutBlob *r) { ndr_print_struct(ndr, name, "trustAuthInOutBlob"); ndr->depth++; ndr_print_uint32(ndr, "count", r->count); ndr_print_ptr(ndr, "current", r->current); ndr->depth++; if (r->current) { ndr_print_AuthenticationInformationArray_with_count(ndr, "current", r->count, r->current); } ndr->depth--; ndr_print_ptr(ndr, "previous", r->previous); ndr->depth++; if (r->previous) { ndr_print_AuthenticationInformationArray_with_count(ndr, "previous", r->count, r->previous); } ndr->depth--; ndr->depth--; }
_PUBLIC_ void ndr_print_security_token(struct ndr_print *ndr, const char *name, const struct security_token *r) { uint32_t cntr_sids_0; ndr_print_struct(ndr, name, "security_token"); ndr->depth++; ndr_print_ptr(ndr, "user_sid", r->user_sid); ndr->depth++; if (r->user_sid) { ndr_print_dom_sid(ndr, "user_sid", r->user_sid); } ndr->depth--; ndr_print_ptr(ndr, "group_sid", r->group_sid); ndr->depth++; if (r->group_sid) { ndr_print_dom_sid(ndr, "group_sid", r->group_sid); } ndr->depth--; ndr_print_uint32(ndr, "num_sids", r->num_sids); ndr->print(ndr, "%s: ARRAY(%d)", "sids", (int)r->num_sids); ndr->depth++; for (cntr_sids_0=0;cntr_sids_0<r->num_sids;cntr_sids_0++) { char *idx_0=NULL; if (asprintf(&idx_0, "[%d]", cntr_sids_0) != -1) { ndr_print_ptr(ndr, "sids", r->sids[cntr_sids_0]); ndr->depth++; if (r->sids[cntr_sids_0]) { ndr_print_dom_sid(ndr, "sids", r->sids[cntr_sids_0]); } ndr->depth--; free(idx_0); } } ndr->depth--; ndr_print_udlong(ndr, "privilege_mask", r->privilege_mask); ndr_print_ptr(ndr, "default_dacl", r->default_dacl); ndr->depth++; if (r->default_dacl) { ndr_print_security_acl(ndr, "default_dacl", r->default_dacl); } ndr->depth--; ndr->depth--; }
_PUBLIC_ void ndr_print_drsuapi_DsAddEntry_AttrErrListItem_V1(struct ndr_print *ndr, const char *name, const struct drsuapi_DsAddEntry_AttrErrListItem_V1 *r) { ndr_print_struct(ndr, name, "drsuapi_DsAddEntry_AttrErrListItem_V1"); ndr->depth++; ndr_print_ptr(ndr, "next", r->next); ndr_print_drsuapi_DsAddEntry_AttrErr_V1(ndr, "err_data", &r->err_data); ndr->depth--; if (r->next) { ndr_print_drsuapi_DsAddEntry_AttrErrListItem_V1(ndr, "next", r->next); } }
void ndr_print_winbindd_domain(struct ndr_print *ndr, const char *name, const struct winbindd_domain *r) { int i; if (!r) { return; } ndr_print_struct(ndr, name, "winbindd_domain"); ndr->depth++; ndr_print_string(ndr, "name", r->name); ndr_print_string(ndr, "alt_name", r->alt_name); ndr_print_string(ndr, "forest_name", r->forest_name); ndr_print_dom_sid(ndr, "sid", &r->sid); ndr_print_netr_TrustFlags(ndr, "domain_flags", r->domain_flags); ndr_print_lsa_TrustType(ndr, "domain_type", r->domain_type); ndr_print_lsa_TrustAttributes(ndr, "domain_trust_attribs", r->domain_trust_attribs); ndr_print_bool(ndr, "initialized", r->initialized); ndr_print_bool(ndr, "native_mode", r->native_mode); ndr_print_bool(ndr, "active_directory", r->active_directory); ndr_print_bool(ndr, "primary", r->primary); ndr_print_bool(ndr, "internal", r->internal); ndr_print_bool(ndr, "online", r->online); ndr_print_time_t(ndr, "startup_time", r->startup_time); ndr_print_bool(ndr, "startup", r->startup); ndr_print_winbindd_methods(ndr, "backend", r->backend); ndr_print_ptr(ndr, "private_data", r->private_data); ndr_print_string(ndr, "dcname", r->dcname); ndr_print_sockaddr_storage(ndr, "dcaddr", &r->dcaddr); ndr_print_time_t(ndr, "last_seq_check", r->last_seq_check); ndr_print_uint32(ndr, "sequence_number", r->sequence_number); ndr_print_NTSTATUS(ndr, "last_status", r->last_status); ndr_print_winbindd_cm_conn(ndr, "conn", &r->conn); for (i=0; i<lp_winbind_max_domain_connections(); i++) { ndr_print_winbindd_child(ndr, "children", &r->children[i]); } ndr_print_uint32(ndr, "check_online_timeout", r->check_online_timeout); ndr_print_ptr(ndr, "check_online_event", r->check_online_event); ndr->depth--; }
void ndr_print_drsuapi_DsReplicaObjectListItem(struct ndr_print *ndr, const char *name, const struct drsuapi_DsReplicaObjectListItem *r) { ndr_print_struct(ndr, name, "drsuapi_DsReplicaObjectListItem"); ndr->depth++; ndr_print_ptr(ndr, "next_object", r->next_object); ndr_print_drsuapi_DsReplicaObject(ndr, "object", &r->object); ndr->depth--; if (r->next_object) { ndr_print_drsuapi_DsReplicaObjectListItem(ndr, "next_object", r->next_object); } }
_PUBLIC_ void ndr_print_sec_desc_buf(struct ndr_print *ndr, const char *name, const struct sec_desc_buf *r) { ndr_print_struct(ndr, name, "sec_desc_buf"); ndr->depth++; ndr_print_uint32(ndr, "sd_size", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?ndr_size_security_descriptor(r->sd, ndr->iconv_convenience, ndr->flags):r->sd_size); ndr_print_ptr(ndr, "sd", r->sd); ndr->depth++; if (r->sd) { ndr_print_security_descriptor(ndr, "sd", r->sd); } ndr->depth--; ndr->depth--; }
_PUBLIC_ void ndr_print_security_descriptor_hash(struct ndr_print *ndr, const char *name, const struct security_descriptor_hash *r) { ndr_print_struct(ndr, name, "security_descriptor_hash"); ndr->depth++; ndr_print_ptr(ndr, "sd", r->sd); ndr->depth++; if (r->sd) { ndr_print_security_descriptor(ndr, "sd", r->sd); } ndr->depth--; ndr_print_array_uint8(ndr, "hash", r->hash, 16); ndr->depth--; }
_PUBLIC_ void ndr_print_PAC_LOGON_INFO(struct ndr_print *ndr, const char *name, const struct PAC_LOGON_INFO *r) { ndr_print_struct(ndr, name, "PAC_LOGON_INFO"); ndr->depth++; ndr_print_netr_SamInfo3(ndr, "info3", &r->info3); ndr_print_ptr(ndr, "res_group_dom_sid", r->res_group_dom_sid); ndr->depth++; if (r->res_group_dom_sid) { ndr_print_dom_sid2(ndr, "res_group_dom_sid", r->res_group_dom_sid); } ndr->depth--; ndr_print_samr_RidWithAttributeArray(ndr, "res_groups", &r->res_groups); ndr->depth--; }
_PUBLIC_ void ndr_print_security_descriptor(struct ndr_print *ndr, const char *name, const struct security_descriptor *r) { ndr_print_struct(ndr, name, "security_descriptor"); { uint32_t _flags_save_STRUCT = ndr->flags; ndr_set_flags(&ndr->flags, LIBNDR_FLAG_LITTLE_ENDIAN); ndr->depth++; ndr_print_security_descriptor_revision(ndr, "revision", r->revision); ndr_print_security_descriptor_type(ndr, "type", r->type); ndr_print_ptr(ndr, "owner_sid", r->owner_sid); ndr->depth++; if (r->owner_sid) { ndr_print_dom_sid(ndr, "owner_sid", r->owner_sid); } ndr->depth--; ndr_print_ptr(ndr, "group_sid", r->group_sid); ndr->depth++; if (r->group_sid) { ndr_print_dom_sid(ndr, "group_sid", r->group_sid); } ndr->depth--; ndr_print_ptr(ndr, "sacl", r->sacl); ndr->depth++; if (r->sacl) { ndr_print_security_acl(ndr, "sacl", r->sacl); } ndr->depth--; ndr_print_ptr(ndr, "dacl", r->dacl); ndr->depth++; if (r->dacl) { ndr_print_security_acl(ndr, "dacl", r->dacl); } ndr->depth--; ndr->depth--; ndr->flags = _flags_save_STRUCT; } }
_PUBLIC_ void ndr_print_initshutdown_InitEx(struct ndr_print *ndr, const char *name, int flags, const struct initshutdown_InitEx *r) { ndr_print_struct(ndr, name, "initshutdown_InitEx"); if (r == NULL) { ndr_print_null(ndr); return; } ndr->depth++; if (flags & NDR_SET_VALUES) { ndr->flags |= LIBNDR_PRINT_SET_VALUES; } if (flags & NDR_IN) { ndr_print_struct(ndr, "in", "initshutdown_InitEx"); ndr->depth++; ndr_print_ptr(ndr, "hostname", r->in.hostname); ndr->depth++; if (r->in.hostname) { ndr_print_uint16(ndr, "hostname", *r->in.hostname); } ndr->depth--; ndr_print_ptr(ndr, "message", r->in.message); ndr->depth++; if (r->in.message) { ndr_print_lsa_StringLarge(ndr, "message", r->in.message); } ndr->depth--; ndr_print_uint32(ndr, "timeout", r->in.timeout); ndr_print_uint8(ndr, "force_apps", r->in.force_apps); ndr_print_uint8(ndr, "do_reboot", r->in.do_reboot); ndr_print_uint32(ndr, "reason", r->in.reason); ndr->depth--; } if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "initshutdown_InitEx"); ndr->depth++; ndr_print_WERROR(ndr, "result", r->out.result); ndr->depth--; } ndr->depth--; }