summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/librpc/gen_ndr/libnetapi.h16
-rw-r--r--source3/librpc/gen_ndr/ndr_libnetapi.c29
-rw-r--r--source3/librpc/gen_ndr/ndr_libnetapi.h59
3 files changed, 77 insertions, 27 deletions
diff --git a/source3/librpc/gen_ndr/libnetapi.h b/source3/librpc/gen_ndr/libnetapi.h
index 0f65774291..90d13aee4e 100644
--- a/source3/librpc/gen_ndr/libnetapi.h
+++ b/source3/librpc/gen_ndr/libnetapi.h
@@ -927,6 +927,22 @@ struct NetUserGetGroups {
};
+struct NetUserSetGroups {
+ struct {
+ const char * server_name;
+ const char * user_name;
+ uint32_t level;
+ uint8_t *buffer;/* [ref] */
+ uint32_t num_entries;
+ } in;
+
+ struct {
+ enum NET_API_STATUS result;
+ } out;
+
+};
+
+
struct NetUserModalsGet {
struct {
const char * server_name;
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");
diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.h b/source3/librpc/gen_ndr/ndr_libnetapi.h
index edfdec424c..8a25c63a9d 100644
--- a/source3/librpc/gen_ndr/ndr_libnetapi.h
+++ b/source3/librpc/gen_ndr/ndr_libnetapi.h
@@ -40,59 +40,61 @@
#define NDR_NETUSERGETGROUPS (0x10)
-#define NDR_NETUSERMODALSGET (0x11)
+#define NDR_NETUSERSETGROUPS (0x11)
-#define NDR_NETUSERMODALSSET (0x12)
+#define NDR_NETUSERMODALSGET (0x12)
-#define NDR_NETQUERYDISPLAYINFORMATION (0x13)
+#define NDR_NETUSERMODALSSET (0x13)
-#define NDR_NETGROUPADD (0x14)
+#define NDR_NETQUERYDISPLAYINFORMATION (0x14)
-#define NDR_NETGROUPDEL (0x15)
+#define NDR_NETGROUPADD (0x15)
-#define NDR_NETGROUPENUM (0x16)
+#define NDR_NETGROUPDEL (0x16)
-#define NDR_NETGROUPSETINFO (0x17)
+#define NDR_NETGROUPENUM (0x17)
-#define NDR_NETGROUPGETINFO (0x18)
+#define NDR_NETGROUPSETINFO (0x18)
-#define NDR_NETGROUPADDUSER (0x19)
+#define NDR_NETGROUPGETINFO (0x19)
-#define NDR_NETGROUPDELUSER (0x1a)
+#define NDR_NETGROUPADDUSER (0x1a)
-#define NDR_NETGROUPGETUSERS (0x1b)
+#define NDR_NETGROUPDELUSER (0x1b)
-#define NDR_NETLOCALGROUPADD (0x1c)
+#define NDR_NETGROUPGETUSERS (0x1c)
-#define NDR_NETLOCALGROUPDEL (0x1d)
+#define NDR_NETLOCALGROUPADD (0x1d)
-#define NDR_NETLOCALGROUPGETINFO (0x1e)
+#define NDR_NETLOCALGROUPDEL (0x1e)
-#define NDR_NETLOCALGROUPSETINFO (0x1f)
+#define NDR_NETLOCALGROUPGETINFO (0x1f)
-#define NDR_NETLOCALGROUPENUM (0x20)
+#define NDR_NETLOCALGROUPSETINFO (0x20)
-#define NDR_NETLOCALGROUPADDMEMBERS (0x21)
+#define NDR_NETLOCALGROUPENUM (0x21)
-#define NDR_NETLOCALGROUPDELMEMBERS (0x22)
+#define NDR_NETLOCALGROUPADDMEMBERS (0x22)
-#define NDR_NETLOCALGROUPGETMEMBERS (0x23)
+#define NDR_NETLOCALGROUPDELMEMBERS (0x23)
-#define NDR_NETLOCALGROUPSETMEMBERS (0x24)
+#define NDR_NETLOCALGROUPGETMEMBERS (0x24)
-#define NDR_NETREMOTETOD (0x25)
+#define NDR_NETLOCALGROUPSETMEMBERS (0x25)
-#define NDR_NETSHAREADD (0x26)
+#define NDR_NETREMOTETOD (0x26)
-#define NDR_NETSHAREDEL (0x27)
+#define NDR_NETSHAREADD (0x27)
-#define NDR_NETSHAREENUM (0x28)
+#define NDR_NETSHAREDEL (0x28)
-#define NDR_NETSHAREGETINFO (0x29)
+#define NDR_NETSHAREENUM (0x29)
-#define NDR_NETSHARESETINFO (0x2a)
+#define NDR_NETSHAREGETINFO (0x2a)
-#define NDR_LIBNETAPI_CALL_COUNT (43)
+#define NDR_NETSHARESETINFO (0x2b)
+
+#define NDR_LIBNETAPI_CALL_COUNT (44)
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);
@@ -282,6 +284,9 @@ void ndr_print_NetUserSetInfo(struct ndr_print *ndr, const char *name, int flags
enum ndr_err_code ndr_push_NetUserGetGroups(struct ndr_push *ndr, int flags, const struct NetUserGetGroups *r);
enum ndr_err_code ndr_pull_NetUserGetGroups(struct ndr_pull *ndr, int flags, struct NetUserGetGroups *r);
void ndr_print_NetUserGetGroups(struct ndr_print *ndr, const char *name, int flags, const struct NetUserGetGroups *r);
+enum ndr_err_code ndr_push_NetUserSetGroups(struct ndr_push *ndr, int flags, const struct NetUserSetGroups *r);
+enum ndr_err_code ndr_pull_NetUserSetGroups(struct ndr_pull *ndr, int flags, struct NetUserSetGroups *r);
+void ndr_print_NetUserSetGroups(struct ndr_print *ndr, const char *name, int flags, const struct NetUserSetGroups *r);
enum ndr_err_code ndr_push_NetUserModalsGet(struct ndr_push *ndr, int flags, const struct NetUserModalsGet *r);
enum ndr_err_code ndr_pull_NetUserModalsGet(struct ndr_pull *ndr, int flags, struct NetUserModalsGet *r);
void ndr_print_NetUserModalsGet(struct ndr_print *ndr, const char *name, int flags, const struct NetUserModalsGet *r);