summaryrefslogtreecommitdiff
path: root/source3/librpc/gen_ndr
diff options
context:
space:
mode:
Diffstat (limited to 'source3/librpc/gen_ndr')
-rw-r--r--source3/librpc/gen_ndr/libnetapi.h15
-rw-r--r--source3/librpc/gen_ndr/ndr_libnetapi.c33
-rw-r--r--source3/librpc/gen_ndr/ndr_libnetapi.h33
3 files changed, 67 insertions, 14 deletions
diff --git a/source3/librpc/gen_ndr/libnetapi.h b/source3/librpc/gen_ndr/libnetapi.h
index e5c03b6b41..1a6898c4e5 100644
--- a/source3/librpc/gen_ndr/libnetapi.h
+++ b/source3/librpc/gen_ndr/libnetapi.h
@@ -489,6 +489,21 @@ struct NetUserChangePassword {
};
+struct NetUserGetInfo {
+ struct {
+ const char * server_name;
+ const char * user_name;
+ uint32_t level;
+ } in;
+
+ struct {
+ uint8_t **buffer;/* [ref] */
+ enum NET_API_STATUS result;
+ } out;
+
+};
+
+
struct NetQueryDisplayInformation {
struct {
const char * server_name;/* [unique] */
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");
diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.h b/source3/librpc/gen_ndr/ndr_libnetapi.h
index afb2cea5e2..29a8bb6071 100644
--- a/source3/librpc/gen_ndr/ndr_libnetapi.h
+++ b/source3/librpc/gen_ndr/ndr_libnetapi.h
@@ -32,33 +32,35 @@
#define NDR_NETUSERCHANGEPASSWORD (0x0c)
-#define NDR_NETQUERYDISPLAYINFORMATION (0x0d)
+#define NDR_NETUSERGETINFO (0x0d)
-#define NDR_NETGROUPADD (0x0e)
+#define NDR_NETQUERYDISPLAYINFORMATION (0x0e)
-#define NDR_NETGROUPDEL (0x0f)
+#define NDR_NETGROUPADD (0x0f)
-#define NDR_NETGROUPENUM (0x10)
+#define NDR_NETGROUPDEL (0x10)
-#define NDR_NETGROUPSETINFO (0x11)
+#define NDR_NETGROUPENUM (0x11)
-#define NDR_NETGROUPGETINFO (0x12)
+#define NDR_NETGROUPSETINFO (0x12)
-#define NDR_NETGROUPADDUSER (0x13)
+#define NDR_NETGROUPGETINFO (0x13)
-#define NDR_NETGROUPDELUSER (0x14)
+#define NDR_NETGROUPADDUSER (0x14)
-#define NDR_NETLOCALGROUPADD (0x15)
+#define NDR_NETGROUPDELUSER (0x15)
-#define NDR_NETLOCALGROUPDEL (0x16)
+#define NDR_NETLOCALGROUPADD (0x16)
-#define NDR_NETLOCALGROUPGETINFO (0x17)
+#define NDR_NETLOCALGROUPDEL (0x17)
-#define NDR_NETLOCALGROUPSETINFO (0x18)
+#define NDR_NETLOCALGROUPGETINFO (0x18)
-#define NDR_NETREMOTETOD (0x19)
+#define NDR_NETLOCALGROUPSETINFO (0x19)
-#define NDR_LIBNETAPI_CALL_COUNT (26)
+#define NDR_NETREMOTETOD (0x1a)
+
+#define NDR_LIBNETAPI_CALL_COUNT (27)
enum ndr_err_code ndr_push_NET_API_STATUS(struct ndr_push *ndr, int ndr_flags, enum NET_API_STATUS r);
enum ndr_err_code ndr_pull_NET_API_STATUS(struct ndr_pull *ndr, int ndr_flags, enum NET_API_STATUS *r);
void ndr_print_NET_API_STATUS(struct ndr_print *ndr, const char *name, enum NET_API_STATUS r);
@@ -149,6 +151,9 @@ void ndr_print_NetUserEnum(struct ndr_print *ndr, const char *name, int flags, c
enum ndr_err_code ndr_push_NetUserChangePassword(struct ndr_push *ndr, int flags, const struct NetUserChangePassword *r);
enum ndr_err_code ndr_pull_NetUserChangePassword(struct ndr_pull *ndr, int flags, struct NetUserChangePassword *r);
void ndr_print_NetUserChangePassword(struct ndr_print *ndr, const char *name, int flags, const struct NetUserChangePassword *r);
+enum ndr_err_code ndr_push_NetUserGetInfo(struct ndr_push *ndr, int flags, const struct NetUserGetInfo *r);
+enum ndr_err_code ndr_pull_NetUserGetInfo(struct ndr_pull *ndr, int flags, struct NetUserGetInfo *r);
+void ndr_print_NetUserGetInfo(struct ndr_print *ndr, const char *name, int flags, const struct NetUserGetInfo *r);
enum ndr_err_code ndr_push_NetQueryDisplayInformation(struct ndr_push *ndr, int flags, const struct NetQueryDisplayInformation *r);
enum ndr_err_code ndr_pull_NetQueryDisplayInformation(struct ndr_pull *ndr, int flags, struct NetQueryDisplayInformation *r);
void ndr_print_NetQueryDisplayInformation(struct ndr_print *ndr, const char *name, int flags, const struct NetQueryDisplayInformation *r);