From 6e379f5db93289e129737b90d09653881ab0c658 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Tue, 8 Apr 2008 02:26:21 +0200 Subject: Add libnetapi generated files. Guenther (This used to be commit 78da087b3a04f25bd0ea3195debf5c46731bac74) --- source3/librpc/gen_ndr/ndr_libnetapi.c | 377 +++++++++++++++++++++++++++++++++ 1 file changed, 377 insertions(+) create mode 100644 source3/librpc/gen_ndr/ndr_libnetapi.c (limited to 'source3/librpc/gen_ndr/ndr_libnetapi.c') diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.c b/source3/librpc/gen_ndr/ndr_libnetapi.c new file mode 100644 index 0000000000..5dc3c3d826 --- /dev/null +++ b/source3/librpc/gen_ndr/ndr_libnetapi.c @@ -0,0 +1,377 @@ +/* parser auto-generated by pidl */ + +#include "includes.h" +#include "librpc/gen_ndr/ndr_libnetapi.h" + +_PUBLIC_ enum ndr_err_code ndr_push_NET_API_STATUS(struct ndr_push *ndr, int ndr_flags, enum NET_API_STATUS r) +{ + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r)); + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ enum ndr_err_code ndr_pull_NET_API_STATUS(struct ndr_pull *ndr, int ndr_flags, enum NET_API_STATUS *r) +{ + uint32_t v; + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &v)); + *r = v; + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ void ndr_print_NET_API_STATUS(struct ndr_print *ndr, const char *name, enum NET_API_STATUS r) +{ + const char *val = NULL; + + switch (r) { + case NERR_Success: val = "NERR_Success"; break; + } + ndr_print_enum(ndr, name, "ENUM", val, r); +} + +_PUBLIC_ void ndr_print_NetJoinDomain(struct ndr_print *ndr, const char *name, int flags, const struct NetJoinDomain *r) +{ + ndr_print_struct(ndr, name, "NetJoinDomain"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "NetJoinDomain"); + ndr->depth++; + ndr_print_ptr(ndr, "server", r->in.server); + ndr->depth++; + if (r->in.server) { + ndr_print_string(ndr, "server", r->in.server); + } + ndr->depth--; + ndr_print_ptr(ndr, "domain", r->in.domain); + ndr->depth++; + ndr_print_string(ndr, "domain", r->in.domain); + ndr->depth--; + ndr_print_ptr(ndr, "account_ou", r->in.account_ou); + ndr->depth++; + if (r->in.account_ou) { + ndr_print_string(ndr, "account_ou", r->in.account_ou); + } + ndr->depth--; + ndr_print_ptr(ndr, "account", r->in.account); + ndr->depth++; + if (r->in.account) { + ndr_print_string(ndr, "account", r->in.account); + } + ndr->depth--; + ndr_print_ptr(ndr, "password", r->in.password); + ndr->depth++; + if (r->in.password) { + ndr_print_string(ndr, "password", r->in.password); + } + ndr->depth--; + ndr_print_uint32(ndr, "join_flags", r->in.join_flags); + ndr->depth--; + } + if (flags & NDR_OUT) { + ndr_print_struct(ndr, "out", "NetJoinDomain"); + ndr->depth++; + ndr_print_NET_API_STATUS(ndr, "result", r->out.result); + ndr->depth--; + } + ndr->depth--; +} + +_PUBLIC_ void ndr_print_NetUnjoinDomain(struct ndr_print *ndr, const char *name, int flags, const struct NetUnjoinDomain *r) +{ + ndr_print_struct(ndr, name, "NetUnjoinDomain"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "NetUnjoinDomain"); + ndr->depth++; + ndr_print_ptr(ndr, "server_name", r->in.server_name); + ndr->depth++; + if (r->in.server_name) { + ndr_print_string(ndr, "server_name", r->in.server_name); + } + ndr->depth--; + ndr_print_ptr(ndr, "account", r->in.account); + ndr->depth++; + if (r->in.account) { + ndr_print_string(ndr, "account", r->in.account); + } + ndr->depth--; + ndr_print_ptr(ndr, "password", r->in.password); + ndr->depth++; + if (r->in.password) { + ndr_print_string(ndr, "password", r->in.password); + } + ndr->depth--; + ndr_print_uint32(ndr, "unjoin_flags", r->in.unjoin_flags); + ndr->depth--; + } + if (flags & NDR_OUT) { + ndr_print_struct(ndr, "out", "NetUnjoinDomain"); + ndr->depth++; + ndr_print_NET_API_STATUS(ndr, "result", r->out.result); + ndr->depth--; + } + ndr->depth--; +} + +_PUBLIC_ void ndr_print_NetGetJoinInformation(struct ndr_print *ndr, const char *name, int flags, const struct NetGetJoinInformation *r) +{ + ndr_print_struct(ndr, name, "NetGetJoinInformation"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "NetGetJoinInformation"); + ndr->depth++; + ndr_print_ptr(ndr, "server_name", r->in.server_name); + ndr->depth++; + if (r->in.server_name) { + ndr_print_string(ndr, "server_name", r->in.server_name); + } + ndr->depth--; + ndr->depth--; + } + if (flags & NDR_OUT) { + ndr_print_struct(ndr, "out", "NetGetJoinInformation"); + ndr->depth++; + ndr_print_ptr(ndr, "name_buffer", r->out.name_buffer); + ndr->depth++; + ndr_print_ptr(ndr, "name_buffer", *r->out.name_buffer); + ndr->depth++; + if (*r->out.name_buffer) { + ndr_print_string(ndr, "name_buffer", *r->out.name_buffer); + } + ndr->depth--; + ndr->depth--; + ndr_print_ptr(ndr, "name_type", r->out.name_type); + ndr->depth++; + ndr_print_uint16(ndr, "name_type", *r->out.name_type); + ndr->depth--; + ndr_print_NET_API_STATUS(ndr, "result", r->out.result); + ndr->depth--; + } + ndr->depth--; +} + +_PUBLIC_ void ndr_print_NetGetJoinableOUs(struct ndr_print *ndr, const char *name, int flags, const struct NetGetJoinableOUs *r) +{ + ndr_print_struct(ndr, name, "NetGetJoinableOUs"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "NetGetJoinableOUs"); + ndr->depth++; + ndr_print_ptr(ndr, "server_name", r->in.server_name); + ndr->depth++; + if (r->in.server_name) { + ndr_print_string(ndr, "server_name", r->in.server_name); + } + ndr->depth--; + ndr_print_ptr(ndr, "domain", r->in.domain); + ndr->depth++; + ndr_print_string(ndr, "domain", r->in.domain); + ndr->depth--; + ndr_print_ptr(ndr, "account", r->in.account); + ndr->depth++; + if (r->in.account) { + ndr_print_string(ndr, "account", r->in.account); + } + ndr->depth--; + ndr_print_ptr(ndr, "password", r->in.password); + ndr->depth++; + if (r->in.password) { + ndr_print_string(ndr, "password", r->in.password); + } + ndr->depth--; + ndr->depth--; + } + if (flags & NDR_OUT) { + ndr_print_struct(ndr, "out", "NetGetJoinableOUs"); + ndr->depth++; + ndr_print_ptr(ndr, "ou_count", r->out.ou_count); + ndr->depth++; + ndr_print_uint32(ndr, "ou_count", *r->out.ou_count); + ndr->depth--; + ndr_print_ptr(ndr, "ous", r->out.ous); + ndr->depth++; + ndr_print_ptr(ndr, "ous", *r->out.ous); + ndr->depth++; + if (*r->out.ous) { + ndr_print_ptr(ndr, "ous", **r->out.ous); + ndr->depth++; + if (**r->out.ous) { + ndr_print_string(ndr, "ous", **r->out.ous); + } + ndr->depth--; + } + ndr->depth--; + ndr->depth--; + ndr_print_NET_API_STATUS(ndr, "result", r->out.result); + ndr->depth--; + } + ndr->depth--; +} + +_PUBLIC_ void ndr_print_NetServerGetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetServerGetInfo *r) +{ + ndr_print_struct(ndr, name, "NetServerGetInfo"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "NetServerGetInfo"); + ndr->depth++; + ndr_print_ptr(ndr, "server_name", r->in.server_name); + ndr->depth++; + if (r->in.server_name) { + ndr_print_string(ndr, "server_name", r->in.server_name); + } + ndr->depth--; + ndr_print_uint32(ndr, "level", r->in.level); + ndr->depth--; + } + if (flags & NDR_OUT) { + ndr_print_struct(ndr, "out", "NetServerGetInfo"); + ndr->depth++; + ndr_print_ptr(ndr, "buffer", r->out.buffer); + ndr->depth++; + ndr_print_ptr(ndr, "buffer", *r->out.buffer); + ndr->depth++; + if (*r->out.buffer) { + ndr_print_uint8(ndr, "buffer", **r->out.buffer); + } + ndr->depth--; + ndr->depth--; + ndr_print_NET_API_STATUS(ndr, "result", r->out.result); + ndr->depth--; + } + ndr->depth--; +} + +_PUBLIC_ void ndr_print_NetServerSetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetServerSetInfo *r) +{ + ndr_print_struct(ndr, name, "NetServerSetInfo"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "NetServerSetInfo"); + ndr->depth++; + ndr_print_ptr(ndr, "server_name", r->in.server_name); + ndr->depth++; + if (r->in.server_name) { + ndr_print_string(ndr, "server_name", r->in.server_name); + } + ndr->depth--; + ndr_print_uint32(ndr, "level", r->in.level); + ndr_print_ptr(ndr, "buffer", r->in.buffer); + ndr->depth++; + ndr_print_uint8(ndr, "buffer", *r->in.buffer); + ndr->depth--; + ndr->depth--; + } + if (flags & NDR_OUT) { + ndr_print_struct(ndr, "out", "NetServerSetInfo"); + ndr->depth++; + ndr_print_ptr(ndr, "parm_error", r->out.parm_error); + ndr->depth++; + ndr_print_uint32(ndr, "parm_error", *r->out.parm_error); + ndr->depth--; + ndr_print_NET_API_STATUS(ndr, "result", r->out.result); + ndr->depth--; + } + ndr->depth--; +} + +_PUBLIC_ void ndr_print_NetGetDCName(struct ndr_print *ndr, const char *name, int flags, const struct NetGetDCName *r) +{ + ndr_print_struct(ndr, name, "NetGetDCName"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "NetGetDCName"); + ndr->depth++; + ndr_print_ptr(ndr, "server_name", r->in.server_name); + ndr->depth++; + if (r->in.server_name) { + ndr_print_string(ndr, "server_name", r->in.server_name); + } + ndr->depth--; + ndr_print_ptr(ndr, "domain_name", r->in.domain_name); + ndr->depth++; + if (r->in.domain_name) { + ndr_print_string(ndr, "domain_name", r->in.domain_name); + } + ndr->depth--; + ndr->depth--; + } + if (flags & NDR_OUT) { + ndr_print_struct(ndr, "out", "NetGetDCName"); + ndr->depth++; + ndr_print_ptr(ndr, "buffer", r->out.buffer); + ndr->depth++; + ndr_print_ptr(ndr, "buffer", *r->out.buffer); + ndr->depth++; + if (*r->out.buffer) { + ndr_print_uint8(ndr, "buffer", **r->out.buffer); + } + ndr->depth--; + ndr->depth--; + ndr_print_NET_API_STATUS(ndr, "result", r->out.result); + ndr->depth--; + } + ndr->depth--; +} + +_PUBLIC_ void ndr_print_NetGetAnyDCName(struct ndr_print *ndr, const char *name, int flags, const struct NetGetAnyDCName *r) +{ + ndr_print_struct(ndr, name, "NetGetAnyDCName"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "NetGetAnyDCName"); + ndr->depth++; + ndr_print_ptr(ndr, "server_name", r->in.server_name); + ndr->depth++; + if (r->in.server_name) { + ndr_print_string(ndr, "server_name", r->in.server_name); + } + ndr->depth--; + ndr_print_ptr(ndr, "domain_name", r->in.domain_name); + ndr->depth++; + if (r->in.domain_name) { + ndr_print_string(ndr, "domain_name", r->in.domain_name); + } + ndr->depth--; + ndr->depth--; + } + if (flags & NDR_OUT) { + ndr_print_struct(ndr, "out", "NetGetAnyDCName"); + ndr->depth++; + ndr_print_ptr(ndr, "buffer", r->out.buffer); + ndr->depth++; + ndr_print_ptr(ndr, "buffer", *r->out.buffer); + ndr->depth++; + if (*r->out.buffer) { + ndr_print_uint8(ndr, "buffer", **r->out.buffer); + } + ndr->depth--; + ndr->depth--; + ndr_print_NET_API_STATUS(ndr, "result", r->out.result); + ndr->depth--; + } + ndr->depth--; +} + -- cgit From 02e90acea7f21ed2b62a15d223c07c9b25c50d08 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Tue, 8 Apr 2008 14:38:10 +0200 Subject: Re-run make idl. Guenther (This used to be commit a47642011a5d4732afa939a9162c232922a29f61) --- source3/librpc/gen_ndr/ndr_libnetapi.c | 107 +++++++++++++++++++++++++++++++++ 1 file changed, 107 insertions(+) (limited to 'source3/librpc/gen_ndr/ndr_libnetapi.c') diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.c b/source3/librpc/gen_ndr/ndr_libnetapi.c index 5dc3c3d826..cca10e8416 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.c +++ b/source3/librpc/gen_ndr/ndr_libnetapi.c @@ -27,6 +27,60 @@ _PUBLIC_ void ndr_print_NET_API_STATUS(struct ndr_print *ndr, const char *name, ndr_print_enum(ndr, name, "ENUM", val, r); } +_PUBLIC_ enum ndr_err_code ndr_push_DOMAIN_CONTROLLER_INFO(struct ndr_push *ndr, int ndr_flags, const struct DOMAIN_CONTROLLER_INFO *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_push_align(ndr, 4)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->domain_controller_name)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->domain_controller_address)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->domain_controller_address_type)); + NDR_CHECK(ndr_push_GUID(ndr, NDR_SCALARS, &r->domain_guid)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->domain_name)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->dns_forest_name)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->flags)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->dc_site_name)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->client_site_name)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ enum ndr_err_code ndr_pull_DOMAIN_CONTROLLER_INFO(struct ndr_pull *ndr, int ndr_flags, struct DOMAIN_CONTROLLER_INFO *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_pull_align(ndr, 4)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->domain_controller_name)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->domain_controller_address)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->domain_controller_address_type)); + NDR_CHECK(ndr_pull_GUID(ndr, NDR_SCALARS, &r->domain_guid)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->domain_name)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->dns_forest_name)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->flags)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->dc_site_name)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->client_site_name)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ void ndr_print_DOMAIN_CONTROLLER_INFO(struct ndr_print *ndr, const char *name, const struct DOMAIN_CONTROLLER_INFO *r) +{ + ndr_print_struct(ndr, name, "DOMAIN_CONTROLLER_INFO"); + ndr->depth++; + ndr_print_string(ndr, "domain_controller_name", r->domain_controller_name); + ndr_print_string(ndr, "domain_controller_address", r->domain_controller_address); + ndr_print_uint32(ndr, "domain_controller_address_type", r->domain_controller_address_type); + ndr_print_GUID(ndr, "domain_guid", &r->domain_guid); + ndr_print_string(ndr, "domain_name", r->domain_name); + ndr_print_string(ndr, "dns_forest_name", r->dns_forest_name); + ndr_print_uint32(ndr, "flags", r->flags); + ndr_print_string(ndr, "dc_site_name", r->dc_site_name); + ndr_print_string(ndr, "client_site_name", r->client_site_name); + ndr->depth--; +} + _PUBLIC_ void ndr_print_NetJoinDomain(struct ndr_print *ndr, const char *name, int flags, const struct NetJoinDomain *r) { ndr_print_struct(ndr, name, "NetJoinDomain"); @@ -375,3 +429,56 @@ _PUBLIC_ void ndr_print_NetGetAnyDCName(struct ndr_print *ndr, const char *name, ndr->depth--; } +_PUBLIC_ void ndr_print_DsGetDcName(struct ndr_print *ndr, const char *name, int flags, const struct DsGetDcName *r) +{ + ndr_print_struct(ndr, name, "DsGetDcName"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "DsGetDcName"); + ndr->depth++; + ndr_print_ptr(ndr, "server_name", r->in.server_name); + ndr->depth++; + if (r->in.server_name) { + ndr_print_string(ndr, "server_name", r->in.server_name); + } + ndr->depth--; + 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_ptr(ndr, "domain_guid", r->in.domain_guid); + ndr->depth++; + if (r->in.domain_guid) { + ndr_print_GUID(ndr, "domain_guid", r->in.domain_guid); + } + ndr->depth--; + ndr_print_ptr(ndr, "site_name", r->in.site_name); + ndr->depth++; + if (r->in.site_name) { + ndr_print_string(ndr, "site_name", r->in.site_name); + } + ndr->depth--; + ndr_print_uint32(ndr, "flags", r->in.flags); + ndr->depth--; + } + if (flags & NDR_OUT) { + ndr_print_struct(ndr, "out", "DsGetDcName"); + ndr->depth++; + ndr_print_ptr(ndr, "dc_info", r->out.dc_info); + ndr->depth++; + ndr_print_ptr(ndr, "dc_info", *r->out.dc_info); + ndr->depth++; + if (*r->out.dc_info) { + ndr_print_DOMAIN_CONTROLLER_INFO(ndr, "dc_info", *r->out.dc_info); + } + ndr->depth--; + ndr->depth--; + ndr_print_NET_API_STATUS(ndr, "result", r->out.result); + ndr->depth--; + } + ndr->depth--; +} + -- cgit From fcdf2c020279b84a8f78348cb0d68030bb78c134 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 9 Apr 2008 12:36:02 +0200 Subject: Re-run make idl. Guenther (This used to be commit 0d84f0d48559d8bed91bcb478d8be0bb3b96acac) --- source3/librpc/gen_ndr/ndr_libnetapi.c | 117 +++++++++++++++++++++++++++++++++ 1 file changed, 117 insertions(+) (limited to 'source3/librpc/gen_ndr/ndr_libnetapi.c') diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.c b/source3/librpc/gen_ndr/ndr_libnetapi.c index cca10e8416..29271ae5f0 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.c +++ b/source3/librpc/gen_ndr/ndr_libnetapi.c @@ -81,6 +81,87 @@ _PUBLIC_ void ndr_print_DOMAIN_CONTROLLER_INFO(struct ndr_print *ndr, const char ndr->depth--; } +_PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_0(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_0 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_push_align(ndr, 4)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri0_name)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_0(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_0 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_pull_align(ndr, 4)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri0_name)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ void ndr_print_USER_INFO_0(struct ndr_print *ndr, const char *name, const struct USER_INFO_0 *r) +{ + ndr_print_struct(ndr, name, "USER_INFO_0"); + ndr->depth++; + ndr_print_string(ndr, "usri0_name", r->usri0_name); + ndr->depth--; +} + +_PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_push_align(ndr, 4)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_name)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_password)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1_password_age)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1_priv)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_home_dir)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_comment)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1_flags)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_script_path)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_pull_align(ndr, 4)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_name)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_password)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1_password_age)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1_priv)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_home_dir)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_comment)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1_flags)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_script_path)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ void ndr_print_USER_INFO_1(struct ndr_print *ndr, const char *name, const struct USER_INFO_1 *r) +{ + ndr_print_struct(ndr, name, "USER_INFO_1"); + ndr->depth++; + ndr_print_string(ndr, "usri1_name", r->usri1_name); + ndr_print_string(ndr, "usri1_password", r->usri1_password); + ndr_print_uint32(ndr, "usri1_password_age", r->usri1_password_age); + ndr_print_uint32(ndr, "usri1_priv", r->usri1_priv); + ndr_print_string(ndr, "usri1_home_dir", r->usri1_home_dir); + ndr_print_string(ndr, "usri1_comment", r->usri1_comment); + ndr_print_uint32(ndr, "usri1_flags", r->usri1_flags); + ndr_print_string(ndr, "usri1_script_path", r->usri1_script_path); + ndr->depth--; +} + _PUBLIC_ void ndr_print_NetJoinDomain(struct ndr_print *ndr, const char *name, int flags, const struct NetJoinDomain *r) { ndr_print_struct(ndr, name, "NetJoinDomain"); @@ -482,3 +563,39 @@ _PUBLIC_ void ndr_print_DsGetDcName(struct ndr_print *ndr, const char *name, int ndr->depth--; } +_PUBLIC_ void ndr_print_NetUserAdd(struct ndr_print *ndr, const char *name, int flags, const struct NetUserAdd *r) +{ + ndr_print_struct(ndr, name, "NetUserAdd"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "NetUserAdd"); + ndr->depth++; + ndr_print_ptr(ndr, "server_name", r->in.server_name); + ndr->depth++; + if (r->in.server_name) { + ndr_print_string(ndr, "server_name", r->in.server_name); + } + ndr->depth--; + ndr_print_uint32(ndr, "level", r->in.level); + ndr_print_ptr(ndr, "buffer", r->in.buffer); + ndr->depth++; + ndr_print_uint8(ndr, "buffer", *r->in.buffer); + ndr->depth--; + ndr->depth--; + } + if (flags & NDR_OUT) { + ndr_print_struct(ndr, "out", "NetUserAdd"); + ndr->depth++; + ndr_print_ptr(ndr, "parm_error", r->out.parm_error); + ndr->depth++; + ndr_print_uint32(ndr, "parm_error", *r->out.parm_error); + ndr->depth--; + ndr_print_NET_API_STATUS(ndr, "result", r->out.result); + ndr->depth--; + } + ndr->depth--; +} + -- cgit From eac830c48e260711359a3c5007f2545696733b94 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 9 Apr 2008 13:32:19 +0200 Subject: Re-run make idl. Guenther (This used to be commit 51d0cbe3d972b5917f89cea8624bc21910116132) --- source3/librpc/gen_ndr/ndr_libnetapi.c | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'source3/librpc/gen_ndr/ndr_libnetapi.c') diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.c b/source3/librpc/gen_ndr/ndr_libnetapi.c index 29271ae5f0..54b3d3e925 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.c +++ b/source3/librpc/gen_ndr/ndr_libnetapi.c @@ -599,3 +599,34 @@ _PUBLIC_ void ndr_print_NetUserAdd(struct ndr_print *ndr, const char *name, int ndr->depth--; } +_PUBLIC_ void ndr_print_NetUserDel(struct ndr_print *ndr, const char *name, int flags, const struct NetUserDel *r) +{ + ndr_print_struct(ndr, name, "NetUserDel"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "NetUserDel"); + ndr->depth++; + ndr_print_ptr(ndr, "server_name", r->in.server_name); + ndr->depth++; + if (r->in.server_name) { + ndr_print_string(ndr, "server_name", r->in.server_name); + } + ndr->depth--; + ndr_print_ptr(ndr, "user_name", r->in.user_name); + ndr->depth++; + ndr_print_string(ndr, "user_name", r->in.user_name); + ndr->depth--; + ndr->depth--; + } + if (flags & NDR_OUT) { + ndr_print_struct(ndr, "out", "NetUserDel"); + ndr->depth++; + ndr_print_NET_API_STATUS(ndr, "result", r->out.result); + ndr->depth--; + } + ndr->depth--; +} + -- cgit From 7dd3b4186b688891cbbba615d061a59daa3c8606 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 9 Apr 2008 13:42:48 +0200 Subject: Re-run make idl. Guenther (This used to be commit 285072479bebf09c94fccf55578ef587627c888e) --- source3/librpc/gen_ndr/ndr_libnetapi.c | 55 ++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) (limited to 'source3/librpc/gen_ndr/ndr_libnetapi.c') diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.c b/source3/librpc/gen_ndr/ndr_libnetapi.c index 54b3d3e925..cd8df4d641 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.c +++ b/source3/librpc/gen_ndr/ndr_libnetapi.c @@ -630,3 +630,58 @@ _PUBLIC_ void ndr_print_NetUserDel(struct ndr_print *ndr, const char *name, int ndr->depth--; } +_PUBLIC_ void ndr_print_NetUserEnum(struct ndr_print *ndr, const char *name, int flags, const struct NetUserEnum *r) +{ + ndr_print_struct(ndr, name, "NetUserEnum"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "NetUserEnum"); + ndr->depth++; + ndr_print_ptr(ndr, "server_name", r->in.server_name); + ndr->depth++; + if (r->in.server_name) { + ndr_print_string(ndr, "server_name", r->in.server_name); + } + ndr->depth--; + ndr_print_uint32(ndr, "level", r->in.level); + ndr_print_uint32(ndr, "filter", r->in.filter); + ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen); + ndr_print_ptr(ndr, "resume_handle", r->in.resume_handle); + ndr->depth++; + ndr_print_uint32(ndr, "resume_handle", *r->in.resume_handle); + ndr->depth--; + ndr->depth--; + } + if (flags & NDR_OUT) { + ndr_print_struct(ndr, "out", "NetUserEnum"); + ndr->depth++; + ndr_print_ptr(ndr, "buffer", r->out.buffer); + ndr->depth++; + ndr_print_ptr(ndr, "buffer", *r->out.buffer); + ndr->depth++; + if (*r->out.buffer) { + ndr_print_uint8(ndr, "buffer", **r->out.buffer); + } + ndr->depth--; + ndr->depth--; + ndr_print_ptr(ndr, "entries_read", r->out.entries_read); + ndr->depth++; + ndr_print_uint32(ndr, "entries_read", *r->out.entries_read); + ndr->depth--; + ndr_print_ptr(ndr, "total_entries", r->out.total_entries); + ndr->depth++; + ndr_print_uint32(ndr, "total_entries", *r->out.total_entries); + ndr->depth--; + ndr_print_ptr(ndr, "resume_handle", r->out.resume_handle); + ndr->depth++; + ndr_print_uint32(ndr, "resume_handle", *r->out.resume_handle); + ndr->depth--; + ndr_print_NET_API_STATUS(ndr, "result", r->out.result); + ndr->depth--; + } + ndr->depth--; +} + -- cgit From d424a74f15b8d834ba2fb0db33cb8c8d87e20e0d Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 10 Apr 2008 21:29:05 +0200 Subject: Re-run make idl. Guenther (This used to be commit 0d5130ddb61aa2db603339e693f54fff302eb947) --- source3/librpc/gen_ndr/ndr_libnetapi.c | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'source3/librpc/gen_ndr/ndr_libnetapi.c') diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.c b/source3/librpc/gen_ndr/ndr_libnetapi.c index cd8df4d641..bf2bbd0c1f 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.c +++ b/source3/librpc/gen_ndr/ndr_libnetapi.c @@ -27,6 +27,36 @@ _PUBLIC_ void ndr_print_NET_API_STATUS(struct ndr_print *ndr, const char *name, ndr_print_enum(ndr, name, "ENUM", val, r); } +_PUBLIC_ enum ndr_err_code ndr_push_SERVER_INFO_1005(struct ndr_push *ndr, int ndr_flags, const struct SERVER_INFO_1005 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_push_align(ndr, 4)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->sv1005_comment)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ enum ndr_err_code ndr_pull_SERVER_INFO_1005(struct ndr_pull *ndr, int ndr_flags, struct SERVER_INFO_1005 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_pull_align(ndr, 4)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->sv1005_comment)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ void ndr_print_SERVER_INFO_1005(struct ndr_print *ndr, const char *name, const struct SERVER_INFO_1005 *r) +{ + ndr_print_struct(ndr, name, "SERVER_INFO_1005"); + ndr->depth++; + ndr_print_string(ndr, "sv1005_comment", r->sv1005_comment); + ndr->depth--; +} + _PUBLIC_ enum ndr_err_code ndr_push_DOMAIN_CONTROLLER_INFO(struct ndr_push *ndr, int ndr_flags, const struct DOMAIN_CONTROLLER_INFO *r) { if (ndr_flags & NDR_SCALARS) { -- cgit From 99e96fe5ca55b5aa4cf5f77d6cc45c25498d9b20 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Sun, 13 Apr 2008 19:00:53 +0200 Subject: Re-run make idl. Guenther (This used to be commit afd0e925dc63b6f776caa5fd442c4e48e8349682) --- source3/librpc/gen_ndr/ndr_libnetapi.c | 164 +++++++++++++++++++++++++++++++++ 1 file changed, 164 insertions(+) (limited to 'source3/librpc/gen_ndr/ndr_libnetapi.c') diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.c b/source3/librpc/gen_ndr/ndr_libnetapi.c index bf2bbd0c1f..028753a391 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.c +++ b/source3/librpc/gen_ndr/ndr_libnetapi.c @@ -192,6 +192,135 @@ _PUBLIC_ void ndr_print_USER_INFO_1(struct ndr_print *ndr, const char *name, con ndr->depth--; } +_PUBLIC_ enum ndr_err_code ndr_push_NET_DISPLAY_USER(struct ndr_push *ndr, int ndr_flags, const struct NET_DISPLAY_USER *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_push_align(ndr, 4)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_name)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_comment)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1_flags)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1_full_name)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1_user_id)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1_next_index)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ enum ndr_err_code ndr_pull_NET_DISPLAY_USER(struct ndr_pull *ndr, int ndr_flags, struct NET_DISPLAY_USER *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_pull_align(ndr, 4)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_name)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_comment)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1_flags)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1_full_name)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1_user_id)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1_next_index)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ void ndr_print_NET_DISPLAY_USER(struct ndr_print *ndr, const char *name, const struct NET_DISPLAY_USER *r) +{ + ndr_print_struct(ndr, name, "NET_DISPLAY_USER"); + ndr->depth++; + ndr_print_string(ndr, "usri1_name", r->usri1_name); + ndr_print_string(ndr, "usri1_comment", r->usri1_comment); + ndr_print_uint32(ndr, "usri1_flags", r->usri1_flags); + ndr_print_string(ndr, "usri1_full_name", r->usri1_full_name); + ndr_print_uint32(ndr, "usri1_user_id", r->usri1_user_id); + ndr_print_uint32(ndr, "usri1_next_index", r->usri1_next_index); + ndr->depth--; +} + +_PUBLIC_ enum ndr_err_code ndr_push_NET_DISPLAY_MACHINE(struct ndr_push *ndr, int ndr_flags, const struct NET_DISPLAY_MACHINE *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_push_align(ndr, 4)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_name)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_comment)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_flags)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_user_id)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_next_index)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ enum ndr_err_code ndr_pull_NET_DISPLAY_MACHINE(struct ndr_pull *ndr, int ndr_flags, struct NET_DISPLAY_MACHINE *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_pull_align(ndr, 4)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_name)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_comment)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_flags)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_user_id)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_next_index)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ void ndr_print_NET_DISPLAY_MACHINE(struct ndr_print *ndr, const char *name, const struct NET_DISPLAY_MACHINE *r) +{ + ndr_print_struct(ndr, name, "NET_DISPLAY_MACHINE"); + ndr->depth++; + ndr_print_string(ndr, "usri2_name", r->usri2_name); + ndr_print_string(ndr, "usri2_comment", r->usri2_comment); + ndr_print_uint32(ndr, "usri2_flags", r->usri2_flags); + ndr_print_uint32(ndr, "usri2_user_id", r->usri2_user_id); + ndr_print_uint32(ndr, "usri2_next_index", r->usri2_next_index); + ndr->depth--; +} + +_PUBLIC_ enum ndr_err_code ndr_push_NET_DISPLAY_GROUP(struct ndr_push *ndr, int ndr_flags, const struct NET_DISPLAY_GROUP *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_push_align(ndr, 4)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->grpi3_name)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->grpi3_comment)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->grpi3_group_id)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->grpi3_attributes)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->grpi3_next_index)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ enum ndr_err_code ndr_pull_NET_DISPLAY_GROUP(struct ndr_pull *ndr, int ndr_flags, struct NET_DISPLAY_GROUP *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_pull_align(ndr, 4)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->grpi3_name)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->grpi3_comment)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->grpi3_group_id)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->grpi3_attributes)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->grpi3_next_index)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ void ndr_print_NET_DISPLAY_GROUP(struct ndr_print *ndr, const char *name, const struct NET_DISPLAY_GROUP *r) +{ + ndr_print_struct(ndr, name, "NET_DISPLAY_GROUP"); + ndr->depth++; + ndr_print_string(ndr, "grpi3_name", r->grpi3_name); + ndr_print_string(ndr, "grpi3_comment", r->grpi3_comment); + ndr_print_uint32(ndr, "grpi3_group_id", r->grpi3_group_id); + ndr_print_uint32(ndr, "grpi3_attributes", r->grpi3_attributes); + ndr_print_uint32(ndr, "grpi3_next_index", r->grpi3_next_index); + ndr->depth--; +} + _PUBLIC_ void ndr_print_NetJoinDomain(struct ndr_print *ndr, const char *name, int flags, const struct NetJoinDomain *r) { ndr_print_struct(ndr, name, "NetJoinDomain"); @@ -715,3 +844,38 @@ _PUBLIC_ void ndr_print_NetUserEnum(struct ndr_print *ndr, const char *name, int ndr->depth--; } +_PUBLIC_ void ndr_print_NetQueryDisplayInformation(struct ndr_print *ndr, const char *name, int flags, const struct NetQueryDisplayInformation *r) +{ + ndr_print_struct(ndr, name, "NetQueryDisplayInformation"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "NetQueryDisplayInformation"); + ndr->depth++; + ndr_print_ptr(ndr, "server_name", r->in.server_name); + ndr->depth++; + if (r->in.server_name) { + ndr_print_string(ndr, "server_name", r->in.server_name); + } + ndr->depth--; + ndr_print_uint32(ndr, "level", r->in.level); + ndr_print_uint32(ndr, "idx", r->in.idx); + ndr_print_uint32(ndr, "entries_requested", r->in.entries_requested); + ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen); + ndr->depth--; + } + if (flags & NDR_OUT) { + ndr_print_struct(ndr, "out", "NetQueryDisplayInformation"); + ndr->depth++; + ndr_print_ptr(ndr, "entries_read", r->out.entries_read); + ndr->depth++; + ndr_print_uint32(ndr, "entries_read", *r->out.entries_read); + ndr->depth--; + ndr_print_NET_API_STATUS(ndr, "result", r->out.result); + ndr->depth--; + } + ndr->depth--; +} + -- cgit From 3e67dfcf87666000d7d67d47bc48e24a20b0d32b Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Tue, 27 May 2008 12:06:44 +0200 Subject: re-run make idl. Guenther (This used to be commit bad8b5e010adcd9df85c4b3a58678112d328e6b7) --- source3/librpc/gen_ndr/ndr_libnetapi.c | 91 ++++++++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) (limited to 'source3/librpc/gen_ndr/ndr_libnetapi.c') diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.c b/source3/librpc/gen_ndr/ndr_libnetapi.c index 028753a391..d4db1f9609 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.c +++ b/source3/librpc/gen_ndr/ndr_libnetapi.c @@ -27,6 +27,66 @@ _PUBLIC_ void ndr_print_NET_API_STATUS(struct ndr_print *ndr, const char *name, ndr_print_enum(ndr, name, "ENUM", val, r); } +_PUBLIC_ enum ndr_err_code ndr_push_domsid(struct ndr_push *ndr, int ndr_flags, const struct domsid *r) +{ + uint32_t cntr_sub_auths_0; + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_push_align(ndr, 4)); + NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->sid_rev_num)); + NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->num_auths)); + NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->id_auth, 6)); + for (cntr_sub_auths_0 = 0; cntr_sub_auths_0 < MAXSUBAUTHS; cntr_sub_auths_0++) { + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sub_auths[cntr_sub_auths_0])); + } + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ enum ndr_err_code ndr_pull_domsid(struct ndr_pull *ndr, int ndr_flags, struct domsid *r) +{ + uint32_t cntr_sub_auths_0; + TALLOC_CTX *_mem_save_sub_auths_0; + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_pull_align(ndr, 4)); + NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->sid_rev_num)); + NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->num_auths)); + NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->id_auth, 6)); + NDR_PULL_ALLOC_N(ndr, r->sub_auths, MAXSUBAUTHS); + _mem_save_sub_auths_0 = NDR_PULL_GET_MEM_CTX(ndr); + NDR_PULL_SET_MEM_CTX(ndr, r->sub_auths, 0); + for (cntr_sub_auths_0 = 0; cntr_sub_auths_0 < MAXSUBAUTHS; cntr_sub_auths_0++) { + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sub_auths[cntr_sub_auths_0])); + } + NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sub_auths_0, 0); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ void ndr_print_domsid(struct ndr_print *ndr, const char *name, const struct domsid *r) +{ + uint32_t cntr_sub_auths_0; + ndr_print_struct(ndr, name, "domsid"); + ndr->depth++; + ndr_print_uint8(ndr, "sid_rev_num", r->sid_rev_num); + ndr_print_uint8(ndr, "num_auths", r->num_auths); + ndr_print_array_uint8(ndr, "id_auth", r->id_auth, 6); + ndr->print(ndr, "%s: ARRAY(%d)", "sub_auths", MAXSUBAUTHS); + ndr->depth++; + for (cntr_sub_auths_0=0;cntr_sub_auths_0sub_auths[cntr_sub_auths_0]); + free(idx_0); + } + } + ndr->depth--; + ndr->depth--; +} + _PUBLIC_ enum ndr_err_code ndr_push_SERVER_INFO_1005(struct ndr_push *ndr, int ndr_flags, const struct SERVER_INFO_1005 *r) { if (ndr_flags & NDR_SCALARS) { @@ -879,3 +939,34 @@ _PUBLIC_ void ndr_print_NetQueryDisplayInformation(struct ndr_print *ndr, const ndr->depth--; } +_PUBLIC_ void ndr_print_NetGroupAdd(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupAdd *r) +{ + ndr_print_struct(ndr, name, "NetGroupAdd"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "NetGroupAdd"); + ndr->depth++; + ndr_print_string(ndr, "server_name", r->in.server_name); + ndr_print_uint32(ndr, "level", r->in.level); + ndr_print_ptr(ndr, "buf", r->in.buf); + ndr->depth++; + ndr_print_uint8(ndr, "buf", *r->in.buf); + ndr->depth--; + ndr->depth--; + } + if (flags & NDR_OUT) { + ndr_print_struct(ndr, "out", "NetGroupAdd"); + ndr->depth++; + ndr_print_ptr(ndr, "parm_err", r->out.parm_err); + ndr->depth++; + ndr_print_uint32(ndr, "parm_err", *r->out.parm_err); + ndr->depth--; + ndr_print_NET_API_STATUS(ndr, "result", r->out.result); + ndr->depth--; + } + ndr->depth--; +} + -- cgit From 2da5df92df46d8399024efd92f856dddafd68f28 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Tue, 27 May 2008 12:09:26 +0200 Subject: re-run make idl. Guenther (This used to be commit aaa439e1d16607caa320e55fc3963281993637ce) --- source3/librpc/gen_ndr/ndr_libnetapi.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'source3/librpc/gen_ndr/ndr_libnetapi.c') diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.c b/source3/librpc/gen_ndr/ndr_libnetapi.c index d4db1f9609..434f726c51 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.c +++ b/source3/librpc/gen_ndr/ndr_libnetapi.c @@ -970,3 +970,26 @@ _PUBLIC_ void ndr_print_NetGroupAdd(struct ndr_print *ndr, const char *name, int ndr->depth--; } +_PUBLIC_ void ndr_print_NetGroupDel(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupDel *r) +{ + ndr_print_struct(ndr, name, "NetGroupDel"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "NetGroupDel"); + ndr->depth++; + ndr_print_string(ndr, "server_name", r->in.server_name); + ndr_print_string(ndr, "group_name", r->in.group_name); + ndr->depth--; + } + if (flags & NDR_OUT) { + ndr_print_struct(ndr, "out", "NetGroupDel"); + ndr->depth++; + ndr_print_NET_API_STATUS(ndr, "result", r->out.result); + ndr->depth--; + } + ndr->depth--; +} + -- cgit From e11081a672251fa0bd5b494cf7790954d19a1be1 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Mon, 2 Jun 2008 12:48:46 +0200 Subject: re-run make idl. Guenther (This used to be commit cbaaa2972bb3bf1f67af3ca5d8acf9c2e5029ae1) --- source3/librpc/gen_ndr/ndr_libnetapi.c | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'source3/librpc/gen_ndr/ndr_libnetapi.c') diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.c b/source3/librpc/gen_ndr/ndr_libnetapi.c index 434f726c51..a16c650c3f 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.c +++ b/source3/librpc/gen_ndr/ndr_libnetapi.c @@ -993,3 +993,35 @@ _PUBLIC_ void ndr_print_NetGroupDel(struct ndr_print *ndr, const char *name, int ndr->depth--; } +_PUBLIC_ void ndr_print_NetGroupSetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupSetInfo *r) +{ + ndr_print_struct(ndr, name, "NetGroupSetInfo"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "NetGroupSetInfo"); + ndr->depth++; + ndr_print_string(ndr, "server_name", r->in.server_name); + ndr_print_string(ndr, "group_name", r->in.group_name); + ndr_print_uint32(ndr, "level", r->in.level); + ndr_print_ptr(ndr, "buf", r->in.buf); + ndr->depth++; + ndr_print_uint8(ndr, "buf", *r->in.buf); + ndr->depth--; + ndr->depth--; + } + if (flags & NDR_OUT) { + ndr_print_struct(ndr, "out", "NetGroupSetInfo"); + ndr->depth++; + ndr_print_ptr(ndr, "parm_err", r->out.parm_err); + ndr->depth++; + ndr_print_uint32(ndr, "parm_err", *r->out.parm_err); + ndr->depth--; + ndr_print_NET_API_STATUS(ndr, "result", r->out.result); + ndr->depth--; + } + ndr->depth--; +} + -- cgit From e658d64eac6842a605c1d0696618758a3756b501 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Mon, 2 Jun 2008 13:00:59 +0200 Subject: re-run make idl. Guenther (This used to be commit 47a1db09a2d2eb78b4bcd27394d15bae29ca0d52) --- source3/librpc/gen_ndr/ndr_libnetapi.c | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'source3/librpc/gen_ndr/ndr_libnetapi.c') diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.c b/source3/librpc/gen_ndr/ndr_libnetapi.c index a16c650c3f..1f7ab37a27 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.c +++ b/source3/librpc/gen_ndr/ndr_libnetapi.c @@ -1025,3 +1025,36 @@ _PUBLIC_ void ndr_print_NetGroupSetInfo(struct ndr_print *ndr, const char *name, ndr->depth--; } +_PUBLIC_ void ndr_print_NetGroupGetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupGetInfo *r) +{ + ndr_print_struct(ndr, name, "NetGroupGetInfo"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "NetGroupGetInfo"); + ndr->depth++; + ndr_print_string(ndr, "server_name", r->in.server_name); + ndr_print_string(ndr, "group_name", r->in.group_name); + ndr_print_uint32(ndr, "level", r->in.level); + ndr->depth--; + } + if (flags & NDR_OUT) { + ndr_print_struct(ndr, "out", "NetGroupGetInfo"); + ndr->depth++; + ndr_print_ptr(ndr, "buf", r->out.buf); + ndr->depth++; + ndr_print_ptr(ndr, "buf", *r->out.buf); + ndr->depth++; + if (*r->out.buf) { + ndr_print_uint8(ndr, "buf", **r->out.buf); + } + ndr->depth--; + ndr->depth--; + ndr_print_NET_API_STATUS(ndr, "result", r->out.result); + ndr->depth--; + } + ndr->depth--; +} + -- cgit From 02db44188f6f1ad60a2ae820085aff2486d090d5 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Mon, 2 Jun 2008 13:41:58 +0200 Subject: re-run make idl. Guenther (This used to be commit b18ef7ce05a3ea009c7779b498921bdd1e6ac294) --- source3/librpc/gen_ndr/ndr_libnetapi.c | 48 ++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) (limited to 'source3/librpc/gen_ndr/ndr_libnetapi.c') diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.c b/source3/librpc/gen_ndr/ndr_libnetapi.c index 1f7ab37a27..6fbe1b1bd1 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.c +++ b/source3/librpc/gen_ndr/ndr_libnetapi.c @@ -1058,3 +1058,51 @@ _PUBLIC_ void ndr_print_NetGroupGetInfo(struct ndr_print *ndr, const char *name, ndr->depth--; } +_PUBLIC_ void ndr_print_NetGroupAddUser(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupAddUser *r) +{ + ndr_print_struct(ndr, name, "NetGroupAddUser"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "NetGroupAddUser"); + ndr->depth++; + ndr_print_string(ndr, "server_name", r->in.server_name); + ndr_print_string(ndr, "group_name", r->in.group_name); + ndr_print_string(ndr, "user_name", r->in.user_name); + ndr->depth--; + } + if (flags & NDR_OUT) { + ndr_print_struct(ndr, "out", "NetGroupAddUser"); + ndr->depth++; + ndr_print_NET_API_STATUS(ndr, "result", r->out.result); + ndr->depth--; + } + ndr->depth--; +} + +_PUBLIC_ void ndr_print_NetGroupDelUser(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupDelUser *r) +{ + ndr_print_struct(ndr, name, "NetGroupDelUser"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "NetGroupDelUser"); + ndr->depth++; + ndr_print_string(ndr, "server_name", r->in.server_name); + ndr_print_string(ndr, "group_name", r->in.group_name); + ndr_print_string(ndr, "user_name", r->in.user_name); + ndr->depth--; + } + if (flags & NDR_OUT) { + ndr_print_struct(ndr, "out", "NetGroupDelUser"); + ndr->depth++; + ndr_print_NET_API_STATUS(ndr, "result", r->out.result); + ndr->depth--; + } + ndr->depth--; +} + -- cgit From b931bec55229230ef8356bc9d1d76c1a8ea7633c Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Mon, 2 Jun 2008 17:31:58 +0200 Subject: re-run make idl. Guenther (This used to be commit 8d865b9a53da70d613425a8dc2ee1b0ca12843ac) --- source3/librpc/gen_ndr/ndr_libnetapi.c | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'source3/librpc/gen_ndr/ndr_libnetapi.c') diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.c b/source3/librpc/gen_ndr/ndr_libnetapi.c index 6fbe1b1bd1..d1a58bbf9d 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.c +++ b/source3/librpc/gen_ndr/ndr_libnetapi.c @@ -1106,3 +1106,34 @@ _PUBLIC_ void ndr_print_NetGroupDelUser(struct ndr_print *ndr, const char *name, ndr->depth--; } +_PUBLIC_ void ndr_print_NetLocalGroupAdd(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupAdd *r) +{ + ndr_print_struct(ndr, name, "NetLocalGroupAdd"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "NetLocalGroupAdd"); + ndr->depth++; + ndr_print_string(ndr, "server_name", r->in.server_name); + ndr_print_uint32(ndr, "level", r->in.level); + ndr_print_ptr(ndr, "buf", r->in.buf); + ndr->depth++; + ndr_print_uint8(ndr, "buf", *r->in.buf); + ndr->depth--; + ndr->depth--; + } + if (flags & NDR_OUT) { + ndr_print_struct(ndr, "out", "NetLocalGroupAdd"); + ndr->depth++; + ndr_print_ptr(ndr, "parm_err", r->out.parm_err); + ndr->depth++; + ndr_print_uint32(ndr, "parm_err", *r->out.parm_err); + ndr->depth--; + ndr_print_NET_API_STATUS(ndr, "result", r->out.result); + ndr->depth--; + } + ndr->depth--; +} + -- cgit From 7019644a77c1d5b364736b654726a1d5582febeb Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Mon, 2 Jun 2008 19:17:53 +0200 Subject: re-run make idl. Guenther (This used to be commit 929ecc693a44fbadadcbb9000220bce9dfa6904d) --- source3/librpc/gen_ndr/ndr_libnetapi.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'source3/librpc/gen_ndr/ndr_libnetapi.c') diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.c b/source3/librpc/gen_ndr/ndr_libnetapi.c index d1a58bbf9d..4d7f6d8917 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.c +++ b/source3/librpc/gen_ndr/ndr_libnetapi.c @@ -1137,3 +1137,26 @@ _PUBLIC_ void ndr_print_NetLocalGroupAdd(struct ndr_print *ndr, const char *name ndr->depth--; } +_PUBLIC_ void ndr_print_NetLocalGroupDel(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupDel *r) +{ + ndr_print_struct(ndr, name, "NetLocalGroupDel"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "NetLocalGroupDel"); + ndr->depth++; + ndr_print_string(ndr, "server_name", r->in.server_name); + ndr_print_string(ndr, "group_name", r->in.group_name); + ndr->depth--; + } + if (flags & NDR_OUT) { + ndr_print_struct(ndr, "out", "NetLocalGroupDel"); + ndr->depth++; + ndr_print_NET_API_STATUS(ndr, "result", r->out.result); + ndr->depth--; + } + ndr->depth--; +} + -- cgit From cc494641335b4c16b31b6fb0e91f79063adef668 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Mon, 2 Jun 2008 20:19:36 +0200 Subject: re-run make idl. Guenther (This used to be commit 39e3a29cb9a57d5f79e503f7d4873b5c8a844976) --- source3/librpc/gen_ndr/ndr_libnetapi.c | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'source3/librpc/gen_ndr/ndr_libnetapi.c') diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.c b/source3/librpc/gen_ndr/ndr_libnetapi.c index 4d7f6d8917..160f57d297 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.c +++ b/source3/librpc/gen_ndr/ndr_libnetapi.c @@ -1160,3 +1160,36 @@ _PUBLIC_ void ndr_print_NetLocalGroupDel(struct ndr_print *ndr, const char *name ndr->depth--; } +_PUBLIC_ void ndr_print_NetLocalGroupGetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupGetInfo *r) +{ + ndr_print_struct(ndr, name, "NetLocalGroupGetInfo"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "NetLocalGroupGetInfo"); + ndr->depth++; + ndr_print_string(ndr, "server_name", r->in.server_name); + ndr_print_string(ndr, "group_name", r->in.group_name); + ndr_print_uint32(ndr, "level", r->in.level); + ndr->depth--; + } + if (flags & NDR_OUT) { + ndr_print_struct(ndr, "out", "NetLocalGroupGetInfo"); + ndr->depth++; + ndr_print_ptr(ndr, "buf", r->out.buf); + ndr->depth++; + ndr_print_ptr(ndr, "buf", *r->out.buf); + ndr->depth++; + if (*r->out.buf) { + ndr_print_uint8(ndr, "buf", **r->out.buf); + } + ndr->depth--; + ndr->depth--; + ndr_print_NET_API_STATUS(ndr, "result", r->out.result); + ndr->depth--; + } + ndr->depth--; +} + -- cgit From 504fbb5b2395c7417ce485a460dd44fefe9862b3 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Mon, 2 Jun 2008 22:26:01 +0200 Subject: re-run make idl. Guenther (This used to be commit 68cad7322fe7a6bad7c9378f0d610a3b713b4b18) --- source3/librpc/gen_ndr/ndr_libnetapi.c | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'source3/librpc/gen_ndr/ndr_libnetapi.c') diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.c b/source3/librpc/gen_ndr/ndr_libnetapi.c index 160f57d297..469b0ab54a 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.c +++ b/source3/librpc/gen_ndr/ndr_libnetapi.c @@ -1193,3 +1193,35 @@ _PUBLIC_ void ndr_print_NetLocalGroupGetInfo(struct ndr_print *ndr, const char * ndr->depth--; } +_PUBLIC_ void ndr_print_NetLocalGroupSetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupSetInfo *r) +{ + ndr_print_struct(ndr, name, "NetLocalGroupSetInfo"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "NetLocalGroupSetInfo"); + ndr->depth++; + ndr_print_string(ndr, "server_name", r->in.server_name); + ndr_print_string(ndr, "group_name", r->in.group_name); + ndr_print_uint32(ndr, "level", r->in.level); + ndr_print_ptr(ndr, "buf", r->in.buf); + ndr->depth++; + ndr_print_uint8(ndr, "buf", *r->in.buf); + ndr->depth--; + ndr->depth--; + } + if (flags & NDR_OUT) { + ndr_print_struct(ndr, "out", "NetLocalGroupSetInfo"); + ndr->depth++; + ndr_print_ptr(ndr, "parm_err", r->out.parm_err); + ndr->depth++; + ndr_print_uint32(ndr, "parm_err", *r->out.parm_err); + ndr->depth--; + ndr_print_NET_API_STATUS(ndr, "result", r->out.result); + ndr->depth--; + } + ndr->depth--; +} + -- cgit From de7de69530b886e84627daa9597327dc4f2e0afb Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 6 Jun 2008 12:51:12 +0200 Subject: re-run make idl. Guenther (This used to be commit 782ab0f1c1c0957a1111a76c2c1ea7bd99d38311) --- source3/librpc/gen_ndr/ndr_libnetapi.c | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'source3/librpc/gen_ndr/ndr_libnetapi.c') diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.c b/source3/librpc/gen_ndr/ndr_libnetapi.c index 469b0ab54a..238cfdf1ed 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.c +++ b/source3/librpc/gen_ndr/ndr_libnetapi.c @@ -1225,3 +1225,34 @@ _PUBLIC_ void ndr_print_NetLocalGroupSetInfo(struct ndr_print *ndr, const char * ndr->depth--; } +_PUBLIC_ void ndr_print_NetRemoteTOD(struct ndr_print *ndr, const char *name, int flags, const struct NetRemoteTOD *r) +{ + ndr_print_struct(ndr, name, "NetRemoteTOD"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "NetRemoteTOD"); + ndr->depth++; + ndr_print_string(ndr, "server_name", r->in.server_name); + ndr->depth--; + } + if (flags & NDR_OUT) { + ndr_print_struct(ndr, "out", "NetRemoteTOD"); + ndr->depth++; + ndr_print_ptr(ndr, "buf", r->out.buf); + ndr->depth++; + ndr_print_ptr(ndr, "buf", *r->out.buf); + ndr->depth++; + if (*r->out.buf) { + ndr_print_uint8(ndr, "buf", **r->out.buf); + } + ndr->depth--; + ndr->depth--; + ndr_print_NET_API_STATUS(ndr, "result", r->out.result); + ndr->depth--; + } + ndr->depth--; +} + -- cgit From 84cf8dc8c62da71e36d196581cce8038d8a05fe2 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 25 Jun 2008 00:29:25 +0200 Subject: re-run make idl. Guenther (This used to be commit 397d305e90e90f475b6de0efac7dd9630d698efd) --- source3/librpc/gen_ndr/ndr_libnetapi.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'source3/librpc/gen_ndr/ndr_libnetapi.c') diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.c b/source3/librpc/gen_ndr/ndr_libnetapi.c index 238cfdf1ed..4bc966f491 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.c +++ b/source3/librpc/gen_ndr/ndr_libnetapi.c @@ -904,6 +904,31 @@ _PUBLIC_ void ndr_print_NetUserEnum(struct ndr_print *ndr, const char *name, int ndr->depth--; } +_PUBLIC_ void ndr_print_NetUserChangePassword(struct ndr_print *ndr, const char *name, int flags, const struct NetUserChangePassword *r) +{ + ndr_print_struct(ndr, name, "NetUserChangePassword"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "NetUserChangePassword"); + ndr->depth++; + ndr_print_string(ndr, "domain_name", r->in.domain_name); + ndr_print_string(ndr, "user_name", r->in.user_name); + ndr_print_string(ndr, "old_password", r->in.old_password); + ndr_print_string(ndr, "new_password", r->in.new_password); + ndr->depth--; + } + if (flags & NDR_OUT) { + ndr_print_struct(ndr, "out", "NetUserChangePassword"); + ndr->depth++; + ndr_print_NET_API_STATUS(ndr, "result", r->out.result); + ndr->depth--; + } + ndr->depth--; +} + _PUBLIC_ void ndr_print_NetQueryDisplayInformation(struct ndr_print *ndr, const char *name, int flags, const struct NetQueryDisplayInformation *r) { ndr_print_struct(ndr, name, "NetQueryDisplayInformation"); -- cgit From 27897dbebd2afaafda859a4b71b0cd5bdddd9ebf Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Tue, 1 Jul 2008 20:10:00 +0200 Subject: re-run make idl. Guenther (This used to be commit 1ae9ae839e2f9032bb30db377e0022112dee2419) --- source3/librpc/gen_ndr/ndr_libnetapi.c | 49 ++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) (limited to 'source3/librpc/gen_ndr/ndr_libnetapi.c') diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.c b/source3/librpc/gen_ndr/ndr_libnetapi.c index 4bc966f491..d2453c606f 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.c +++ b/source3/librpc/gen_ndr/ndr_libnetapi.c @@ -1018,6 +1018,55 @@ _PUBLIC_ void ndr_print_NetGroupDel(struct ndr_print *ndr, const char *name, int ndr->depth--; } +_PUBLIC_ void ndr_print_NetGroupEnum(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupEnum *r) +{ + ndr_print_struct(ndr, name, "NetGroupEnum"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "NetGroupEnum"); + ndr->depth++; + ndr_print_string(ndr, "server_name", r->in.server_name); + ndr_print_uint32(ndr, "level", r->in.level); + ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen); + ndr_print_ptr(ndr, "resume_handle", r->in.resume_handle); + ndr->depth++; + ndr_print_uint32(ndr, "resume_handle", *r->in.resume_handle); + ndr->depth--; + ndr->depth--; + } + if (flags & NDR_OUT) { + ndr_print_struct(ndr, "out", "NetGroupEnum"); + ndr->depth++; + ndr_print_ptr(ndr, "buffer", r->out.buffer); + ndr->depth++; + ndr_print_ptr(ndr, "buffer", *r->out.buffer); + ndr->depth++; + if (*r->out.buffer) { + ndr_print_uint8(ndr, "buffer", **r->out.buffer); + } + ndr->depth--; + ndr->depth--; + ndr_print_ptr(ndr, "entries_read", r->out.entries_read); + ndr->depth++; + ndr_print_uint32(ndr, "entries_read", *r->out.entries_read); + ndr->depth--; + ndr_print_ptr(ndr, "total_entries", r->out.total_entries); + ndr->depth++; + ndr_print_uint32(ndr, "total_entries", *r->out.total_entries); + ndr->depth--; + ndr_print_ptr(ndr, "resume_handle", r->out.resume_handle); + ndr->depth++; + ndr_print_uint32(ndr, "resume_handle", *r->out.resume_handle); + ndr->depth--; + ndr_print_NET_API_STATUS(ndr, "result", r->out.result); + ndr->depth--; + } + ndr->depth--; +} + _PUBLIC_ void ndr_print_NetGroupSetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupSetInfo *r) { ndr_print_struct(ndr, name, "NetGroupSetInfo"); -- cgit From da1677d4ebce8d0264bfb943560b9a5eaec91210 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 17 Jul 2008 11:21:43 +0200 Subject: re-run make idl. Guenther (This used to be commit 075fad24f787c7b40769870170f2b8c02a7d6ff8) --- source3/librpc/gen_ndr/ndr_libnetapi.c | 690 +++++++++++++++++++++++++++++++++ 1 file changed, 690 insertions(+) (limited to 'source3/librpc/gen_ndr/ndr_libnetapi.c') diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.c b/source3/librpc/gen_ndr/ndr_libnetapi.c index d2453c606f..246b5fbc1d 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.c +++ b/source3/librpc/gen_ndr/ndr_libnetapi.c @@ -252,6 +252,696 @@ _PUBLIC_ void ndr_print_USER_INFO_1(struct ndr_print *ndr, const char *name, con ndr->depth--; } +_PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_2(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_2 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_push_align(ndr, 4)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_name)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_password)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_password_age)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_priv)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_home_dir)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_comment)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_flags)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_script_path)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_auth_flags)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_full_name)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_usr_comment)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_parms)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_workstations)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_last_logon)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_last_logoff)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_acct_expires)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_max_storage)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_units_per_week)); + NDR_CHECK(ndr_push_unique_ptr(ndr, r->usri2_logon_hours)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_bad_pw_count)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_num_logons)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri2_logon_server)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_country_code)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri2_code_page)); + } + if (ndr_flags & NDR_BUFFERS) { + if (r->usri2_logon_hours) { + NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, *r->usri2_logon_hours)); + } + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_2(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_2 *r) +{ + uint32_t _ptr_usri2_logon_hours; + TALLOC_CTX *_mem_save_usri2_logon_hours_0; + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_pull_align(ndr, 4)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_name)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_password)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_password_age)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_priv)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_home_dir)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_comment)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_flags)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_script_path)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_auth_flags)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_full_name)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_usr_comment)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_parms)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_workstations)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_last_logon)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_last_logoff)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_acct_expires)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_max_storage)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_units_per_week)); + NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_usri2_logon_hours)); + if (_ptr_usri2_logon_hours) { + NDR_PULL_ALLOC(ndr, r->usri2_logon_hours); + } else { + r->usri2_logon_hours = NULL; + } + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_bad_pw_count)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_num_logons)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri2_logon_server)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_country_code)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri2_code_page)); + } + if (ndr_flags & NDR_BUFFERS) { + if (r->usri2_logon_hours) { + _mem_save_usri2_logon_hours_0 = NDR_PULL_GET_MEM_CTX(ndr); + NDR_PULL_SET_MEM_CTX(ndr, r->usri2_logon_hours, 0); + NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, r->usri2_logon_hours)); + NDR_PULL_SET_MEM_CTX(ndr, _mem_save_usri2_logon_hours_0, 0); + } + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ void ndr_print_USER_INFO_2(struct ndr_print *ndr, const char *name, const struct USER_INFO_2 *r) +{ + ndr_print_struct(ndr, name, "USER_INFO_2"); + ndr->depth++; + ndr_print_string(ndr, "usri2_name", r->usri2_name); + ndr_print_string(ndr, "usri2_password", r->usri2_password); + ndr_print_uint32(ndr, "usri2_password_age", r->usri2_password_age); + ndr_print_uint32(ndr, "usri2_priv", r->usri2_priv); + ndr_print_string(ndr, "usri2_home_dir", r->usri2_home_dir); + ndr_print_string(ndr, "usri2_comment", r->usri2_comment); + ndr_print_uint32(ndr, "usri2_flags", r->usri2_flags); + ndr_print_string(ndr, "usri2_script_path", r->usri2_script_path); + ndr_print_uint32(ndr, "usri2_auth_flags", r->usri2_auth_flags); + ndr_print_string(ndr, "usri2_full_name", r->usri2_full_name); + ndr_print_string(ndr, "usri2_usr_comment", r->usri2_usr_comment); + ndr_print_string(ndr, "usri2_parms", r->usri2_parms); + ndr_print_string(ndr, "usri2_workstations", r->usri2_workstations); + ndr_print_uint32(ndr, "usri2_last_logon", r->usri2_last_logon); + ndr_print_uint32(ndr, "usri2_last_logoff", r->usri2_last_logoff); + ndr_print_uint32(ndr, "usri2_acct_expires", r->usri2_acct_expires); + ndr_print_uint32(ndr, "usri2_max_storage", r->usri2_max_storage); + ndr_print_uint32(ndr, "usri2_units_per_week", r->usri2_units_per_week); + ndr_print_ptr(ndr, "usri2_logon_hours", r->usri2_logon_hours); + ndr->depth++; + if (r->usri2_logon_hours) { + ndr_print_uint8(ndr, "usri2_logon_hours", *r->usri2_logon_hours); + } + ndr->depth--; + ndr_print_uint32(ndr, "usri2_bad_pw_count", r->usri2_bad_pw_count); + ndr_print_uint32(ndr, "usri2_num_logons", r->usri2_num_logons); + ndr_print_string(ndr, "usri2_logon_server", r->usri2_logon_server); + ndr_print_uint32(ndr, "usri2_country_code", r->usri2_country_code); + ndr_print_uint32(ndr, "usri2_code_page", r->usri2_code_page); + ndr->depth--; +} + +_PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_3(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_3 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_push_align(ndr, 4)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_name)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_password_age)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_priv)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_home_dir)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_comment)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_flags)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_script_path)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_auth_flags)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_full_name)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_usr_comment)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_parms)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_workstations)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_last_logon)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_last_logoff)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_acct_expires)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_max_storage)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_units_per_week)); + NDR_CHECK(ndr_push_unique_ptr(ndr, r->usri3_logon_hours)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_bad_pw_count)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_num_logons)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_logon_server)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_country_code)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_code_page)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_user_id)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_primary_group_id)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_profile)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri3_home_dir_drive)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri3_password_expired)); + } + if (ndr_flags & NDR_BUFFERS) { + if (r->usri3_logon_hours) { + NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, *r->usri3_logon_hours)); + } + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_3(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_3 *r) +{ + uint32_t _ptr_usri3_logon_hours; + TALLOC_CTX *_mem_save_usri3_logon_hours_0; + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_pull_align(ndr, 4)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_name)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_password_age)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_priv)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_home_dir)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_comment)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_flags)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_script_path)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_auth_flags)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_full_name)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_usr_comment)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_parms)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_workstations)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_last_logon)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_last_logoff)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_acct_expires)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_max_storage)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_units_per_week)); + NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_usri3_logon_hours)); + if (_ptr_usri3_logon_hours) { + NDR_PULL_ALLOC(ndr, r->usri3_logon_hours); + } else { + r->usri3_logon_hours = NULL; + } + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_bad_pw_count)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_num_logons)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_logon_server)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_country_code)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_code_page)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_user_id)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_primary_group_id)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_profile)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri3_home_dir_drive)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri3_password_expired)); + } + if (ndr_flags & NDR_BUFFERS) { + if (r->usri3_logon_hours) { + _mem_save_usri3_logon_hours_0 = NDR_PULL_GET_MEM_CTX(ndr); + NDR_PULL_SET_MEM_CTX(ndr, r->usri3_logon_hours, 0); + NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, r->usri3_logon_hours)); + NDR_PULL_SET_MEM_CTX(ndr, _mem_save_usri3_logon_hours_0, 0); + } + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ void ndr_print_USER_INFO_3(struct ndr_print *ndr, const char *name, const struct USER_INFO_3 *r) +{ + ndr_print_struct(ndr, name, "USER_INFO_3"); + ndr->depth++; + ndr_print_string(ndr, "usri3_name", r->usri3_name); + ndr_print_uint32(ndr, "usri3_password_age", r->usri3_password_age); + ndr_print_uint32(ndr, "usri3_priv", r->usri3_priv); + ndr_print_string(ndr, "usri3_home_dir", r->usri3_home_dir); + ndr_print_string(ndr, "usri3_comment", r->usri3_comment); + ndr_print_uint32(ndr, "usri3_flags", r->usri3_flags); + ndr_print_string(ndr, "usri3_script_path", r->usri3_script_path); + ndr_print_uint32(ndr, "usri3_auth_flags", r->usri3_auth_flags); + ndr_print_string(ndr, "usri3_full_name", r->usri3_full_name); + ndr_print_string(ndr, "usri3_usr_comment", r->usri3_usr_comment); + ndr_print_string(ndr, "usri3_parms", r->usri3_parms); + ndr_print_string(ndr, "usri3_workstations", r->usri3_workstations); + ndr_print_uint32(ndr, "usri3_last_logon", r->usri3_last_logon); + ndr_print_uint32(ndr, "usri3_last_logoff", r->usri3_last_logoff); + ndr_print_uint32(ndr, "usri3_acct_expires", r->usri3_acct_expires); + ndr_print_uint32(ndr, "usri3_max_storage", r->usri3_max_storage); + ndr_print_uint32(ndr, "usri3_units_per_week", r->usri3_units_per_week); + ndr_print_ptr(ndr, "usri3_logon_hours", r->usri3_logon_hours); + ndr->depth++; + if (r->usri3_logon_hours) { + ndr_print_uint8(ndr, "usri3_logon_hours", *r->usri3_logon_hours); + } + ndr->depth--; + ndr_print_uint32(ndr, "usri3_bad_pw_count", r->usri3_bad_pw_count); + ndr_print_uint32(ndr, "usri3_num_logons", r->usri3_num_logons); + ndr_print_string(ndr, "usri3_logon_server", r->usri3_logon_server); + ndr_print_uint32(ndr, "usri3_country_code", r->usri3_country_code); + ndr_print_uint32(ndr, "usri3_code_page", r->usri3_code_page); + ndr_print_uint32(ndr, "usri3_user_id", r->usri3_user_id); + ndr_print_uint32(ndr, "usri3_primary_group_id", r->usri3_primary_group_id); + ndr_print_string(ndr, "usri3_profile", r->usri3_profile); + ndr_print_string(ndr, "usri3_home_dir_drive", r->usri3_home_dir_drive); + ndr_print_uint32(ndr, "usri3_password_expired", r->usri3_password_expired); + ndr->depth--; +} + +_PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_4(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_4 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_push_align(ndr, 4)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_name)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_password)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_password_age)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_priv)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_home_dir)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_comment)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_flags)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_script_path)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_auth_flags)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_full_name)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_usr_comment)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_parms)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_workstations)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_last_logon)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_last_logoff)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_acct_expires)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_max_storage)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_units_per_week)); + NDR_CHECK(ndr_push_unique_ptr(ndr, r->usri4_logon_hours)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_bad_pw_count)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_num_logons)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_logon_server)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_country_code)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_code_page)); + NDR_CHECK(ndr_push_unique_ptr(ndr, r->usri4_user_sid)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_primary_group_id)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_profile)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri4_home_dir_drive)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri4_password_expired)); + } + if (ndr_flags & NDR_BUFFERS) { + if (r->usri4_logon_hours) { + NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, *r->usri4_logon_hours)); + } + if (r->usri4_user_sid) { + NDR_CHECK(ndr_push_dom_sid(ndr, NDR_SCALARS|NDR_BUFFERS, r->usri4_user_sid)); + } + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_4(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_4 *r) +{ + uint32_t _ptr_usri4_logon_hours; + TALLOC_CTX *_mem_save_usri4_logon_hours_0; + uint32_t _ptr_usri4_user_sid; + TALLOC_CTX *_mem_save_usri4_user_sid_0; + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_pull_align(ndr, 4)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_name)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_password)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_password_age)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_priv)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_home_dir)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_comment)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_flags)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_script_path)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_auth_flags)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_full_name)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_usr_comment)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_parms)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_workstations)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_last_logon)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_last_logoff)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_acct_expires)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_max_storage)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_units_per_week)); + NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_usri4_logon_hours)); + if (_ptr_usri4_logon_hours) { + NDR_PULL_ALLOC(ndr, r->usri4_logon_hours); + } else { + r->usri4_logon_hours = NULL; + } + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_bad_pw_count)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_num_logons)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_logon_server)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_country_code)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_code_page)); + NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_usri4_user_sid)); + if (_ptr_usri4_user_sid) { + NDR_PULL_ALLOC(ndr, r->usri4_user_sid); + } else { + r->usri4_user_sid = NULL; + } + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_primary_group_id)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_profile)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri4_home_dir_drive)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri4_password_expired)); + } + if (ndr_flags & NDR_BUFFERS) { + if (r->usri4_logon_hours) { + _mem_save_usri4_logon_hours_0 = NDR_PULL_GET_MEM_CTX(ndr); + NDR_PULL_SET_MEM_CTX(ndr, r->usri4_logon_hours, 0); + NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, r->usri4_logon_hours)); + NDR_PULL_SET_MEM_CTX(ndr, _mem_save_usri4_logon_hours_0, 0); + } + if (r->usri4_user_sid) { + _mem_save_usri4_user_sid_0 = NDR_PULL_GET_MEM_CTX(ndr); + NDR_PULL_SET_MEM_CTX(ndr, r->usri4_user_sid, 0); + NDR_CHECK(ndr_pull_dom_sid(ndr, NDR_SCALARS|NDR_BUFFERS, r->usri4_user_sid)); + NDR_PULL_SET_MEM_CTX(ndr, _mem_save_usri4_user_sid_0, 0); + } + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ void ndr_print_USER_INFO_4(struct ndr_print *ndr, const char *name, const struct USER_INFO_4 *r) +{ + ndr_print_struct(ndr, name, "USER_INFO_4"); + ndr->depth++; + ndr_print_string(ndr, "usri4_name", r->usri4_name); + ndr_print_string(ndr, "usri4_password", r->usri4_password); + ndr_print_uint32(ndr, "usri4_password_age", r->usri4_password_age); + ndr_print_uint32(ndr, "usri4_priv", r->usri4_priv); + ndr_print_string(ndr, "usri4_home_dir", r->usri4_home_dir); + ndr_print_string(ndr, "usri4_comment", r->usri4_comment); + ndr_print_uint32(ndr, "usri4_flags", r->usri4_flags); + ndr_print_string(ndr, "usri4_script_path", r->usri4_script_path); + ndr_print_uint32(ndr, "usri4_auth_flags", r->usri4_auth_flags); + ndr_print_string(ndr, "usri4_full_name", r->usri4_full_name); + ndr_print_string(ndr, "usri4_usr_comment", r->usri4_usr_comment); + ndr_print_string(ndr, "usri4_parms", r->usri4_parms); + ndr_print_string(ndr, "usri4_workstations", r->usri4_workstations); + ndr_print_uint32(ndr, "usri4_last_logon", r->usri4_last_logon); + ndr_print_uint32(ndr, "usri4_last_logoff", r->usri4_last_logoff); + ndr_print_uint32(ndr, "usri4_acct_expires", r->usri4_acct_expires); + ndr_print_uint32(ndr, "usri4_max_storage", r->usri4_max_storage); + ndr_print_uint32(ndr, "usri4_units_per_week", r->usri4_units_per_week); + ndr_print_ptr(ndr, "usri4_logon_hours", r->usri4_logon_hours); + ndr->depth++; + if (r->usri4_logon_hours) { + ndr_print_uint8(ndr, "usri4_logon_hours", *r->usri4_logon_hours); + } + ndr->depth--; + ndr_print_uint32(ndr, "usri4_bad_pw_count", r->usri4_bad_pw_count); + ndr_print_uint32(ndr, "usri4_num_logons", r->usri4_num_logons); + ndr_print_string(ndr, "usri4_logon_server", r->usri4_logon_server); + ndr_print_uint32(ndr, "usri4_country_code", r->usri4_country_code); + ndr_print_uint32(ndr, "usri4_code_page", r->usri4_code_page); + ndr_print_ptr(ndr, "usri4_user_sid", r->usri4_user_sid); + ndr->depth++; + if (r->usri4_user_sid) { + ndr_print_dom_sid(ndr, "usri4_user_sid", r->usri4_user_sid); + } + ndr->depth--; + ndr_print_uint32(ndr, "usri4_primary_group_id", r->usri4_primary_group_id); + ndr_print_string(ndr, "usri4_profile", r->usri4_profile); + ndr_print_string(ndr, "usri4_home_dir_drive", r->usri4_home_dir_drive); + ndr_print_uint32(ndr, "usri4_password_expired", r->usri4_password_expired); + ndr->depth--; +} + +_PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_10(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_10 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_push_align(ndr, 4)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri10_name)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri10_comment)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri10_usr_comment)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri10_full_name)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_10(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_10 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_pull_align(ndr, 4)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri10_name)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri10_comment)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri10_usr_comment)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri10_full_name)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ void ndr_print_USER_INFO_10(struct ndr_print *ndr, const char *name, const struct USER_INFO_10 *r) +{ + ndr_print_struct(ndr, name, "USER_INFO_10"); + ndr->depth++; + ndr_print_string(ndr, "usri10_name", r->usri10_name); + ndr_print_string(ndr, "usri10_comment", r->usri10_comment); + ndr_print_string(ndr, "usri10_usr_comment", r->usri10_usr_comment); + ndr_print_string(ndr, "usri10_full_name", r->usri10_full_name); + ndr->depth--; +} + +_PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_11(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_11 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_push_align(ndr, 4)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri11_name)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri11_comment)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri11_usr_comment)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri11_full_name)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_priv)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_auth_flags)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_password_age)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri11_home_dir)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri11_parms)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_last_logon)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_last_logoff)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_bad_pw_count)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_num_logons)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri11_logon_server)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_country_code)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri11_workstations)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_max_storage)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_units_per_week)); + NDR_CHECK(ndr_push_unique_ptr(ndr, r->usri11_logon_hours)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri11_code_page)); + } + if (ndr_flags & NDR_BUFFERS) { + if (r->usri11_logon_hours) { + NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, *r->usri11_logon_hours)); + } + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_11(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_11 *r) +{ + uint32_t _ptr_usri11_logon_hours; + TALLOC_CTX *_mem_save_usri11_logon_hours_0; + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_pull_align(ndr, 4)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri11_name)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri11_comment)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri11_usr_comment)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri11_full_name)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_priv)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_auth_flags)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_password_age)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri11_home_dir)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri11_parms)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_last_logon)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_last_logoff)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_bad_pw_count)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_num_logons)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri11_logon_server)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_country_code)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri11_workstations)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_max_storage)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_units_per_week)); + NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_usri11_logon_hours)); + if (_ptr_usri11_logon_hours) { + NDR_PULL_ALLOC(ndr, r->usri11_logon_hours); + } else { + r->usri11_logon_hours = NULL; + } + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri11_code_page)); + } + if (ndr_flags & NDR_BUFFERS) { + if (r->usri11_logon_hours) { + _mem_save_usri11_logon_hours_0 = NDR_PULL_GET_MEM_CTX(ndr); + NDR_PULL_SET_MEM_CTX(ndr, r->usri11_logon_hours, 0); + NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, r->usri11_logon_hours)); + NDR_PULL_SET_MEM_CTX(ndr, _mem_save_usri11_logon_hours_0, 0); + } + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ void ndr_print_USER_INFO_11(struct ndr_print *ndr, const char *name, const struct USER_INFO_11 *r) +{ + ndr_print_struct(ndr, name, "USER_INFO_11"); + ndr->depth++; + ndr_print_string(ndr, "usri11_name", r->usri11_name); + ndr_print_string(ndr, "usri11_comment", r->usri11_comment); + ndr_print_string(ndr, "usri11_usr_comment", r->usri11_usr_comment); + ndr_print_string(ndr, "usri11_full_name", r->usri11_full_name); + ndr_print_uint32(ndr, "usri11_priv", r->usri11_priv); + ndr_print_uint32(ndr, "usri11_auth_flags", r->usri11_auth_flags); + ndr_print_uint32(ndr, "usri11_password_age", r->usri11_password_age); + ndr_print_string(ndr, "usri11_home_dir", r->usri11_home_dir); + ndr_print_string(ndr, "usri11_parms", r->usri11_parms); + ndr_print_uint32(ndr, "usri11_last_logon", r->usri11_last_logon); + ndr_print_uint32(ndr, "usri11_last_logoff", r->usri11_last_logoff); + ndr_print_uint32(ndr, "usri11_bad_pw_count", r->usri11_bad_pw_count); + ndr_print_uint32(ndr, "usri11_num_logons", r->usri11_num_logons); + ndr_print_string(ndr, "usri11_logon_server", r->usri11_logon_server); + ndr_print_uint32(ndr, "usri11_country_code", r->usri11_country_code); + ndr_print_string(ndr, "usri11_workstations", r->usri11_workstations); + ndr_print_uint32(ndr, "usri11_max_storage", r->usri11_max_storage); + ndr_print_uint32(ndr, "usri11_units_per_week", r->usri11_units_per_week); + ndr_print_ptr(ndr, "usri11_logon_hours", r->usri11_logon_hours); + ndr->depth++; + if (r->usri11_logon_hours) { + ndr_print_uint8(ndr, "usri11_logon_hours", *r->usri11_logon_hours); + } + ndr->depth--; + ndr_print_uint32(ndr, "usri11_code_page", r->usri11_code_page); + ndr->depth--; +} + +_PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_20(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_20 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_push_align(ndr, 4)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri20_name)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri20_full_name)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri20_comment)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri20_flags)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri20_user_id)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_20(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_20 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_pull_align(ndr, 4)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri20_name)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri20_full_name)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri20_comment)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri20_flags)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri20_user_id)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ void ndr_print_USER_INFO_20(struct ndr_print *ndr, const char *name, const struct USER_INFO_20 *r) +{ + ndr_print_struct(ndr, name, "USER_INFO_20"); + ndr->depth++; + ndr_print_string(ndr, "usri20_name", r->usri20_name); + ndr_print_string(ndr, "usri20_full_name", r->usri20_full_name); + ndr_print_string(ndr, "usri20_comment", r->usri20_comment); + ndr_print_uint32(ndr, "usri20_flags", r->usri20_flags); + ndr_print_uint32(ndr, "usri20_user_id", r->usri20_user_id); + ndr->depth--; +} + +_PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_23(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_23 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_push_align(ndr, 4)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri23_name)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri23_full_name)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri23_comment)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri23_flags)); + NDR_CHECK(ndr_push_unique_ptr(ndr, r->usri23_user_sid)); + } + if (ndr_flags & NDR_BUFFERS) { + if (r->usri23_user_sid) { + NDR_CHECK(ndr_push_domsid(ndr, NDR_SCALARS, r->usri23_user_sid)); + } + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_23(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_23 *r) +{ + uint32_t _ptr_usri23_user_sid; + TALLOC_CTX *_mem_save_usri23_user_sid_0; + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_pull_align(ndr, 4)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri23_name)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri23_full_name)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri23_comment)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri23_flags)); + NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_usri23_user_sid)); + if (_ptr_usri23_user_sid) { + NDR_PULL_ALLOC(ndr, r->usri23_user_sid); + } else { + r->usri23_user_sid = NULL; + } + } + if (ndr_flags & NDR_BUFFERS) { + if (r->usri23_user_sid) { + _mem_save_usri23_user_sid_0 = NDR_PULL_GET_MEM_CTX(ndr); + NDR_PULL_SET_MEM_CTX(ndr, r->usri23_user_sid, 0); + NDR_CHECK(ndr_pull_domsid(ndr, NDR_SCALARS, r->usri23_user_sid)); + NDR_PULL_SET_MEM_CTX(ndr, _mem_save_usri23_user_sid_0, 0); + } + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ void ndr_print_USER_INFO_23(struct ndr_print *ndr, const char *name, const struct USER_INFO_23 *r) +{ + ndr_print_struct(ndr, name, "USER_INFO_23"); + ndr->depth++; + ndr_print_string(ndr, "usri23_name", r->usri23_name); + ndr_print_string(ndr, "usri23_full_name", r->usri23_full_name); + ndr_print_string(ndr, "usri23_comment", r->usri23_comment); + ndr_print_uint32(ndr, "usri23_flags", r->usri23_flags); + ndr_print_ptr(ndr, "usri23_user_sid", r->usri23_user_sid); + ndr->depth++; + if (r->usri23_user_sid) { + ndr_print_domsid(ndr, "usri23_user_sid", r->usri23_user_sid); + } + ndr->depth--; + ndr->depth--; +} + +_PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1007(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1007 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_push_align(ndr, 4)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1007_comment)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1007(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1007 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_pull_align(ndr, 4)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1007_comment)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ void ndr_print_USER_INFO_1007(struct ndr_print *ndr, const char *name, const struct USER_INFO_1007 *r) +{ + ndr_print_struct(ndr, name, "USER_INFO_1007"); + ndr->depth++; + ndr_print_string(ndr, "usri1007_comment", r->usri1007_comment); + ndr->depth--; +} + _PUBLIC_ enum ndr_err_code ndr_push_NET_DISPLAY_USER(struct ndr_push *ndr, int ndr_flags, const struct NET_DISPLAY_USER *r) { if (ndr_flags & NDR_SCALARS) { -- cgit From 9569621e95c034e2300ee29eacaf7442360bc63e Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 16 Jul 2008 10:45:31 +0200 Subject: re-run make idl. Guenther (This used to be commit 60e646b5b5d8bce5c7a6f8692bba7125075656e2) --- source3/librpc/gen_ndr/ndr_libnetapi.c | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'source3/librpc/gen_ndr/ndr_libnetapi.c') diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.c b/source3/librpc/gen_ndr/ndr_libnetapi.c index 246b5fbc1d..42d21638e4 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.c +++ b/source3/librpc/gen_ndr/ndr_libnetapi.c @@ -1619,6 +1619,39 @@ _PUBLIC_ void ndr_print_NetUserChangePassword(struct ndr_print *ndr, const char ndr->depth--; } +_PUBLIC_ void ndr_print_NetUserGetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetUserGetInfo *r) +{ + ndr_print_struct(ndr, name, "NetUserGetInfo"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "NetUserGetInfo"); + ndr->depth++; + ndr_print_string(ndr, "server_name", r->in.server_name); + ndr_print_string(ndr, "user_name", r->in.user_name); + ndr_print_uint32(ndr, "level", r->in.level); + ndr->depth--; + } + if (flags & NDR_OUT) { + ndr_print_struct(ndr, "out", "NetUserGetInfo"); + ndr->depth++; + ndr_print_ptr(ndr, "buffer", r->out.buffer); + ndr->depth++; + ndr_print_ptr(ndr, "buffer", *r->out.buffer); + ndr->depth++; + if (*r->out.buffer) { + ndr_print_uint8(ndr, "buffer", **r->out.buffer); + } + ndr->depth--; + ndr->depth--; + ndr_print_NET_API_STATUS(ndr, "result", r->out.result); + ndr->depth--; + } + ndr->depth--; +} + _PUBLIC_ void ndr_print_NetQueryDisplayInformation(struct ndr_print *ndr, const char *name, int flags, const struct NetQueryDisplayInformation *r) { ndr_print_struct(ndr, name, "NetQueryDisplayInformation"); -- cgit From 757bc51539fb015f946511cd137ae5609e0add7a Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 17 Jul 2008 00:59:57 +0200 Subject: re-run make idl. Guenther (This used to be commit de9f40ddd08dad821d3242e60a396a771cf16fa0) --- source3/librpc/gen_ndr/ndr_libnetapi.c | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'source3/librpc/gen_ndr/ndr_libnetapi.c') diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.c b/source3/librpc/gen_ndr/ndr_libnetapi.c index 42d21638e4..3ee4ffad6a 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.c +++ b/source3/librpc/gen_ndr/ndr_libnetapi.c @@ -1652,6 +1652,38 @@ _PUBLIC_ void ndr_print_NetUserGetInfo(struct ndr_print *ndr, const char *name, ndr->depth--; } +_PUBLIC_ void ndr_print_NetUserSetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetUserSetInfo *r) +{ + ndr_print_struct(ndr, name, "NetUserSetInfo"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "NetUserSetInfo"); + ndr->depth++; + ndr_print_string(ndr, "server_name", r->in.server_name); + ndr_print_string(ndr, "user_name", r->in.user_name); + ndr_print_uint32(ndr, "level", r->in.level); + ndr_print_ptr(ndr, "buffer", r->in.buffer); + ndr->depth++; + ndr_print_uint8(ndr, "buffer", *r->in.buffer); + ndr->depth--; + ndr->depth--; + } + if (flags & NDR_OUT) { + ndr_print_struct(ndr, "out", "NetUserSetInfo"); + ndr->depth++; + ndr_print_ptr(ndr, "parm_err", r->out.parm_err); + ndr->depth++; + ndr_print_uint32(ndr, "parm_err", *r->out.parm_err); + ndr->depth--; + ndr_print_NET_API_STATUS(ndr, "result", r->out.result); + ndr->depth--; + } + ndr->depth--; +} + _PUBLIC_ void ndr_print_NetQueryDisplayInformation(struct ndr_print *ndr, const char *name, int flags, const struct NetQueryDisplayInformation *r) { ndr_print_struct(ndr, name, "NetQueryDisplayInformation"); -- cgit From f15740f4244bd5eb52641133922c68c043b349c9 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 18 Jul 2008 01:21:38 +0200 Subject: re-run make idl. Guenther (This used to be commit 4b79d54574722552346bbc17947fd26fc1a0deda) --- source3/librpc/gen_ndr/ndr_libnetapi.c | 49 ++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) (limited to 'source3/librpc/gen_ndr/ndr_libnetapi.c') diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.c b/source3/librpc/gen_ndr/ndr_libnetapi.c index 3ee4ffad6a..7332cd3fd2 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.c +++ b/source3/librpc/gen_ndr/ndr_libnetapi.c @@ -2054,6 +2054,55 @@ _PUBLIC_ void ndr_print_NetLocalGroupSetInfo(struct ndr_print *ndr, const char * ndr->depth--; } +_PUBLIC_ void ndr_print_NetLocalGroupEnum(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupEnum *r) +{ + ndr_print_struct(ndr, name, "NetLocalGroupEnum"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "NetLocalGroupEnum"); + ndr->depth++; + ndr_print_string(ndr, "server_name", r->in.server_name); + ndr_print_uint32(ndr, "level", r->in.level); + ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen); + ndr_print_ptr(ndr, "resume_handle", r->in.resume_handle); + ndr->depth++; + ndr_print_uint32(ndr, "resume_handle", *r->in.resume_handle); + ndr->depth--; + ndr->depth--; + } + if (flags & NDR_OUT) { + ndr_print_struct(ndr, "out", "NetLocalGroupEnum"); + ndr->depth++; + ndr_print_ptr(ndr, "buffer", r->out.buffer); + ndr->depth++; + ndr_print_ptr(ndr, "buffer", *r->out.buffer); + ndr->depth++; + if (*r->out.buffer) { + ndr_print_uint8(ndr, "buffer", **r->out.buffer); + } + ndr->depth--; + ndr->depth--; + ndr_print_ptr(ndr, "entries_read", r->out.entries_read); + ndr->depth++; + ndr_print_uint32(ndr, "entries_read", *r->out.entries_read); + ndr->depth--; + ndr_print_ptr(ndr, "total_entries", r->out.total_entries); + ndr->depth++; + ndr_print_uint32(ndr, "total_entries", *r->out.total_entries); + ndr->depth--; + ndr_print_ptr(ndr, "resume_handle", r->out.resume_handle); + ndr->depth++; + ndr_print_uint32(ndr, "resume_handle", *r->out.resume_handle); + ndr->depth--; + ndr_print_NET_API_STATUS(ndr, "result", r->out.result); + ndr->depth--; + } + ndr->depth--; +} + _PUBLIC_ void ndr_print_NetRemoteTOD(struct ndr_print *ndr, const char *name, int flags, const struct NetRemoteTOD *r) { ndr_print_struct(ndr, name, "NetRemoteTOD"); -- cgit From 16a9020029f809707b38d12960db12abbd2ef1be Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 22 Jul 2008 11:54:54 +0200 Subject: re-run make idl after Jelmer's "poperly cast array lengths" pidl change. (f321240fa91fa19c1131f119c42f64897d220682) Michael (This used to be commit 962c2670b10addf81a242d8cb381cc010e036b8e) --- source3/librpc/gen_ndr/ndr_libnetapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/librpc/gen_ndr/ndr_libnetapi.c') diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.c b/source3/librpc/gen_ndr/ndr_libnetapi.c index 7332cd3fd2..f84fbe4858 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.c +++ b/source3/librpc/gen_ndr/ndr_libnetapi.c @@ -74,7 +74,7 @@ _PUBLIC_ void ndr_print_domsid(struct ndr_print *ndr, const char *name, const st ndr_print_uint8(ndr, "sid_rev_num", r->sid_rev_num); ndr_print_uint8(ndr, "num_auths", r->num_auths); ndr_print_array_uint8(ndr, "id_auth", r->id_auth, 6); - ndr->print(ndr, "%s: ARRAY(%d)", "sub_auths", MAXSUBAUTHS); + ndr->print(ndr, "%s: ARRAY(%d)", "sub_auths", (int)MAXSUBAUTHS); ndr->depth++; for (cntr_sub_auths_0=0;cntr_sub_auths_0 Date: Fri, 18 Jul 2008 19:40:26 +0200 Subject: re-run make idl. Guenther (This used to be commit 244ad49e6a993a0e3c56c5a19d38918be9deca3b) --- source3/librpc/gen_ndr/ndr_libnetapi.c | 120 +++++++++++++++++++++++++++++++++ 1 file changed, 120 insertions(+) (limited to 'source3/librpc/gen_ndr/ndr_libnetapi.c') diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.c b/source3/librpc/gen_ndr/ndr_libnetapi.c index f84fbe4858..2fe5b2e5d7 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.c +++ b/source3/librpc/gen_ndr/ndr_libnetapi.c @@ -942,6 +942,126 @@ _PUBLIC_ void ndr_print_USER_INFO_1007(struct ndr_print *ndr, const char *name, ndr->depth--; } +_PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_X(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_X *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_push_align(ndr, 4)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_name)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_password)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_password_age)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_priv)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_home_dir)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_comment)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_flags)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_script_path)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_auth_flags)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_full_name)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_usr_comment)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_parms)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_workstations)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_last_logon)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_last_logoff)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_acct_expires)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_max_storage)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_units_per_week)); + NDR_CHECK(ndr_push_unique_ptr(ndr, r->usriX_logon_hours)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_bad_pw_count)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_num_logons)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_logon_server)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_country_code)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_code_page)); + } + if (ndr_flags & NDR_BUFFERS) { + if (r->usriX_logon_hours) { + NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, *r->usriX_logon_hours)); + } + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_X(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_X *r) +{ + uint32_t _ptr_usriX_logon_hours; + TALLOC_CTX *_mem_save_usriX_logon_hours_0; + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_pull_align(ndr, 4)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_name)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_password)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_password_age)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_priv)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_home_dir)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_comment)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_flags)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_script_path)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_auth_flags)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_full_name)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_usr_comment)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_parms)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_workstations)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_last_logon)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_last_logoff)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_acct_expires)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_max_storage)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_units_per_week)); + NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_usriX_logon_hours)); + if (_ptr_usriX_logon_hours) { + NDR_PULL_ALLOC(ndr, r->usriX_logon_hours); + } else { + r->usriX_logon_hours = NULL; + } + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_bad_pw_count)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_num_logons)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_logon_server)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_country_code)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_code_page)); + } + if (ndr_flags & NDR_BUFFERS) { + if (r->usriX_logon_hours) { + _mem_save_usriX_logon_hours_0 = NDR_PULL_GET_MEM_CTX(ndr); + NDR_PULL_SET_MEM_CTX(ndr, r->usriX_logon_hours, 0); + NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, r->usriX_logon_hours)); + NDR_PULL_SET_MEM_CTX(ndr, _mem_save_usriX_logon_hours_0, 0); + } + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ void ndr_print_USER_INFO_X(struct ndr_print *ndr, const char *name, const struct USER_INFO_X *r) +{ + ndr_print_struct(ndr, name, "USER_INFO_X"); + ndr->depth++; + ndr_print_string(ndr, "usriX_name", r->usriX_name); + ndr_print_string(ndr, "usriX_password", r->usriX_password); + ndr_print_uint32(ndr, "usriX_password_age", r->usriX_password_age); + ndr_print_uint32(ndr, "usriX_priv", r->usriX_priv); + ndr_print_string(ndr, "usriX_home_dir", r->usriX_home_dir); + ndr_print_string(ndr, "usriX_comment", r->usriX_comment); + ndr_print_uint32(ndr, "usriX_flags", r->usriX_flags); + ndr_print_string(ndr, "usriX_script_path", r->usriX_script_path); + ndr_print_uint32(ndr, "usriX_auth_flags", r->usriX_auth_flags); + ndr_print_string(ndr, "usriX_full_name", r->usriX_full_name); + ndr_print_string(ndr, "usriX_usr_comment", r->usriX_usr_comment); + ndr_print_string(ndr, "usriX_parms", r->usriX_parms); + ndr_print_string(ndr, "usriX_workstations", r->usriX_workstations); + ndr_print_uint32(ndr, "usriX_last_logon", r->usriX_last_logon); + ndr_print_uint32(ndr, "usriX_last_logoff", r->usriX_last_logoff); + ndr_print_uint32(ndr, "usriX_acct_expires", r->usriX_acct_expires); + ndr_print_uint32(ndr, "usriX_max_storage", r->usriX_max_storage); + ndr_print_uint32(ndr, "usriX_units_per_week", r->usriX_units_per_week); + ndr_print_ptr(ndr, "usriX_logon_hours", r->usriX_logon_hours); + ndr->depth++; + if (r->usriX_logon_hours) { + ndr_print_uint8(ndr, "usriX_logon_hours", *r->usriX_logon_hours); + } + ndr->depth--; + ndr_print_uint32(ndr, "usriX_bad_pw_count", r->usriX_bad_pw_count); + ndr_print_uint32(ndr, "usriX_num_logons", r->usriX_num_logons); + ndr_print_string(ndr, "usriX_logon_server", r->usriX_logon_server); + ndr_print_uint32(ndr, "usriX_country_code", r->usriX_country_code); + ndr_print_uint32(ndr, "usriX_code_page", r->usriX_code_page); + ndr->depth--; +} + _PUBLIC_ enum ndr_err_code ndr_push_NET_DISPLAY_USER(struct ndr_push *ndr, int ndr_flags, const struct NET_DISPLAY_USER *r) { if (ndr_flags & NDR_SCALARS) { -- cgit From 8c5c924f6fe540deec1fb8ce7338e3f96220a189 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 18 Jul 2008 23:31:17 +0200 Subject: re-run make idl. Guenther (This used to be commit c4131c995d8b36c01b68160e0277b7c3610e9619) --- source3/librpc/gen_ndr/ndr_libnetapi.c | 40 +++++++++++++++++----------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'source3/librpc/gen_ndr/ndr_libnetapi.c') diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.c b/source3/librpc/gen_ndr/ndr_libnetapi.c index 2fe5b2e5d7..eadae1aff7 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.c +++ b/source3/librpc/gen_ndr/ndr_libnetapi.c @@ -1851,9 +1851,9 @@ _PUBLIC_ void ndr_print_NetGroupAdd(struct ndr_print *ndr, const char *name, int ndr->depth++; ndr_print_string(ndr, "server_name", r->in.server_name); ndr_print_uint32(ndr, "level", r->in.level); - ndr_print_ptr(ndr, "buf", r->in.buf); + ndr_print_ptr(ndr, "buffer", r->in.buffer); ndr->depth++; - ndr_print_uint8(ndr, "buf", *r->in.buf); + ndr_print_uint8(ndr, "buffer", *r->in.buffer); ndr->depth--; ndr->depth--; } @@ -1955,9 +1955,9 @@ _PUBLIC_ void ndr_print_NetGroupSetInfo(struct ndr_print *ndr, const char *name, ndr_print_string(ndr, "server_name", r->in.server_name); ndr_print_string(ndr, "group_name", r->in.group_name); ndr_print_uint32(ndr, "level", r->in.level); - ndr_print_ptr(ndr, "buf", r->in.buf); + ndr_print_ptr(ndr, "buffer", r->in.buffer); ndr->depth++; - ndr_print_uint8(ndr, "buf", *r->in.buf); + ndr_print_uint8(ndr, "buffer", *r->in.buffer); ndr->depth--; ndr->depth--; } @@ -1992,12 +1992,12 @@ _PUBLIC_ void ndr_print_NetGroupGetInfo(struct ndr_print *ndr, const char *name, if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "NetGroupGetInfo"); ndr->depth++; - ndr_print_ptr(ndr, "buf", r->out.buf); + ndr_print_ptr(ndr, "buffer", r->out.buffer); ndr->depth++; - ndr_print_ptr(ndr, "buf", *r->out.buf); + ndr_print_ptr(ndr, "buffer", *r->out.buffer); ndr->depth++; - if (*r->out.buf) { - ndr_print_uint8(ndr, "buf", **r->out.buf); + if (*r->out.buffer) { + ndr_print_uint8(ndr, "buffer", **r->out.buffer); } ndr->depth--; ndr->depth--; @@ -2067,9 +2067,9 @@ _PUBLIC_ void ndr_print_NetLocalGroupAdd(struct ndr_print *ndr, const char *name ndr->depth++; ndr_print_string(ndr, "server_name", r->in.server_name); ndr_print_uint32(ndr, "level", r->in.level); - ndr_print_ptr(ndr, "buf", r->in.buf); + ndr_print_ptr(ndr, "buffer", r->in.buffer); ndr->depth++; - ndr_print_uint8(ndr, "buf", *r->in.buf); + ndr_print_uint8(ndr, "buffer", *r->in.buffer); ndr->depth--; ndr->depth--; } @@ -2127,12 +2127,12 @@ _PUBLIC_ void ndr_print_NetLocalGroupGetInfo(struct ndr_print *ndr, const char * if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "NetLocalGroupGetInfo"); ndr->depth++; - ndr_print_ptr(ndr, "buf", r->out.buf); + ndr_print_ptr(ndr, "buffer", r->out.buffer); ndr->depth++; - ndr_print_ptr(ndr, "buf", *r->out.buf); + ndr_print_ptr(ndr, "buffer", *r->out.buffer); ndr->depth++; - if (*r->out.buf) { - ndr_print_uint8(ndr, "buf", **r->out.buf); + if (*r->out.buffer) { + ndr_print_uint8(ndr, "buffer", **r->out.buffer); } ndr->depth--; ndr->depth--; @@ -2155,9 +2155,9 @@ _PUBLIC_ void ndr_print_NetLocalGroupSetInfo(struct ndr_print *ndr, const char * ndr_print_string(ndr, "server_name", r->in.server_name); ndr_print_string(ndr, "group_name", r->in.group_name); ndr_print_uint32(ndr, "level", r->in.level); - ndr_print_ptr(ndr, "buf", r->in.buf); + ndr_print_ptr(ndr, "buffer", r->in.buffer); ndr->depth++; - ndr_print_uint8(ndr, "buf", *r->in.buf); + ndr_print_uint8(ndr, "buffer", *r->in.buffer); ndr->depth--; ndr->depth--; } @@ -2239,12 +2239,12 @@ _PUBLIC_ void ndr_print_NetRemoteTOD(struct ndr_print *ndr, const char *name, in if (flags & NDR_OUT) { ndr_print_struct(ndr, "out", "NetRemoteTOD"); ndr->depth++; - ndr_print_ptr(ndr, "buf", r->out.buf); + ndr_print_ptr(ndr, "buffer", r->out.buffer); ndr->depth++; - ndr_print_ptr(ndr, "buf", *r->out.buf); + ndr_print_ptr(ndr, "buffer", *r->out.buffer); ndr->depth++; - if (*r->out.buf) { - ndr_print_uint8(ndr, "buf", **r->out.buf); + if (*r->out.buffer) { + ndr_print_uint8(ndr, "buffer", **r->out.buffer); } ndr->depth--; ndr->depth--; -- cgit From d1da171600b46a17f5562ce3cc391498acaf0642 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 18 Jul 2008 23:36:50 +0200 Subject: re-run make idl. Guenther (This used to be commit ec2a56b5e726400f171d641587cbd0a4b99beec0) --- source3/librpc/gen_ndr/ndr_libnetapi.c | 746 +++++++++++++++++++++++++++++++++ 1 file changed, 746 insertions(+) (limited to 'source3/librpc/gen_ndr/ndr_libnetapi.c') diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.c b/source3/librpc/gen_ndr/ndr_libnetapi.c index eadae1aff7..6e5c54fd3b 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.c +++ b/source3/librpc/gen_ndr/ndr_libnetapi.c @@ -849,6 +849,158 @@ _PUBLIC_ void ndr_print_USER_INFO_20(struct ndr_print *ndr, const char *name, co ndr->depth--; } +_PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_21(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_21 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_push_align(ndr, 1)); + NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->usri21_password, ENCRYPTED_PWLEN)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_21(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_21 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_pull_align(ndr, 1)); + NDR_PULL_ALLOC_N(ndr, r->usri21_password, ENCRYPTED_PWLEN); + NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->usri21_password, ENCRYPTED_PWLEN)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ void ndr_print_USER_INFO_21(struct ndr_print *ndr, const char *name, const struct USER_INFO_21 *r) +{ + ndr_print_struct(ndr, name, "USER_INFO_21"); + ndr->depth++; + ndr_print_array_uint8(ndr, "usri21_password", r->usri21_password, ENCRYPTED_PWLEN); + ndr->depth--; +} + +_PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_22(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_22 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_push_align(ndr, 4)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri22_name)); + NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->usri22_password, ENCRYPTED_PWLEN)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_password_age)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_priv)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri22_home_dir)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri22_comment)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_flags)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_script_path)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_auth_flags)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri22_full_name)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri22_usr_comment)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri22_parms)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri22_workstations)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_last_logon)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_last_logoff)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_acct_expires)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_max_storage)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_units_per_week)); + NDR_CHECK(ndr_push_unique_ptr(ndr, r->usri22_logon_hours)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_bad_pw_count)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_num_logons)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri22_logon_server)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_country_code)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri22_code_page)); + } + if (ndr_flags & NDR_BUFFERS) { + if (r->usri22_logon_hours) { + NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, *r->usri22_logon_hours)); + } + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_22(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_22 *r) +{ + uint32_t _ptr_usri22_logon_hours; + TALLOC_CTX *_mem_save_usri22_logon_hours_0; + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_pull_align(ndr, 4)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri22_name)); + NDR_PULL_ALLOC_N(ndr, r->usri22_password, ENCRYPTED_PWLEN); + NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->usri22_password, ENCRYPTED_PWLEN)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_password_age)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_priv)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri22_home_dir)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri22_comment)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_flags)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_script_path)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_auth_flags)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri22_full_name)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri22_usr_comment)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri22_parms)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri22_workstations)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_last_logon)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_last_logoff)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_acct_expires)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_max_storage)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_units_per_week)); + NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_usri22_logon_hours)); + if (_ptr_usri22_logon_hours) { + NDR_PULL_ALLOC(ndr, r->usri22_logon_hours); + } else { + r->usri22_logon_hours = NULL; + } + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_bad_pw_count)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_num_logons)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri22_logon_server)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_country_code)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri22_code_page)); + } + if (ndr_flags & NDR_BUFFERS) { + if (r->usri22_logon_hours) { + _mem_save_usri22_logon_hours_0 = NDR_PULL_GET_MEM_CTX(ndr); + NDR_PULL_SET_MEM_CTX(ndr, r->usri22_logon_hours, 0); + NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, r->usri22_logon_hours)); + NDR_PULL_SET_MEM_CTX(ndr, _mem_save_usri22_logon_hours_0, 0); + } + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ void ndr_print_USER_INFO_22(struct ndr_print *ndr, const char *name, const struct USER_INFO_22 *r) +{ + ndr_print_struct(ndr, name, "USER_INFO_22"); + ndr->depth++; + ndr_print_string(ndr, "usri22_name", r->usri22_name); + ndr_print_array_uint8(ndr, "usri22_password", r->usri22_password, ENCRYPTED_PWLEN); + ndr_print_uint32(ndr, "usri22_password_age", r->usri22_password_age); + ndr_print_uint32(ndr, "usri22_priv", r->usri22_priv); + ndr_print_string(ndr, "usri22_home_dir", r->usri22_home_dir); + ndr_print_string(ndr, "usri22_comment", r->usri22_comment); + ndr_print_uint32(ndr, "usri22_flags", r->usri22_flags); + ndr_print_uint32(ndr, "usri22_script_path", r->usri22_script_path); + ndr_print_uint32(ndr, "usri22_auth_flags", r->usri22_auth_flags); + ndr_print_string(ndr, "usri22_full_name", r->usri22_full_name); + ndr_print_string(ndr, "usri22_usr_comment", r->usri22_usr_comment); + ndr_print_string(ndr, "usri22_parms", r->usri22_parms); + ndr_print_string(ndr, "usri22_workstations", r->usri22_workstations); + ndr_print_uint32(ndr, "usri22_last_logon", r->usri22_last_logon); + ndr_print_uint32(ndr, "usri22_last_logoff", r->usri22_last_logoff); + ndr_print_uint32(ndr, "usri22_acct_expires", r->usri22_acct_expires); + ndr_print_uint32(ndr, "usri22_max_storage", r->usri22_max_storage); + ndr_print_uint32(ndr, "usri22_units_per_week", r->usri22_units_per_week); + ndr_print_ptr(ndr, "usri22_logon_hours", r->usri22_logon_hours); + ndr->depth++; + if (r->usri22_logon_hours) { + ndr_print_uint8(ndr, "usri22_logon_hours", *r->usri22_logon_hours); + } + ndr->depth--; + ndr_print_uint32(ndr, "usri22_bad_pw_count", r->usri22_bad_pw_count); + ndr_print_uint32(ndr, "usri22_num_logons", r->usri22_num_logons); + ndr_print_string(ndr, "usri22_logon_server", r->usri22_logon_server); + ndr_print_uint32(ndr, "usri22_country_code", r->usri22_country_code); + ndr_print_uint32(ndr, "usri22_code_page", r->usri22_code_page); + ndr->depth--; +} + _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_23(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_23 *r) { if (ndr_flags & NDR_SCALARS) { @@ -912,6 +1064,96 @@ _PUBLIC_ void ndr_print_USER_INFO_23(struct ndr_print *ndr, const char *name, co ndr->depth--; } +_PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1003(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1003 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_push_align(ndr, 4)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1003_password)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1003(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1003 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_pull_align(ndr, 4)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1003_password)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ void ndr_print_USER_INFO_1003(struct ndr_print *ndr, const char *name, const struct USER_INFO_1003 *r) +{ + ndr_print_struct(ndr, name, "USER_INFO_1003"); + ndr->depth++; + ndr_print_string(ndr, "usri1003_password", r->usri1003_password); + ndr->depth--; +} + +_PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1005(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1005 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_push_align(ndr, 4)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1005_priv)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1005(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1005 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_pull_align(ndr, 4)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1005_priv)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ void ndr_print_USER_INFO_1005(struct ndr_print *ndr, const char *name, const struct USER_INFO_1005 *r) +{ + ndr_print_struct(ndr, name, "USER_INFO_1005"); + ndr->depth++; + ndr_print_uint32(ndr, "usri1005_priv", r->usri1005_priv); + ndr->depth--; +} + +_PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1006(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1006 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_push_align(ndr, 4)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1006_home_dir)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1006(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1006 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_pull_align(ndr, 4)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1006_home_dir)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ void ndr_print_USER_INFO_1006(struct ndr_print *ndr, const char *name, const struct USER_INFO_1006 *r) +{ + ndr_print_struct(ndr, name, "USER_INFO_1006"); + ndr->depth++; + ndr_print_string(ndr, "usri1006_home_dir", r->usri1006_home_dir); + ndr->depth--; +} + _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1007(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1007 *r) { if (ndr_flags & NDR_SCALARS) { @@ -942,6 +1184,510 @@ _PUBLIC_ void ndr_print_USER_INFO_1007(struct ndr_print *ndr, const char *name, ndr->depth--; } +_PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1008(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1008 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_push_align(ndr, 4)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1008_flags)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1008(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1008 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_pull_align(ndr, 4)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1008_flags)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ void ndr_print_USER_INFO_1008(struct ndr_print *ndr, const char *name, const struct USER_INFO_1008 *r) +{ + ndr_print_struct(ndr, name, "USER_INFO_1008"); + ndr->depth++; + ndr_print_uint32(ndr, "usri1008_flags", r->usri1008_flags); + ndr->depth--; +} + +_PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1009(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1009 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_push_align(ndr, 4)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1009_script_path)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1009(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1009 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_pull_align(ndr, 4)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1009_script_path)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ void ndr_print_USER_INFO_1009(struct ndr_print *ndr, const char *name, const struct USER_INFO_1009 *r) +{ + ndr_print_struct(ndr, name, "USER_INFO_1009"); + ndr->depth++; + ndr_print_string(ndr, "usri1009_script_path", r->usri1009_script_path); + ndr->depth--; +} + +_PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1010(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1010 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_push_align(ndr, 4)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1010_auth_flags)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1010(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1010 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_pull_align(ndr, 4)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1010_auth_flags)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ void ndr_print_USER_INFO_1010(struct ndr_print *ndr, const char *name, const struct USER_INFO_1010 *r) +{ + ndr_print_struct(ndr, name, "USER_INFO_1010"); + ndr->depth++; + ndr_print_uint32(ndr, "usri1010_auth_flags", r->usri1010_auth_flags); + ndr->depth--; +} + +_PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1011(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1011 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_push_align(ndr, 4)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1011_full_name)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1011(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1011 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_pull_align(ndr, 4)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1011_full_name)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ void ndr_print_USER_INFO_1011(struct ndr_print *ndr, const char *name, const struct USER_INFO_1011 *r) +{ + ndr_print_struct(ndr, name, "USER_INFO_1011"); + ndr->depth++; + ndr_print_string(ndr, "usri1011_full_name", r->usri1011_full_name); + ndr->depth--; +} + +_PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1012(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1012 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_push_align(ndr, 4)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1012_usr_comment)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1012(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1012 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_pull_align(ndr, 4)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1012_usr_comment)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ void ndr_print_USER_INFO_1012(struct ndr_print *ndr, const char *name, const struct USER_INFO_1012 *r) +{ + ndr_print_struct(ndr, name, "USER_INFO_1012"); + ndr->depth++; + ndr_print_string(ndr, "usri1012_usr_comment", r->usri1012_usr_comment); + ndr->depth--; +} + +_PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1013(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1013 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_push_align(ndr, 4)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1013_parms)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1013(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1013 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_pull_align(ndr, 4)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1013_parms)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ void ndr_print_USER_INFO_1013(struct ndr_print *ndr, const char *name, const struct USER_INFO_1013 *r) +{ + ndr_print_struct(ndr, name, "USER_INFO_1013"); + ndr->depth++; + ndr_print_string(ndr, "usri1013_parms", r->usri1013_parms); + ndr->depth--; +} + +_PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1014(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1014 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_push_align(ndr, 4)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1014_workstations)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1014(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1014 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_pull_align(ndr, 4)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1014_workstations)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ void ndr_print_USER_INFO_1014(struct ndr_print *ndr, const char *name, const struct USER_INFO_1014 *r) +{ + ndr_print_struct(ndr, name, "USER_INFO_1014"); + ndr->depth++; + ndr_print_string(ndr, "usri1014_workstations", r->usri1014_workstations); + ndr->depth--; +} + +_PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1017(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1017 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_push_align(ndr, 4)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1017_acct_expires)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1017(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1017 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_pull_align(ndr, 4)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1017_acct_expires)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ void ndr_print_USER_INFO_1017(struct ndr_print *ndr, const char *name, const struct USER_INFO_1017 *r) +{ + ndr_print_struct(ndr, name, "USER_INFO_1017"); + ndr->depth++; + ndr_print_uint32(ndr, "usri1017_acct_expires", r->usri1017_acct_expires); + ndr->depth--; +} + +_PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1018(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1018 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_push_align(ndr, 4)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1018_max_storage)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1018(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1018 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_pull_align(ndr, 4)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1018_max_storage)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ void ndr_print_USER_INFO_1018(struct ndr_print *ndr, const char *name, const struct USER_INFO_1018 *r) +{ + ndr_print_struct(ndr, name, "USER_INFO_1018"); + ndr->depth++; + ndr_print_uint32(ndr, "usri1018_max_storage", r->usri1018_max_storage); + ndr->depth--; +} + +_PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1020(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1020 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_push_align(ndr, 4)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1020_units_per_week)); + NDR_CHECK(ndr_push_unique_ptr(ndr, r->usri1020_logon_hours)); + } + if (ndr_flags & NDR_BUFFERS) { + if (r->usri1020_logon_hours) { + NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, *r->usri1020_logon_hours)); + } + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1020(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1020 *r) +{ + uint32_t _ptr_usri1020_logon_hours; + TALLOC_CTX *_mem_save_usri1020_logon_hours_0; + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_pull_align(ndr, 4)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1020_units_per_week)); + NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_usri1020_logon_hours)); + if (_ptr_usri1020_logon_hours) { + NDR_PULL_ALLOC(ndr, r->usri1020_logon_hours); + } else { + r->usri1020_logon_hours = NULL; + } + } + if (ndr_flags & NDR_BUFFERS) { + if (r->usri1020_logon_hours) { + _mem_save_usri1020_logon_hours_0 = NDR_PULL_GET_MEM_CTX(ndr); + NDR_PULL_SET_MEM_CTX(ndr, r->usri1020_logon_hours, 0); + NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, r->usri1020_logon_hours)); + NDR_PULL_SET_MEM_CTX(ndr, _mem_save_usri1020_logon_hours_0, 0); + } + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ void ndr_print_USER_INFO_1020(struct ndr_print *ndr, const char *name, const struct USER_INFO_1020 *r) +{ + ndr_print_struct(ndr, name, "USER_INFO_1020"); + ndr->depth++; + ndr_print_uint32(ndr, "usri1020_units_per_week", r->usri1020_units_per_week); + ndr_print_ptr(ndr, "usri1020_logon_hours", r->usri1020_logon_hours); + ndr->depth++; + if (r->usri1020_logon_hours) { + ndr_print_uint8(ndr, "usri1020_logon_hours", *r->usri1020_logon_hours); + } + ndr->depth--; + ndr->depth--; +} + +_PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1023(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1023 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_push_align(ndr, 4)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1023_logon_server)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1023(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1023 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_pull_align(ndr, 4)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1023_logon_server)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ void ndr_print_USER_INFO_1023(struct ndr_print *ndr, const char *name, const struct USER_INFO_1023 *r) +{ + ndr_print_struct(ndr, name, "USER_INFO_1023"); + ndr->depth++; + ndr_print_string(ndr, "usri1023_logon_server", r->usri1023_logon_server); + ndr->depth--; +} + +_PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1024(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1024 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_push_align(ndr, 4)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1024_country_code)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1024(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1024 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_pull_align(ndr, 4)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1024_country_code)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ void ndr_print_USER_INFO_1024(struct ndr_print *ndr, const char *name, const struct USER_INFO_1024 *r) +{ + ndr_print_struct(ndr, name, "USER_INFO_1024"); + ndr->depth++; + ndr_print_uint32(ndr, "usri1024_country_code", r->usri1024_country_code); + ndr->depth--; +} + +_PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1025(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1025 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_push_align(ndr, 4)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1025_code_page)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1025(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1025 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_pull_align(ndr, 4)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1025_code_page)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ void ndr_print_USER_INFO_1025(struct ndr_print *ndr, const char *name, const struct USER_INFO_1025 *r) +{ + ndr_print_struct(ndr, name, "USER_INFO_1025"); + ndr->depth++; + ndr_print_uint32(ndr, "usri1025_code_page", r->usri1025_code_page); + ndr->depth--; +} + +_PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1051(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1051 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_push_align(ndr, 4)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usri1051_primary_group_id)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1051(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1051 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_pull_align(ndr, 4)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usri1051_primary_group_id)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ void ndr_print_USER_INFO_1051(struct ndr_print *ndr, const char *name, const struct USER_INFO_1051 *r) +{ + ndr_print_struct(ndr, name, "USER_INFO_1051"); + ndr->depth++; + ndr_print_uint32(ndr, "usri1051_primary_group_id", r->usri1051_primary_group_id); + ndr->depth--; +} + +_PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1052(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1052 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_push_align(ndr, 4)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1052_profile)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1052(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1052 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_pull_align(ndr, 4)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1052_profile)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ void ndr_print_USER_INFO_1052(struct ndr_print *ndr, const char *name, const struct USER_INFO_1052 *r) +{ + ndr_print_struct(ndr, name, "USER_INFO_1052"); + ndr->depth++; + ndr_print_string(ndr, "usri1052_profile", r->usri1052_profile); + ndr->depth--; +} + +_PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_1053(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_1053 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_push_align(ndr, 4)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usri1053_home_dir_drive)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_1053(struct ndr_pull *ndr, int ndr_flags, struct USER_INFO_1053 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_pull_align(ndr, 4)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usri1053_home_dir_drive)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ void ndr_print_USER_INFO_1053(struct ndr_print *ndr, const char *name, const struct USER_INFO_1053 *r) +{ + ndr_print_struct(ndr, name, "USER_INFO_1053"); + ndr->depth++; + ndr_print_string(ndr, "usri1053_home_dir_drive", r->usri1053_home_dir_drive); + ndr->depth--; +} + _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_X(struct ndr_push *ndr, int ndr_flags, const struct USER_INFO_X *r) { if (ndr_flags & NDR_SCALARS) { -- cgit From c24ed2b65331a27b43783e7ca30cedfbc516a867 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 18 Jul 2008 23:38:17 +0200 Subject: re-run make idl. Guenther (This used to be commit 93ff6548977cb3e1c84fcb659475664de54e31b5) --- source3/librpc/gen_ndr/ndr_libnetapi.c | 113 +++++++++++++++++++++++++++++++++ 1 file changed, 113 insertions(+) (limited to 'source3/librpc/gen_ndr/ndr_libnetapi.c') diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.c b/source3/librpc/gen_ndr/ndr_libnetapi.c index 6e5c54fd3b..64f1c4fbd0 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.c +++ b/source3/librpc/gen_ndr/ndr_libnetapi.c @@ -1937,6 +1937,69 @@ _PUBLIC_ void ndr_print_NET_DISPLAY_GROUP(struct ndr_print *ndr, const char *nam ndr->depth--; } +_PUBLIC_ enum ndr_err_code ndr_push_GROUP_USERS_INFO_0(struct ndr_push *ndr, int ndr_flags, const struct GROUP_USERS_INFO_0 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_push_align(ndr, 4)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->grui0_name)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ enum ndr_err_code ndr_pull_GROUP_USERS_INFO_0(struct ndr_pull *ndr, int ndr_flags, struct GROUP_USERS_INFO_0 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_pull_align(ndr, 4)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->grui0_name)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ void ndr_print_GROUP_USERS_INFO_0(struct ndr_print *ndr, const char *name, const struct GROUP_USERS_INFO_0 *r) +{ + ndr_print_struct(ndr, name, "GROUP_USERS_INFO_0"); + ndr->depth++; + ndr_print_string(ndr, "grui0_name", r->grui0_name); + ndr->depth--; +} + +_PUBLIC_ enum ndr_err_code ndr_push_GROUP_USERS_INFO_1(struct ndr_push *ndr, int ndr_flags, const struct GROUP_USERS_INFO_1 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_push_align(ndr, 4)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->grui1_name)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->grui1_attributes)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ enum ndr_err_code ndr_pull_GROUP_USERS_INFO_1(struct ndr_pull *ndr, int ndr_flags, struct GROUP_USERS_INFO_1 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_pull_align(ndr, 4)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->grui1_name)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->grui1_attributes)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ void ndr_print_GROUP_USERS_INFO_1(struct ndr_print *ndr, const char *name, const struct GROUP_USERS_INFO_1 *r) +{ + ndr_print_struct(ndr, name, "GROUP_USERS_INFO_1"); + ndr->depth++; + ndr_print_string(ndr, "grui1_name", r->grui1_name); + ndr_print_uint32(ndr, "grui1_attributes", r->grui1_attributes); + ndr->depth--; +} + _PUBLIC_ void ndr_print_NetJoinDomain(struct ndr_print *ndr, const char *name, int flags, const struct NetJoinDomain *r) { ndr_print_struct(ndr, name, "NetJoinDomain"); @@ -2801,6 +2864,56 @@ _PUBLIC_ void ndr_print_NetGroupDelUser(struct ndr_print *ndr, const char *name, ndr->depth--; } +_PUBLIC_ void ndr_print_NetGroupGetUsers(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupGetUsers *r) +{ + ndr_print_struct(ndr, name, "NetGroupGetUsers"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "NetGroupGetUsers"); + ndr->depth++; + ndr_print_string(ndr, "server_name", r->in.server_name); + ndr_print_string(ndr, "group_name", r->in.group_name); + ndr_print_uint32(ndr, "level", r->in.level); + ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen); + ndr_print_ptr(ndr, "resume_handle", r->in.resume_handle); + ndr->depth++; + ndr_print_uint32(ndr, "resume_handle", *r->in.resume_handle); + ndr->depth--; + ndr->depth--; + } + if (flags & NDR_OUT) { + ndr_print_struct(ndr, "out", "NetGroupGetUsers"); + ndr->depth++; + ndr_print_ptr(ndr, "buffer", r->out.buffer); + ndr->depth++; + ndr_print_ptr(ndr, "buffer", *r->out.buffer); + ndr->depth++; + if (*r->out.buffer) { + ndr_print_uint8(ndr, "buffer", **r->out.buffer); + } + ndr->depth--; + ndr->depth--; + ndr_print_ptr(ndr, "entries_read", r->out.entries_read); + ndr->depth++; + ndr_print_uint32(ndr, "entries_read", *r->out.entries_read); + ndr->depth--; + ndr_print_ptr(ndr, "total_entries", r->out.total_entries); + ndr->depth++; + ndr_print_uint32(ndr, "total_entries", *r->out.total_entries); + ndr->depth--; + ndr_print_ptr(ndr, "resume_handle", r->out.resume_handle); + ndr->depth++; + ndr_print_uint32(ndr, "resume_handle", *r->out.resume_handle); + ndr->depth--; + ndr_print_NET_API_STATUS(ndr, "result", r->out.result); + ndr->depth--; + } + ndr->depth--; +} + _PUBLIC_ void ndr_print_NetLocalGroupAdd(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupAdd *r) { ndr_print_struct(ndr, name, "NetLocalGroupAdd"); -- cgit From 9f0de2107189f7aad3361e7939b7209e9ae5b473 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Mon, 11 Aug 2008 19:07:51 +0200 Subject: re-run make idl. Guenther (This used to be commit 36c5de4702c03bd71d689aaecea87168133021c2) --- source3/librpc/gen_ndr/ndr_libnetapi.c | 63 ++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) (limited to 'source3/librpc/gen_ndr/ndr_libnetapi.c') diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.c b/source3/librpc/gen_ndr/ndr_libnetapi.c index 64f1c4fbd0..393f0ad5e5 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.c +++ b/source3/librpc/gen_ndr/ndr_libnetapi.c @@ -2613,6 +2613,69 @@ _PUBLIC_ void ndr_print_NetUserSetInfo(struct ndr_print *ndr, const char *name, ndr->depth--; } +_PUBLIC_ void ndr_print_NetUserModalsGet(struct ndr_print *ndr, const char *name, int flags, const struct NetUserModalsGet *r) +{ + ndr_print_struct(ndr, name, "NetUserModalsGet"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "NetUserModalsGet"); + ndr->depth++; + ndr_print_string(ndr, "server_name", r->in.server_name); + ndr_print_uint32(ndr, "level", r->in.level); + ndr->depth--; + } + if (flags & NDR_OUT) { + ndr_print_struct(ndr, "out", "NetUserModalsGet"); + ndr->depth++; + ndr_print_ptr(ndr, "buffer", r->out.buffer); + ndr->depth++; + ndr_print_ptr(ndr, "buffer", *r->out.buffer); + ndr->depth++; + if (*r->out.buffer) { + ndr_print_uint8(ndr, "buffer", **r->out.buffer); + } + ndr->depth--; + ndr->depth--; + ndr_print_NET_API_STATUS(ndr, "result", r->out.result); + ndr->depth--; + } + ndr->depth--; +} + +_PUBLIC_ void ndr_print_NetUserModalsSet(struct ndr_print *ndr, const char *name, int flags, const struct NetUserModalsSet *r) +{ + ndr_print_struct(ndr, name, "NetUserModalsSet"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "NetUserModalsSet"); + ndr->depth++; + ndr_print_string(ndr, "server_name", r->in.server_name); + ndr_print_uint32(ndr, "level", r->in.level); + ndr_print_ptr(ndr, "buffer", r->in.buffer); + ndr->depth++; + ndr_print_uint8(ndr, "buffer", *r->in.buffer); + ndr->depth--; + ndr->depth--; + } + if (flags & NDR_OUT) { + ndr_print_struct(ndr, "out", "NetUserModalsSet"); + ndr->depth++; + ndr_print_ptr(ndr, "parm_err", r->out.parm_err); + ndr->depth++; + ndr_print_uint32(ndr, "parm_err", *r->out.parm_err); + ndr->depth--; + ndr_print_NET_API_STATUS(ndr, "result", r->out.result); + ndr->depth--; + } + ndr->depth--; +} + _PUBLIC_ void ndr_print_NetQueryDisplayInformation(struct ndr_print *ndr, const char *name, int flags, const struct NetQueryDisplayInformation *r) { ndr_print_struct(ndr, name, "NetQueryDisplayInformation"); -- cgit From a296063e35ae596d0c6fe3ba95bfbc1c6fc9ae06 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Mon, 11 Aug 2008 19:08:46 +0200 Subject: re-run make idl. Guenther (This used to be commit b6b24094daf170f457bc414d8e17e43effab6e1b) --- source3/librpc/gen_ndr/ndr_libnetapi.c | 137 +++++++++++++++++++++++++++++++++ 1 file changed, 137 insertions(+) (limited to 'source3/librpc/gen_ndr/ndr_libnetapi.c') diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.c b/source3/librpc/gen_ndr/ndr_libnetapi.c index 393f0ad5e5..4d4a291a28 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.c +++ b/source3/librpc/gen_ndr/ndr_libnetapi.c @@ -3145,6 +3145,143 @@ _PUBLIC_ void ndr_print_NetLocalGroupEnum(struct ndr_print *ndr, const char *nam ndr->depth--; } +_PUBLIC_ void ndr_print_NetLocalGroupAddMembers(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupAddMembers *r) +{ + ndr_print_struct(ndr, name, "NetLocalGroupAddMembers"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "NetLocalGroupAddMembers"); + ndr->depth++; + ndr_print_string(ndr, "server_name", r->in.server_name); + ndr_print_string(ndr, "group_name", r->in.group_name); + ndr_print_uint32(ndr, "level", r->in.level); + ndr_print_ptr(ndr, "buffer", r->in.buffer); + ndr->depth++; + ndr_print_uint8(ndr, "buffer", *r->in.buffer); + ndr->depth--; + ndr_print_uint32(ndr, "total_entries", r->in.total_entries); + ndr->depth--; + } + if (flags & NDR_OUT) { + ndr_print_struct(ndr, "out", "NetLocalGroupAddMembers"); + ndr->depth++; + ndr_print_NET_API_STATUS(ndr, "result", r->out.result); + ndr->depth--; + } + ndr->depth--; +} + +_PUBLIC_ void ndr_print_NetLocalGroupDelMembers(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupDelMembers *r) +{ + ndr_print_struct(ndr, name, "NetLocalGroupDelMembers"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "NetLocalGroupDelMembers"); + ndr->depth++; + ndr_print_string(ndr, "server_name", r->in.server_name); + ndr_print_string(ndr, "group_name", r->in.group_name); + ndr_print_uint32(ndr, "level", r->in.level); + ndr_print_ptr(ndr, "buffer", r->in.buffer); + ndr->depth++; + ndr_print_uint8(ndr, "buffer", *r->in.buffer); + ndr->depth--; + ndr_print_uint32(ndr, "total_entries", r->in.total_entries); + ndr->depth--; + } + if (flags & NDR_OUT) { + ndr_print_struct(ndr, "out", "NetLocalGroupDelMembers"); + ndr->depth++; + ndr_print_NET_API_STATUS(ndr, "result", r->out.result); + ndr->depth--; + } + ndr->depth--; +} + +_PUBLIC_ void ndr_print_NetLocalGroupGetMembers(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupGetMembers *r) +{ + ndr_print_struct(ndr, name, "NetLocalGroupGetMembers"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "NetLocalGroupGetMembers"); + ndr->depth++; + ndr_print_string(ndr, "server_name", r->in.server_name); + ndr_print_string(ndr, "local_group_name", r->in.local_group_name); + ndr_print_uint32(ndr, "level", r->in.level); + ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen); + ndr_print_ptr(ndr, "resume_handle", r->in.resume_handle); + ndr->depth++; + ndr_print_uint32(ndr, "resume_handle", *r->in.resume_handle); + ndr->depth--; + ndr->depth--; + } + if (flags & NDR_OUT) { + ndr_print_struct(ndr, "out", "NetLocalGroupGetMembers"); + ndr->depth++; + ndr_print_ptr(ndr, "buffer", r->out.buffer); + ndr->depth++; + ndr_print_ptr(ndr, "buffer", *r->out.buffer); + ndr->depth++; + if (*r->out.buffer) { + ndr_print_uint8(ndr, "buffer", **r->out.buffer); + } + ndr->depth--; + ndr->depth--; + ndr_print_ptr(ndr, "entries_read", r->out.entries_read); + ndr->depth++; + ndr_print_uint32(ndr, "entries_read", *r->out.entries_read); + ndr->depth--; + ndr_print_ptr(ndr, "total_entries", r->out.total_entries); + ndr->depth++; + ndr_print_uint32(ndr, "total_entries", *r->out.total_entries); + ndr->depth--; + ndr_print_ptr(ndr, "resume_handle", r->out.resume_handle); + ndr->depth++; + ndr_print_uint32(ndr, "resume_handle", *r->out.resume_handle); + ndr->depth--; + ndr_print_NET_API_STATUS(ndr, "result", r->out.result); + ndr->depth--; + } + ndr->depth--; +} + +_PUBLIC_ void ndr_print_NetLocalGroupSetMembers(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupSetMembers *r) +{ + ndr_print_struct(ndr, name, "NetLocalGroupSetMembers"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "NetLocalGroupSetMembers"); + ndr->depth++; + ndr_print_string(ndr, "server_name", r->in.server_name); + ndr_print_string(ndr, "group_name", r->in.group_name); + ndr_print_uint32(ndr, "level", r->in.level); + ndr_print_ptr(ndr, "buffer", r->in.buffer); + ndr->depth++; + ndr_print_uint8(ndr, "buffer", *r->in.buffer); + ndr->depth--; + ndr_print_uint32(ndr, "total_entries", r->in.total_entries); + ndr->depth--; + } + if (flags & NDR_OUT) { + ndr_print_struct(ndr, "out", "NetLocalGroupSetMembers"); + ndr->depth++; + ndr_print_NET_API_STATUS(ndr, "result", r->out.result); + ndr->depth--; + } + ndr->depth--; +} + _PUBLIC_ void ndr_print_NetRemoteTOD(struct ndr_print *ndr, const char *name, int flags, const struct NetRemoteTOD *r) { ndr_print_struct(ndr, name, "NetRemoteTOD"); -- cgit From 58d56de1b10464778649d16b33e765878c88bb79 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 27 Aug 2008 01:44:40 +0200 Subject: re-run make idl. Guenther (This used to be commit 3235ac063bca3805b749ee7ce27028a6828af3e9) --- source3/librpc/gen_ndr/ndr_libnetapi.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'source3/librpc/gen_ndr/ndr_libnetapi.c') diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.c b/source3/librpc/gen_ndr/ndr_libnetapi.c index 4d4a291a28..a4520b2dd4 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.c +++ b/source3/librpc/gen_ndr/ndr_libnetapi.c @@ -1716,6 +1716,9 @@ _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_X(struct ndr_push *ndr, int ndr_fl NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_logon_server)); NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_country_code)); NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_code_page)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_profile)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->usriX_home_dir_drive)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->usriX_primary_group_id)); } if (ndr_flags & NDR_BUFFERS) { if (r->usriX_logon_hours) { @@ -1760,6 +1763,9 @@ _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_X(struct ndr_pull *ndr, int ndr_fl NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_logon_server)); NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_country_code)); NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_code_page)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_profile)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->usriX_home_dir_drive)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->usriX_primary_group_id)); } if (ndr_flags & NDR_BUFFERS) { if (r->usriX_logon_hours) { @@ -1805,6 +1811,9 @@ _PUBLIC_ void ndr_print_USER_INFO_X(struct ndr_print *ndr, const char *name, con ndr_print_string(ndr, "usriX_logon_server", r->usriX_logon_server); ndr_print_uint32(ndr, "usriX_country_code", r->usriX_country_code); ndr_print_uint32(ndr, "usriX_code_page", r->usriX_code_page); + ndr_print_string(ndr, "usriX_profile", r->usriX_profile); + ndr_print_string(ndr, "usriX_home_dir_drive", r->usriX_home_dir_drive); + ndr_print_uint32(ndr, "usriX_primary_group_id", r->usriX_primary_group_id); ndr->depth--; } -- cgit From f7f6c2529b0f37edf64fe33290b9f71ebec399ff Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 27 Aug 2008 11:48:06 +0200 Subject: re-run make idl. Guenther (This used to be commit 334a90072318407313057b1c2df5e367e957309b) --- source3/librpc/gen_ndr/ndr_libnetapi.c | 168 ++++++++++++++++++++------------- 1 file changed, 105 insertions(+), 63 deletions(-) (limited to 'source3/librpc/gen_ndr/ndr_libnetapi.c') diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.c b/source3/librpc/gen_ndr/ndr_libnetapi.c index a4520b2dd4..941d4aa9ed 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.c +++ b/source3/librpc/gen_ndr/ndr_libnetapi.c @@ -1817,6 +1817,69 @@ _PUBLIC_ void ndr_print_USER_INFO_X(struct ndr_print *ndr, const char *name, con ndr->depth--; } +_PUBLIC_ enum ndr_err_code ndr_push_GROUP_USERS_INFO_0(struct ndr_push *ndr, int ndr_flags, const struct GROUP_USERS_INFO_0 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_push_align(ndr, 4)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->grui0_name)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ enum ndr_err_code ndr_pull_GROUP_USERS_INFO_0(struct ndr_pull *ndr, int ndr_flags, struct GROUP_USERS_INFO_0 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_pull_align(ndr, 4)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->grui0_name)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ void ndr_print_GROUP_USERS_INFO_0(struct ndr_print *ndr, const char *name, const struct GROUP_USERS_INFO_0 *r) +{ + ndr_print_struct(ndr, name, "GROUP_USERS_INFO_0"); + ndr->depth++; + ndr_print_string(ndr, "grui0_name", r->grui0_name); + ndr->depth--; +} + +_PUBLIC_ enum ndr_err_code ndr_push_GROUP_USERS_INFO_1(struct ndr_push *ndr, int ndr_flags, const struct GROUP_USERS_INFO_1 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_push_align(ndr, 4)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->grui1_name)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->grui1_attributes)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ enum ndr_err_code ndr_pull_GROUP_USERS_INFO_1(struct ndr_pull *ndr, int ndr_flags, struct GROUP_USERS_INFO_1 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_pull_align(ndr, 4)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->grui1_name)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->grui1_attributes)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ void ndr_print_GROUP_USERS_INFO_1(struct ndr_print *ndr, const char *name, const struct GROUP_USERS_INFO_1 *r) +{ + ndr_print_struct(ndr, name, "GROUP_USERS_INFO_1"); + ndr->depth++; + ndr_print_string(ndr, "grui1_name", r->grui1_name); + ndr_print_uint32(ndr, "grui1_attributes", r->grui1_attributes); + ndr->depth--; +} + _PUBLIC_ enum ndr_err_code ndr_push_NET_DISPLAY_USER(struct ndr_push *ndr, int ndr_flags, const struct NET_DISPLAY_USER *r) { if (ndr_flags & NDR_SCALARS) { @@ -1946,69 +2009,6 @@ _PUBLIC_ void ndr_print_NET_DISPLAY_GROUP(struct ndr_print *ndr, const char *nam ndr->depth--; } -_PUBLIC_ enum ndr_err_code ndr_push_GROUP_USERS_INFO_0(struct ndr_push *ndr, int ndr_flags, const struct GROUP_USERS_INFO_0 *r) -{ - if (ndr_flags & NDR_SCALARS) { - NDR_CHECK(ndr_push_align(ndr, 4)); - NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->grui0_name)); - } - if (ndr_flags & NDR_BUFFERS) { - } - return NDR_ERR_SUCCESS; -} - -_PUBLIC_ enum ndr_err_code ndr_pull_GROUP_USERS_INFO_0(struct ndr_pull *ndr, int ndr_flags, struct GROUP_USERS_INFO_0 *r) -{ - if (ndr_flags & NDR_SCALARS) { - NDR_CHECK(ndr_pull_align(ndr, 4)); - NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->grui0_name)); - } - if (ndr_flags & NDR_BUFFERS) { - } - return NDR_ERR_SUCCESS; -} - -_PUBLIC_ void ndr_print_GROUP_USERS_INFO_0(struct ndr_print *ndr, const char *name, const struct GROUP_USERS_INFO_0 *r) -{ - ndr_print_struct(ndr, name, "GROUP_USERS_INFO_0"); - ndr->depth++; - ndr_print_string(ndr, "grui0_name", r->grui0_name); - ndr->depth--; -} - -_PUBLIC_ enum ndr_err_code ndr_push_GROUP_USERS_INFO_1(struct ndr_push *ndr, int ndr_flags, const struct GROUP_USERS_INFO_1 *r) -{ - if (ndr_flags & NDR_SCALARS) { - NDR_CHECK(ndr_push_align(ndr, 4)); - NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->grui1_name)); - NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->grui1_attributes)); - } - if (ndr_flags & NDR_BUFFERS) { - } - return NDR_ERR_SUCCESS; -} - -_PUBLIC_ enum ndr_err_code ndr_pull_GROUP_USERS_INFO_1(struct ndr_pull *ndr, int ndr_flags, struct GROUP_USERS_INFO_1 *r) -{ - if (ndr_flags & NDR_SCALARS) { - NDR_CHECK(ndr_pull_align(ndr, 4)); - NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->grui1_name)); - NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->grui1_attributes)); - } - if (ndr_flags & NDR_BUFFERS) { - } - return NDR_ERR_SUCCESS; -} - -_PUBLIC_ void ndr_print_GROUP_USERS_INFO_1(struct ndr_print *ndr, const char *name, const struct GROUP_USERS_INFO_1 *r) -{ - ndr_print_struct(ndr, name, "GROUP_USERS_INFO_1"); - ndr->depth++; - ndr_print_string(ndr, "grui1_name", r->grui1_name); - ndr_print_uint32(ndr, "grui1_attributes", r->grui1_attributes); - ndr->depth--; -} - _PUBLIC_ void ndr_print_NetJoinDomain(struct ndr_print *ndr, const char *name, int flags, const struct NetJoinDomain *r) { ndr_print_struct(ndr, name, "NetJoinDomain"); @@ -2622,6 +2622,48 @@ _PUBLIC_ void ndr_print_NetUserSetInfo(struct ndr_print *ndr, const char *name, ndr->depth--; } +_PUBLIC_ void ndr_print_NetUserGetGroups(struct ndr_print *ndr, const char *name, int flags, const struct NetUserGetGroups *r) +{ + ndr_print_struct(ndr, name, "NetUserGetGroups"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "NetUserGetGroups"); + ndr->depth++; + ndr_print_string(ndr, "server_name", r->in.server_name); + ndr_print_string(ndr, "user_name", r->in.user_name); + ndr_print_uint32(ndr, "level", r->in.level); + ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen); + ndr->depth--; + } + if (flags & NDR_OUT) { + ndr_print_struct(ndr, "out", "NetUserGetGroups"); + ndr->depth++; + ndr_print_ptr(ndr, "buffer", r->out.buffer); + ndr->depth++; + ndr_print_ptr(ndr, "buffer", *r->out.buffer); + ndr->depth++; + if (*r->out.buffer) { + ndr_print_uint8(ndr, "buffer", **r->out.buffer); + } + ndr->depth--; + ndr->depth--; + ndr_print_ptr(ndr, "entries_read", r->out.entries_read); + ndr->depth++; + ndr_print_uint32(ndr, "entries_read", *r->out.entries_read); + ndr->depth--; + ndr_print_ptr(ndr, "total_entries", r->out.total_entries); + ndr->depth++; + ndr_print_uint32(ndr, "total_entries", *r->out.total_entries); + ndr->depth--; + ndr_print_NET_API_STATUS(ndr, "result", r->out.result); + ndr->depth--; + } + ndr->depth--; +} + _PUBLIC_ void ndr_print_NetUserModalsGet(struct ndr_print *ndr, const char *name, int flags, const struct NetUserModalsGet *r) { ndr_print_struct(ndr, name, "NetUserModalsGet"); -- cgit From 45e34d0b17835e5edd9dad793145f4c75014f504 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 27 Aug 2008 19:15:02 +0200 Subject: re-run make idl. Guenther (This used to be commit 9d33627d723c582f723982d090858e01bf5bd8c8) --- source3/librpc/gen_ndr/ndr_libnetapi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/librpc/gen_ndr/ndr_libnetapi.c') diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.c b/source3/librpc/gen_ndr/ndr_libnetapi.c index 941d4aa9ed..9bbcfc9a30 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.c +++ b/source3/librpc/gen_ndr/ndr_libnetapi.c @@ -543,7 +543,7 @@ _PUBLIC_ enum ndr_err_code ndr_push_USER_INFO_4(struct ndr_push *ndr, int ndr_fl NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, *r->usri4_logon_hours)); } if (r->usri4_user_sid) { - NDR_CHECK(ndr_push_dom_sid(ndr, NDR_SCALARS|NDR_BUFFERS, r->usri4_user_sid)); + NDR_CHECK(ndr_push_domsid(ndr, NDR_SCALARS, r->usri4_user_sid)); } } return NDR_ERR_SUCCESS; @@ -607,7 +607,7 @@ _PUBLIC_ enum ndr_err_code ndr_pull_USER_INFO_4(struct ndr_pull *ndr, int ndr_fl if (r->usri4_user_sid) { _mem_save_usri4_user_sid_0 = NDR_PULL_GET_MEM_CTX(ndr); NDR_PULL_SET_MEM_CTX(ndr, r->usri4_user_sid, 0); - NDR_CHECK(ndr_pull_dom_sid(ndr, NDR_SCALARS|NDR_BUFFERS, r->usri4_user_sid)); + NDR_CHECK(ndr_pull_domsid(ndr, NDR_SCALARS, r->usri4_user_sid)); NDR_PULL_SET_MEM_CTX(ndr, _mem_save_usri4_user_sid_0, 0); } } @@ -650,7 +650,7 @@ _PUBLIC_ void ndr_print_USER_INFO_4(struct ndr_print *ndr, const char *name, con ndr_print_ptr(ndr, "usri4_user_sid", r->usri4_user_sid); ndr->depth++; if (r->usri4_user_sid) { - ndr_print_dom_sid(ndr, "usri4_user_sid", r->usri4_user_sid); + ndr_print_domsid(ndr, "usri4_user_sid", r->usri4_user_sid); } ndr->depth--; ndr_print_uint32(ndr, "usri4_primary_group_id", r->usri4_primary_group_id); -- cgit From 0f1025a1bc9658c27220a94c39158ae357c4bf76 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 28 Aug 2008 00:58:50 +0200 Subject: re-run make idl. Guenther (This used to be commit 72c660757fd3a5b20ec6de0e4ada361e0aa9e2c4) --- source3/librpc/gen_ndr/ndr_libnetapi.c | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'source3/librpc/gen_ndr/ndr_libnetapi.c') diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.c b/source3/librpc/gen_ndr/ndr_libnetapi.c index 9bbcfc9a30..44b1c85c17 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.c +++ b/source3/librpc/gen_ndr/ndr_libnetapi.c @@ -3364,3 +3364,34 @@ _PUBLIC_ void ndr_print_NetRemoteTOD(struct ndr_print *ndr, const char *name, in ndr->depth--; } +_PUBLIC_ void ndr_print_NetShareAdd(struct ndr_print *ndr, const char *name, int flags, const struct NetShareAdd *r) +{ + ndr_print_struct(ndr, name, "NetShareAdd"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "NetShareAdd"); + ndr->depth++; + ndr_print_string(ndr, "server_name", r->in.server_name); + ndr_print_uint32(ndr, "level", r->in.level); + ndr_print_ptr(ndr, "buffer", r->in.buffer); + ndr->depth++; + ndr_print_uint8(ndr, "buffer", *r->in.buffer); + ndr->depth--; + ndr->depth--; + } + if (flags & NDR_OUT) { + ndr_print_struct(ndr, "out", "NetShareAdd"); + ndr->depth++; + ndr_print_ptr(ndr, "parm_err", r->out.parm_err); + ndr->depth++; + ndr_print_uint32(ndr, "parm_err", *r->out.parm_err); + ndr->depth--; + ndr_print_NET_API_STATUS(ndr, "result", r->out.result); + ndr->depth--; + } + ndr->depth--; +} + -- cgit From 93528fadc6b95aa6e86e232d0adc02832cdacaa5 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 29 Aug 2008 12:46:18 +0200 Subject: re-run make idl. Guenther (This used to be commit 11a2eecf2a92dceef2b89bbfa08abcfb71bcaf7a) --- source3/librpc/gen_ndr/ndr_libnetapi.c | 37 ++++++++++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) (limited to 'source3/librpc/gen_ndr/ndr_libnetapi.c') diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.c b/source3/librpc/gen_ndr/ndr_libnetapi.c index 44b1c85c17..4f2579f256 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.c +++ b/source3/librpc/gen_ndr/ndr_libnetapi.c @@ -87,6 +87,39 @@ _PUBLIC_ void ndr_print_domsid(struct ndr_print *ndr, const char *name, const st ndr->depth--; } +_PUBLIC_ enum ndr_err_code ndr_push_NetJoinFlags(struct ndr_push *ndr, int ndr_flags, uint32_t r) +{ + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r)); + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ enum ndr_err_code ndr_pull_NetJoinFlags(struct ndr_pull *ndr, int ndr_flags, uint32_t *r) +{ + uint32_t v; + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &v)); + *r = v; + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ void ndr_print_NetJoinFlags(struct ndr_print *ndr, const char *name, uint32_t r) +{ + ndr_print_uint32(ndr, name, r); + ndr->depth++; + ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "NETSETUP_JOIN_DOMAIN", NETSETUP_JOIN_DOMAIN, r); + ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "NETSETUP_ACCT_CREATE", NETSETUP_ACCT_CREATE, r); + ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "NETSETUP_ACCT_DELETE", NETSETUP_ACCT_DELETE, r); + ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "NETSETUP_WIN9X_UPGRADE", NETSETUP_WIN9X_UPGRADE, r); + ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "NETSETUP_DOMAIN_JOIN_IF_JOINED", NETSETUP_DOMAIN_JOIN_IF_JOINED, r); + ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "NETSETUP_JOIN_UNSECURE", NETSETUP_JOIN_UNSECURE, r); + ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "NETSETUP_MACHINE_PWD_PASSED", NETSETUP_MACHINE_PWD_PASSED, r); + ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "NETSETUP_DEFER_SPN_SET", NETSETUP_DEFER_SPN_SET, r); + ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "NETSETUP_JOIN_DC_ACCOUNT", NETSETUP_JOIN_DC_ACCOUNT, r); + ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "NETSETUP_JOIN_WITH_NEW_NAME", NETSETUP_JOIN_WITH_NEW_NAME, r); + ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "NETSETUP_INSTALL_INVOCATION", NETSETUP_INSTALL_INVOCATION, r); + ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "NETSETUP_IGNORE_UNSUPPORTED_FLAGS", NETSETUP_IGNORE_UNSUPPORTED_FLAGS, r); + ndr->depth--; +} + _PUBLIC_ enum ndr_err_code ndr_push_SERVER_INFO_1005(struct ndr_push *ndr, int ndr_flags, const struct SERVER_INFO_1005 *r) { if (ndr_flags & NDR_SCALARS) { @@ -2047,7 +2080,7 @@ _PUBLIC_ void ndr_print_NetJoinDomain(struct ndr_print *ndr, const char *name, i ndr_print_string(ndr, "password", r->in.password); } ndr->depth--; - ndr_print_uint32(ndr, "join_flags", r->in.join_flags); + ndr_print_NetJoinFlags(ndr, "join_flags", r->in.join_flags); ndr->depth--; } if (flags & NDR_OUT) { @@ -2087,7 +2120,7 @@ _PUBLIC_ void ndr_print_NetUnjoinDomain(struct ndr_print *ndr, const char *name, ndr_print_string(ndr, "password", r->in.password); } ndr->depth--; - ndr_print_uint32(ndr, "unjoin_flags", r->in.unjoin_flags); + ndr_print_NetJoinFlags(ndr, "unjoin_flags", r->in.unjoin_flags); ndr->depth--; } if (flags & NDR_OUT) { -- cgit From c8be1cd406c4efb9897725699777420f3be21a1d Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 29 Aug 2008 18:32:41 +0200 Subject: re-run make idl. Guenther (This used to be commit 3469b8c79782d2b6f55dff306e67b603ecdb790a) --- source3/librpc/gen_ndr/ndr_libnetapi.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'source3/librpc/gen_ndr/ndr_libnetapi.c') diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.c b/source3/librpc/gen_ndr/ndr_libnetapi.c index 4f2579f256..1d33a2eb89 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.c +++ b/source3/librpc/gen_ndr/ndr_libnetapi.c @@ -3428,3 +3428,27 @@ _PUBLIC_ void ndr_print_NetShareAdd(struct ndr_print *ndr, const char *name, int ndr->depth--; } +_PUBLIC_ void ndr_print_NetShareDel(struct ndr_print *ndr, const char *name, int flags, const struct NetShareDel *r) +{ + ndr_print_struct(ndr, name, "NetShareDel"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "NetShareDel"); + ndr->depth++; + ndr_print_string(ndr, "server_name", r->in.server_name); + ndr_print_string(ndr, "net_name", r->in.net_name); + ndr_print_uint32(ndr, "reserved", r->in.reserved); + ndr->depth--; + } + if (flags & NDR_OUT) { + ndr_print_struct(ndr, "out", "NetShareDel"); + ndr->depth++; + ndr_print_NET_API_STATUS(ndr, "result", r->out.result); + ndr->depth--; + } + ndr->depth--; +} + -- cgit From 155dc7415e431f1efb9a26c8f7b18ec0e457ab5e Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 29 Aug 2008 18:56:46 +0200 Subject: re-run make idl. Guenther (This used to be commit 3da9584a7ad2a1a985186951a060a1500059b913) --- source3/librpc/gen_ndr/ndr_libnetapi.c | 49 ++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) (limited to 'source3/librpc/gen_ndr/ndr_libnetapi.c') diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.c b/source3/librpc/gen_ndr/ndr_libnetapi.c index 1d33a2eb89..106b9a41c5 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.c +++ b/source3/librpc/gen_ndr/ndr_libnetapi.c @@ -3452,3 +3452,52 @@ _PUBLIC_ void ndr_print_NetShareDel(struct ndr_print *ndr, const char *name, int ndr->depth--; } +_PUBLIC_ void ndr_print_NetShareEnum(struct ndr_print *ndr, const char *name, int flags, const struct NetShareEnum *r) +{ + ndr_print_struct(ndr, name, "NetShareEnum"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "NetShareEnum"); + ndr->depth++; + ndr_print_string(ndr, "server_name", r->in.server_name); + ndr_print_uint32(ndr, "level", r->in.level); + ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen); + ndr_print_ptr(ndr, "resume_handle", r->in.resume_handle); + ndr->depth++; + ndr_print_uint32(ndr, "resume_handle", *r->in.resume_handle); + ndr->depth--; + ndr->depth--; + } + if (flags & NDR_OUT) { + ndr_print_struct(ndr, "out", "NetShareEnum"); + ndr->depth++; + ndr_print_ptr(ndr, "buffer", r->out.buffer); + ndr->depth++; + ndr_print_ptr(ndr, "buffer", *r->out.buffer); + ndr->depth++; + if (*r->out.buffer) { + ndr_print_uint8(ndr, "buffer", **r->out.buffer); + } + ndr->depth--; + ndr->depth--; + ndr_print_ptr(ndr, "entries_read", r->out.entries_read); + ndr->depth++; + ndr_print_uint32(ndr, "entries_read", *r->out.entries_read); + ndr->depth--; + ndr_print_ptr(ndr, "total_entries", r->out.total_entries); + ndr->depth++; + ndr_print_uint32(ndr, "total_entries", *r->out.total_entries); + ndr->depth--; + ndr_print_ptr(ndr, "resume_handle", r->out.resume_handle); + ndr->depth++; + ndr_print_uint32(ndr, "resume_handle", *r->out.resume_handle); + ndr->depth--; + ndr_print_NET_API_STATUS(ndr, "result", r->out.result); + ndr->depth--; + } + ndr->depth--; +} + -- cgit From 91359e7febaf0c538464d60461c862a0a317b6b3 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Mon, 1 Sep 2008 17:44:01 +0200 Subject: re-run make idl. Guenther (This used to be commit 2bb5bb9b964932f0be8eccf5739da5692a591245) --- source3/librpc/gen_ndr/ndr_libnetapi.c | 144 +++++++++++++++++++++++++++++++++ 1 file changed, 144 insertions(+) (limited to 'source3/librpc/gen_ndr/ndr_libnetapi.c') diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.c b/source3/librpc/gen_ndr/ndr_libnetapi.c index 106b9a41c5..90b5f9f796 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.c +++ b/source3/librpc/gen_ndr/ndr_libnetapi.c @@ -120,6 +120,150 @@ _PUBLIC_ void ndr_print_NetJoinFlags(struct ndr_print *ndr, const char *name, ui ndr->depth--; } +_PUBLIC_ enum ndr_err_code ndr_push_SERVER_INFO_100(struct ndr_push *ndr, int ndr_flags, const struct SERVER_INFO_100 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_push_align(ndr, 4)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sv100_platform_id)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->sv100_name)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ enum ndr_err_code ndr_pull_SERVER_INFO_100(struct ndr_pull *ndr, int ndr_flags, struct SERVER_INFO_100 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_pull_align(ndr, 4)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sv100_platform_id)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->sv100_name)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ void ndr_print_SERVER_INFO_100(struct ndr_print *ndr, const char *name, const struct SERVER_INFO_100 *r) +{ + ndr_print_struct(ndr, name, "SERVER_INFO_100"); + ndr->depth++; + ndr_print_uint32(ndr, "sv100_platform_id", r->sv100_platform_id); + ndr_print_string(ndr, "sv100_name", r->sv100_name); + ndr->depth--; +} + +_PUBLIC_ enum ndr_err_code ndr_push_SERVER_INFO_101(struct ndr_push *ndr, int ndr_flags, const struct SERVER_INFO_101 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_push_align(ndr, 4)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sv101_platform_id)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->sv101_name)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sv101_version_major)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sv101_version_minor)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sv101_type)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->sv101_comment)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ enum ndr_err_code ndr_pull_SERVER_INFO_101(struct ndr_pull *ndr, int ndr_flags, struct SERVER_INFO_101 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_pull_align(ndr, 4)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sv101_platform_id)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->sv101_name)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sv101_version_major)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sv101_version_minor)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sv101_type)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->sv101_comment)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ void ndr_print_SERVER_INFO_101(struct ndr_print *ndr, const char *name, const struct SERVER_INFO_101 *r) +{ + ndr_print_struct(ndr, name, "SERVER_INFO_101"); + ndr->depth++; + ndr_print_uint32(ndr, "sv101_platform_id", r->sv101_platform_id); + ndr_print_string(ndr, "sv101_name", r->sv101_name); + ndr_print_uint32(ndr, "sv101_version_major", r->sv101_version_major); + ndr_print_uint32(ndr, "sv101_version_minor", r->sv101_version_minor); + ndr_print_uint32(ndr, "sv101_type", r->sv101_type); + ndr_print_string(ndr, "sv101_comment", r->sv101_comment); + ndr->depth--; +} + +_PUBLIC_ enum ndr_err_code ndr_push_SERVER_INFO_102(struct ndr_push *ndr, int ndr_flags, const struct SERVER_INFO_102 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_push_align(ndr, 4)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sv102_platform_id)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->sv102_name)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sv102_version_major)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sv102_version_minor)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sv102_type)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->sv102_comment)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sv102_users)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sv102_disc)); + NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->sv102_hidden)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sv102_announce)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sv102_anndelta)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sv102_licenses)); + NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->sv102_userpath)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ enum ndr_err_code ndr_pull_SERVER_INFO_102(struct ndr_pull *ndr, int ndr_flags, struct SERVER_INFO_102 *r) +{ + if (ndr_flags & NDR_SCALARS) { + NDR_CHECK(ndr_pull_align(ndr, 4)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sv102_platform_id)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->sv102_name)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sv102_version_major)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sv102_version_minor)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sv102_type)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->sv102_comment)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sv102_users)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sv102_disc)); + NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->sv102_hidden)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sv102_announce)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sv102_anndelta)); + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sv102_licenses)); + NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->sv102_userpath)); + } + if (ndr_flags & NDR_BUFFERS) { + } + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ void ndr_print_SERVER_INFO_102(struct ndr_print *ndr, const char *name, const struct SERVER_INFO_102 *r) +{ + ndr_print_struct(ndr, name, "SERVER_INFO_102"); + ndr->depth++; + ndr_print_uint32(ndr, "sv102_platform_id", r->sv102_platform_id); + ndr_print_string(ndr, "sv102_name", r->sv102_name); + ndr_print_uint32(ndr, "sv102_version_major", r->sv102_version_major); + ndr_print_uint32(ndr, "sv102_version_minor", r->sv102_version_minor); + ndr_print_uint32(ndr, "sv102_type", r->sv102_type); + ndr_print_string(ndr, "sv102_comment", r->sv102_comment); + ndr_print_uint32(ndr, "sv102_users", r->sv102_users); + ndr_print_uint32(ndr, "sv102_disc", r->sv102_disc); + ndr_print_uint8(ndr, "sv102_hidden", r->sv102_hidden); + ndr_print_uint32(ndr, "sv102_announce", r->sv102_announce); + ndr_print_uint32(ndr, "sv102_anndelta", r->sv102_anndelta); + ndr_print_uint32(ndr, "sv102_licenses", r->sv102_licenses); + ndr_print_string(ndr, "sv102_userpath", r->sv102_userpath); + ndr->depth--; +} + _PUBLIC_ enum ndr_err_code ndr_push_SERVER_INFO_1005(struct ndr_push *ndr, int ndr_flags, const struct SERVER_INFO_1005 *r) { if (ndr_flags & NDR_SCALARS) { -- cgit From 17fa14d8ee68972b42b8a042909c1e4640f6138e Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Tue, 2 Sep 2008 10:59:44 +0200 Subject: re-run make idl. Guenther (This used to be commit 038ec4d73a04e53c1cc0a1fa6a830d1032dee489) --- source3/librpc/gen_ndr/ndr_libnetapi.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'source3/librpc/gen_ndr/ndr_libnetapi.c') diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.c b/source3/librpc/gen_ndr/ndr_libnetapi.c index 90b5f9f796..12a4a5ef73 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.c +++ b/source3/librpc/gen_ndr/ndr_libnetapi.c @@ -2377,6 +2377,32 @@ _PUBLIC_ void ndr_print_NetGetJoinableOUs(struct ndr_print *ndr, const char *nam ndr->depth--; } +_PUBLIC_ void ndr_print_NetRenameMachineInDomain(struct ndr_print *ndr, const char *name, int flags, const struct NetRenameMachineInDomain *r) +{ + ndr_print_struct(ndr, name, "NetRenameMachineInDomain"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "NetRenameMachineInDomain"); + ndr->depth++; + ndr_print_string(ndr, "server_name", r->in.server_name); + ndr_print_string(ndr, "new_machine_name", r->in.new_machine_name); + ndr_print_string(ndr, "account", r->in.account); + ndr_print_string(ndr, "password", r->in.password); + ndr_print_uint32(ndr, "rename_options", r->in.rename_options); + ndr->depth--; + } + if (flags & NDR_OUT) { + ndr_print_struct(ndr, "out", "NetRenameMachineInDomain"); + ndr->depth++; + ndr_print_NET_API_STATUS(ndr, "result", r->out.result); + ndr->depth--; + } + ndr->depth--; +} + _PUBLIC_ void ndr_print_NetServerGetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetServerGetInfo *r) { ndr_print_struct(ndr, name, "NetServerGetInfo"); -- cgit From 536788efda948ace21369df5316501363ae5d161 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 4 Sep 2008 15:52:19 +0200 Subject: re-run make idl. Guenther (This used to be commit dab613e930a9193153cc744e4ad4ea0fa6476b40) --- source3/librpc/gen_ndr/ndr_libnetapi.c | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'source3/librpc/gen_ndr/ndr_libnetapi.c') diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.c b/source3/librpc/gen_ndr/ndr_libnetapi.c index 12a4a5ef73..f2f7bd3300 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.c +++ b/source3/librpc/gen_ndr/ndr_libnetapi.c @@ -3671,3 +3671,36 @@ _PUBLIC_ void ndr_print_NetShareEnum(struct ndr_print *ndr, const char *name, in ndr->depth--; } +_PUBLIC_ void ndr_print_NetShareGetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetShareGetInfo *r) +{ + ndr_print_struct(ndr, name, "NetShareGetInfo"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "NetShareGetInfo"); + ndr->depth++; + ndr_print_string(ndr, "server_name", r->in.server_name); + ndr_print_string(ndr, "net_name", r->in.net_name); + ndr_print_uint32(ndr, "level", r->in.level); + ndr->depth--; + } + if (flags & NDR_OUT) { + ndr_print_struct(ndr, "out", "NetShareGetInfo"); + ndr->depth++; + ndr_print_ptr(ndr, "buffer", r->out.buffer); + ndr->depth++; + ndr_print_ptr(ndr, "buffer", *r->out.buffer); + ndr->depth++; + if (*r->out.buffer) { + ndr_print_uint8(ndr, "buffer", **r->out.buffer); + } + ndr->depth--; + ndr->depth--; + ndr_print_NET_API_STATUS(ndr, "result", r->out.result); + ndr->depth--; + } + ndr->depth--; +} + -- cgit From f97cb336fcc8a20e559b732d7fef0f0c40a165c1 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 4 Sep 2008 20:01:46 +0200 Subject: re-run make idl. Guenther (This used to be commit 7d863c4b00d70110819b847890ccb9b2a4aa71c9) --- source3/librpc/gen_ndr/ndr_libnetapi.c | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'source3/librpc/gen_ndr/ndr_libnetapi.c') diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.c b/source3/librpc/gen_ndr/ndr_libnetapi.c index f2f7bd3300..3530a0877e 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.c +++ b/source3/librpc/gen_ndr/ndr_libnetapi.c @@ -3704,3 +3704,35 @@ _PUBLIC_ void ndr_print_NetShareGetInfo(struct ndr_print *ndr, const char *name, ndr->depth--; } +_PUBLIC_ void ndr_print_NetShareSetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetShareSetInfo *r) +{ + ndr_print_struct(ndr, name, "NetShareSetInfo"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "NetShareSetInfo"); + ndr->depth++; + ndr_print_string(ndr, "server_name", r->in.server_name); + ndr_print_string(ndr, "net_name", r->in.net_name); + ndr_print_uint32(ndr, "level", r->in.level); + ndr_print_ptr(ndr, "buffer", r->in.buffer); + ndr->depth++; + ndr_print_uint8(ndr, "buffer", *r->in.buffer); + ndr->depth--; + ndr->depth--; + } + if (flags & NDR_OUT) { + ndr_print_struct(ndr, "out", "NetShareSetInfo"); + ndr->depth++; + ndr_print_ptr(ndr, "parm_err", r->out.parm_err); + ndr->depth++; + ndr_print_uint32(ndr, "parm_err", *r->out.parm_err); + ndr->depth--; + ndr_print_NET_API_STATUS(ndr, "result", r->out.result); + ndr->depth--; + } + ndr->depth--; +} + -- cgit From 7c74e379a5f7935203c1a79120824d5f747eef31 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 5 Sep 2008 12:15:05 +0200 Subject: re-run make idl. Guenther (This used to be commit 2e15036bacf717d27d1806bcbdba1e68f2f76aae) --- source3/librpc/gen_ndr/ndr_libnetapi.c | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'source3/librpc/gen_ndr/ndr_libnetapi.c') diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.c b/source3/librpc/gen_ndr/ndr_libnetapi.c index 3530a0877e..4520d210ba 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.c +++ b/source3/librpc/gen_ndr/ndr_libnetapi.c @@ -2186,6 +2186,37 @@ _PUBLIC_ void ndr_print_NET_DISPLAY_GROUP(struct ndr_print *ndr, const char *nam ndr->depth--; } +_PUBLIC_ enum ndr_err_code ndr_push_SHARE_INFO_1005_FLAGS(struct ndr_push *ndr, int ndr_flags, uint32_t r) +{ + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r)); + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ enum ndr_err_code ndr_pull_SHARE_INFO_1005_FLAGS(struct ndr_pull *ndr, int ndr_flags, uint32_t *r) +{ + uint32_t v; + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &v)); + *r = v; + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ void ndr_print_SHARE_INFO_1005_FLAGS(struct ndr_print *ndr, const char *name, uint32_t r) +{ + ndr_print_uint32(ndr, name, r); + ndr->depth++; + ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SHI1005_FLAGS_DFS", SHI1005_FLAGS_DFS, r); + ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SHI1005_FLAGS_DFS_ROOT", SHI1005_FLAGS_DFS_ROOT, r); + ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CSC_CACHE_MANUAL_REINT", CSC_CACHE_MANUAL_REINT, r); + ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CSC_CACHE_AUTO_REINT", CSC_CACHE_AUTO_REINT, r); + ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CSC_CACHE_VDO", CSC_CACHE_VDO, r); + ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CSC_CACHE_NONE", CSC_CACHE_NONE, r); + ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SHI1005_FLAGS_RESTRICT_EXCLUSIVE_OPENS", SHI1005_FLAGS_RESTRICT_EXCLUSIVE_OPENS, r); + ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SHI1005_FLAGS_FORCE_SHARED_DELETE", SHI1005_FLAGS_FORCE_SHARED_DELETE, r); + ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SHI1005_FLAGS_ALLOW_NAMESPACE_CACHING", SHI1005_FLAGS_ALLOW_NAMESPACE_CACHING, r); + ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SHI1005_FLAGS_ACCESS_BASED_DIRECTORY_ENUM", SHI1005_FLAGS_ACCESS_BASED_DIRECTORY_ENUM, r); + ndr->depth--; +} + _PUBLIC_ void ndr_print_NetJoinDomain(struct ndr_print *ndr, const char *name, int flags, const struct NetJoinDomain *r) { ndr_print_struct(ndr, name, "NetJoinDomain"); -- cgit From f2a987bced1c8e0d4ab2110d0918911c48d0708a Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 5 Sep 2008 16:50:04 +0200 Subject: re-run make idl. Guenther (This used to be commit 4efbd569478d6d98078833084aaae5a97cd5182b) --- source3/librpc/gen_ndr/ndr_libnetapi.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'source3/librpc/gen_ndr/ndr_libnetapi.c') diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.c b/source3/librpc/gen_ndr/ndr_libnetapi.c index 4520d210ba..8845cb9290 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.c +++ b/source3/librpc/gen_ndr/ndr_libnetapi.c @@ -2898,6 +2898,35 @@ _PUBLIC_ void ndr_print_NetUserGetGroups(struct ndr_print *ndr, const char *name ndr->depth--; } +_PUBLIC_ void ndr_print_NetUserSetGroups(struct ndr_print *ndr, const char *name, int flags, const struct NetUserSetGroups *r) +{ + ndr_print_struct(ndr, name, "NetUserSetGroups"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "NetUserSetGroups"); + ndr->depth++; + ndr_print_string(ndr, "server_name", r->in.server_name); + ndr_print_string(ndr, "user_name", r->in.user_name); + ndr_print_uint32(ndr, "level", r->in.level); + ndr_print_ptr(ndr, "buffer", r->in.buffer); + ndr->depth++; + ndr_print_uint8(ndr, "buffer", *r->in.buffer); + ndr->depth--; + ndr_print_uint32(ndr, "num_entries", r->in.num_entries); + ndr->depth--; + } + if (flags & NDR_OUT) { + ndr_print_struct(ndr, "out", "NetUserSetGroups"); + ndr->depth++; + ndr_print_NET_API_STATUS(ndr, "result", r->out.result); + ndr->depth--; + } + ndr->depth--; +} + _PUBLIC_ void ndr_print_NetUserModalsGet(struct ndr_print *ndr, const char *name, int flags, const struct NetUserModalsGet *r) { ndr_print_struct(ndr, name, "NetUserModalsGet"); -- cgit From 52e87e1fc1aec2670f511199e53e9a0f81409fae Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 5 Sep 2008 17:00:41 +0200 Subject: re-run make idl. Guenther (This used to be commit 00af97de407e2c0447714095340bd9494cc53b0f) --- source3/librpc/gen_ndr/ndr_libnetapi.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'source3/librpc/gen_ndr/ndr_libnetapi.c') diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.c b/source3/librpc/gen_ndr/ndr_libnetapi.c index 8845cb9290..3c11574c14 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.c +++ b/source3/librpc/gen_ndr/ndr_libnetapi.c @@ -3291,6 +3291,35 @@ _PUBLIC_ void ndr_print_NetGroupGetUsers(struct ndr_print *ndr, const char *name ndr->depth--; } +_PUBLIC_ void ndr_print_NetGroupSetUsers(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupSetUsers *r) +{ + ndr_print_struct(ndr, name, "NetGroupSetUsers"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "NetGroupSetUsers"); + ndr->depth++; + ndr_print_string(ndr, "server_name", r->in.server_name); + ndr_print_string(ndr, "group_name", r->in.group_name); + ndr_print_uint32(ndr, "level", r->in.level); + ndr_print_ptr(ndr, "buffer", r->in.buffer); + ndr->depth++; + ndr_print_uint8(ndr, "buffer", *r->in.buffer); + ndr->depth--; + ndr_print_uint32(ndr, "num_entries", r->in.num_entries); + ndr->depth--; + } + if (flags & NDR_OUT) { + ndr_print_struct(ndr, "out", "NetGroupSetUsers"); + ndr->depth++; + ndr_print_NET_API_STATUS(ndr, "result", r->out.result); + ndr->depth--; + } + ndr->depth--; +} + _PUBLIC_ void ndr_print_NetLocalGroupAdd(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupAdd *r) { ndr_print_struct(ndr, name, "NetLocalGroupAdd"); -- cgit From f5c2e5890ec704af546bf84404bbd4cad2d7a266 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Tue, 9 Sep 2008 13:40:39 +0200 Subject: re-run make idl. Guenther (This used to be commit 3c07bcfb30ae5bb849291a5ca61b54798f14ee0a) --- source3/librpc/gen_ndr/ndr_libnetapi.c | 43 ++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) (limited to 'source3/librpc/gen_ndr/ndr_libnetapi.c') diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.c b/source3/librpc/gen_ndr/ndr_libnetapi.c index 3c11574c14..48078a93f1 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.c +++ b/source3/librpc/gen_ndr/ndr_libnetapi.c @@ -2927,6 +2927,49 @@ _PUBLIC_ void ndr_print_NetUserSetGroups(struct ndr_print *ndr, const char *name ndr->depth--; } +_PUBLIC_ void ndr_print_NetUserGetLocalGroups(struct ndr_print *ndr, const char *name, int flags, const struct NetUserGetLocalGroups *r) +{ + ndr_print_struct(ndr, name, "NetUserGetLocalGroups"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "NetUserGetLocalGroups"); + ndr->depth++; + ndr_print_string(ndr, "server_name", r->in.server_name); + ndr_print_string(ndr, "user_name", r->in.user_name); + ndr_print_uint32(ndr, "level", r->in.level); + ndr_print_uint32(ndr, "flags", r->in.flags); + ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen); + ndr->depth--; + } + if (flags & NDR_OUT) { + ndr_print_struct(ndr, "out", "NetUserGetLocalGroups"); + ndr->depth++; + ndr_print_ptr(ndr, "buffer", r->out.buffer); + ndr->depth++; + ndr_print_ptr(ndr, "buffer", *r->out.buffer); + ndr->depth++; + if (*r->out.buffer) { + ndr_print_uint8(ndr, "buffer", **r->out.buffer); + } + ndr->depth--; + ndr->depth--; + ndr_print_ptr(ndr, "entries_read", r->out.entries_read); + ndr->depth++; + ndr_print_uint32(ndr, "entries_read", *r->out.entries_read); + ndr->depth--; + ndr_print_ptr(ndr, "total_entries", r->out.total_entries); + ndr->depth++; + ndr_print_uint32(ndr, "total_entries", *r->out.total_entries); + ndr->depth--; + ndr_print_NET_API_STATUS(ndr, "result", r->out.result); + ndr->depth--; + } + ndr->depth--; +} + _PUBLIC_ void ndr_print_NetUserModalsGet(struct ndr_print *ndr, const char *name, int flags, const struct NetUserModalsGet *r) { ndr_print_struct(ndr, name, "NetUserModalsGet"); -- cgit From e6467a3e907b3bd1e3ea67a94b9c753c392f8a20 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Tue, 9 Sep 2008 19:20:05 +0200 Subject: re-run make idl. Guenther (This used to be commit 74edd3e8535620cad69f8659ff52a3142217c310) --- source3/librpc/gen_ndr/ndr_libnetapi.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'source3/librpc/gen_ndr/ndr_libnetapi.c') diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.c b/source3/librpc/gen_ndr/ndr_libnetapi.c index 48078a93f1..de5dcaeaa1 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.c +++ b/source3/librpc/gen_ndr/ndr_libnetapi.c @@ -3868,3 +3868,26 @@ _PUBLIC_ void ndr_print_NetShareSetInfo(struct ndr_print *ndr, const char *name, ndr->depth--; } +_PUBLIC_ void ndr_print_NetFileClose(struct ndr_print *ndr, const char *name, int flags, const struct NetFileClose *r) +{ + ndr_print_struct(ndr, name, "NetFileClose"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "NetFileClose"); + ndr->depth++; + ndr_print_string(ndr, "server_name", r->in.server_name); + ndr_print_uint32(ndr, "fileid", r->in.fileid); + ndr->depth--; + } + if (flags & NDR_OUT) { + ndr_print_struct(ndr, "out", "NetFileClose"); + ndr->depth++; + ndr_print_NET_API_STATUS(ndr, "result", r->out.result); + ndr->depth--; + } + ndr->depth--; +} + -- cgit From 5986c6730592cc9c007338be8524f74d62467da6 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Tue, 9 Sep 2008 19:30:43 +0200 Subject: re-run make idl. Guenther (This used to be commit e82c7481a01283f446ccf5e34261835d5b69f969) --- source3/librpc/gen_ndr/ndr_libnetapi.c | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'source3/librpc/gen_ndr/ndr_libnetapi.c') diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.c b/source3/librpc/gen_ndr/ndr_libnetapi.c index de5dcaeaa1..8105cce401 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.c +++ b/source3/librpc/gen_ndr/ndr_libnetapi.c @@ -3891,3 +3891,36 @@ _PUBLIC_ void ndr_print_NetFileClose(struct ndr_print *ndr, const char *name, in ndr->depth--; } +_PUBLIC_ void ndr_print_NetFileGetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetFileGetInfo *r) +{ + ndr_print_struct(ndr, name, "NetFileGetInfo"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "NetFileGetInfo"); + ndr->depth++; + ndr_print_string(ndr, "server_name", r->in.server_name); + ndr_print_uint32(ndr, "fileid", r->in.fileid); + ndr_print_uint32(ndr, "level", r->in.level); + ndr->depth--; + } + if (flags & NDR_OUT) { + ndr_print_struct(ndr, "out", "NetFileGetInfo"); + ndr->depth++; + ndr_print_ptr(ndr, "buffer", r->out.buffer); + ndr->depth++; + ndr_print_ptr(ndr, "buffer", *r->out.buffer); + ndr->depth++; + if (*r->out.buffer) { + ndr_print_uint8(ndr, "buffer", **r->out.buffer); + } + ndr->depth--; + ndr->depth--; + ndr_print_NET_API_STATUS(ndr, "result", r->out.result); + ndr->depth--; + } + ndr->depth--; +} + -- cgit From 96619efec3d24f28e98562ee7055509daad067b5 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Tue, 9 Sep 2008 21:59:36 +0200 Subject: re-run make idl. Guenther (This used to be commit 995dea40629883ae9ac2871eeb033a168a3b4935) --- source3/librpc/gen_ndr/ndr_libnetapi.c | 51 ++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) (limited to 'source3/librpc/gen_ndr/ndr_libnetapi.c') diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.c b/source3/librpc/gen_ndr/ndr_libnetapi.c index 8105cce401..a5266827b6 100644 --- a/source3/librpc/gen_ndr/ndr_libnetapi.c +++ b/source3/librpc/gen_ndr/ndr_libnetapi.c @@ -3924,3 +3924,54 @@ _PUBLIC_ void ndr_print_NetFileGetInfo(struct ndr_print *ndr, const char *name, ndr->depth--; } +_PUBLIC_ void ndr_print_NetFileEnum(struct ndr_print *ndr, const char *name, int flags, const struct NetFileEnum *r) +{ + ndr_print_struct(ndr, name, "NetFileEnum"); + ndr->depth++; + if (flags & NDR_SET_VALUES) { + ndr->flags |= LIBNDR_PRINT_SET_VALUES; + } + if (flags & NDR_IN) { + ndr_print_struct(ndr, "in", "NetFileEnum"); + ndr->depth++; + ndr_print_string(ndr, "server_name", r->in.server_name); + ndr_print_string(ndr, "base_path", r->in.base_path); + ndr_print_string(ndr, "user_name", r->in.user_name); + ndr_print_uint32(ndr, "level", r->in.level); + ndr_print_uint32(ndr, "prefmaxlen", r->in.prefmaxlen); + ndr_print_ptr(ndr, "resume_handle", r->in.resume_handle); + ndr->depth++; + ndr_print_uint32(ndr, "resume_handle", *r->in.resume_handle); + ndr->depth--; + ndr->depth--; + } + if (flags & NDR_OUT) { + ndr_print_struct(ndr, "out", "NetFileEnum"); + ndr->depth++; + ndr_print_ptr(ndr, "buffer", r->out.buffer); + ndr->depth++; + ndr_print_ptr(ndr, "buffer", *r->out.buffer); + ndr->depth++; + if (*r->out.buffer) { + ndr_print_uint8(ndr, "buffer", **r->out.buffer); + } + ndr->depth--; + ndr->depth--; + ndr_print_ptr(ndr, "entries_read", r->out.entries_read); + ndr->depth++; + ndr_print_uint32(ndr, "entries_read", *r->out.entries_read); + ndr->depth--; + ndr_print_ptr(ndr, "total_entries", r->out.total_entries); + ndr->depth++; + ndr_print_uint32(ndr, "total_entries", *r->out.total_entries); + ndr->depth--; + ndr_print_ptr(ndr, "resume_handle", r->out.resume_handle); + ndr->depth++; + ndr_print_uint32(ndr, "resume_handle", *r->out.resume_handle); + ndr->depth--; + ndr_print_NET_API_STATUS(ndr, "result", r->out.result); + ndr->depth--; + } + ndr->depth--; +} + -- cgit