summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-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.h37
3 files changed, 66 insertions, 16 deletions
diff --git a/source3/librpc/gen_ndr/libnetapi.h b/source3/librpc/gen_ndr/libnetapi.h
index 90d13aee4e..9c1430227f 100644
--- a/source3/librpc/gen_ndr/libnetapi.h
+++ b/source3/librpc/gen_ndr/libnetapi.h
@@ -1116,6 +1116,22 @@ struct NetGroupGetUsers {
};
+struct NetGroupSetUsers {
+ struct {
+ const char * server_name;
+ const char * group_name;
+ uint32_t level;
+ uint8_t *buffer;/* [ref] */
+ uint32_t num_entries;
+ } in;
+
+ struct {
+ enum NET_API_STATUS result;
+ } out;
+
+};
+
+
struct NetLocalGroupAdd {
struct {
const char * server_name;
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");
diff --git a/source3/librpc/gen_ndr/ndr_libnetapi.h b/source3/librpc/gen_ndr/ndr_libnetapi.h
index 8a25c63a9d..e706e3fffe 100644
--- a/source3/librpc/gen_ndr/ndr_libnetapi.h
+++ b/source3/librpc/gen_ndr/ndr_libnetapi.h
@@ -64,37 +64,39 @@
#define NDR_NETGROUPGETUSERS (0x1c)
-#define NDR_NETLOCALGROUPADD (0x1d)
+#define NDR_NETGROUPSETUSERS (0x1d)
-#define NDR_NETLOCALGROUPDEL (0x1e)
+#define NDR_NETLOCALGROUPADD (0x1e)
-#define NDR_NETLOCALGROUPGETINFO (0x1f)
+#define NDR_NETLOCALGROUPDEL (0x1f)
-#define NDR_NETLOCALGROUPSETINFO (0x20)
+#define NDR_NETLOCALGROUPGETINFO (0x20)
-#define NDR_NETLOCALGROUPENUM (0x21)
+#define NDR_NETLOCALGROUPSETINFO (0x21)
-#define NDR_NETLOCALGROUPADDMEMBERS (0x22)
+#define NDR_NETLOCALGROUPENUM (0x22)
-#define NDR_NETLOCALGROUPDELMEMBERS (0x23)
+#define NDR_NETLOCALGROUPADDMEMBERS (0x23)
-#define NDR_NETLOCALGROUPGETMEMBERS (0x24)
+#define NDR_NETLOCALGROUPDELMEMBERS (0x24)
-#define NDR_NETLOCALGROUPSETMEMBERS (0x25)
+#define NDR_NETLOCALGROUPGETMEMBERS (0x25)
-#define NDR_NETREMOTETOD (0x26)
+#define NDR_NETLOCALGROUPSETMEMBERS (0x26)
-#define NDR_NETSHAREADD (0x27)
+#define NDR_NETREMOTETOD (0x27)
-#define NDR_NETSHAREDEL (0x28)
+#define NDR_NETSHAREADD (0x28)
-#define NDR_NETSHAREENUM (0x29)
+#define NDR_NETSHAREDEL (0x29)
-#define NDR_NETSHAREGETINFO (0x2a)
+#define NDR_NETSHAREENUM (0x2a)
-#define NDR_NETSHARESETINFO (0x2b)
+#define NDR_NETSHAREGETINFO (0x2b)
-#define NDR_LIBNETAPI_CALL_COUNT (44)
+#define NDR_NETSHARESETINFO (0x2c)
+
+#define NDR_LIBNETAPI_CALL_COUNT (45)
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);
@@ -320,6 +322,9 @@ void ndr_print_NetGroupDelUser(struct ndr_print *ndr, const char *name, int flag
enum ndr_err_code ndr_push_NetGroupGetUsers(struct ndr_push *ndr, int flags, const struct NetGroupGetUsers *r);
enum ndr_err_code ndr_pull_NetGroupGetUsers(struct ndr_pull *ndr, int flags, struct NetGroupGetUsers *r);
void ndr_print_NetGroupGetUsers(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupGetUsers *r);
+enum ndr_err_code ndr_push_NetGroupSetUsers(struct ndr_push *ndr, int flags, const struct NetGroupSetUsers *r);
+enum ndr_err_code ndr_pull_NetGroupSetUsers(struct ndr_pull *ndr, int flags, struct NetGroupSetUsers *r);
+void ndr_print_NetGroupSetUsers(struct ndr_print *ndr, const char *name, int flags, const struct NetGroupSetUsers *r);
enum ndr_err_code ndr_push_NetLocalGroupAdd(struct ndr_push *ndr, int flags, const struct NetLocalGroupAdd *r);
enum ndr_err_code ndr_pull_NetLocalGroupAdd(struct ndr_pull *ndr, int flags, struct NetLocalGroupAdd *r);
void ndr_print_NetLocalGroupAdd(struct ndr_print *ndr, const char *name, int flags, const struct NetLocalGroupAdd *r);