}
}
+static enum ndr_err_code ndr_push_winbind_set_idmap_level(struct ndr_push *ndr, int ndr_flags, enum winbind_set_idmap_level r)
+{
+ NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r));
+ return NDR_ERR_SUCCESS;
+}
+
+static enum ndr_err_code ndr_pull_winbind_set_idmap_level(struct ndr_pull *ndr, int ndr_flags, enum winbind_set_idmap_level *r)
+{
+ uint32_t v;
+ NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &v));
+ *r = v;
+ return NDR_ERR_SUCCESS;
+}
+
+_PUBLIC_ void ndr_print_winbind_set_idmap_level(struct ndr_print *ndr, const char *name, enum winbind_set_idmap_level r)
+{
+ const char *val = NULL;
+
+ switch (r) {
+ case WINBIND_SET_IDMAP_LEVEL_ALLOCATE_UID: val = "WINBIND_SET_IDMAP_LEVEL_ALLOCATE_UID"; break;
+ case WINBIND_SET_IDMAP_LEVEL_ALLOCATE_GID: val = "WINBIND_SET_IDMAP_LEVEL_ALLOCATE_GID"; break;
+ case WINBIND_SET_IDMAP_LEVEL_SET_MAPPING: val = "WINBIND_SET_IDMAP_LEVEL_SET_MAPPING"; break;
+ case WINBIND_SET_IDMAP_LEVEL_SET_HWM: val = "WINBIND_SET_IDMAP_LEVEL_SET_HWM"; break;
+ }
+ ndr_print_enum(ndr, name, "ENUM", val, r);
+}
+
+static enum ndr_err_code ndr_push_winbind_set_idmap_req(struct ndr_push *ndr, int ndr_flags, const union winbind_set_idmap_req *r)
+{
+ if (ndr_flags & NDR_SCALARS) {
+ int level = ndr_push_get_switch_value(ndr, r);
+ NDR_CHECK(ndr_push_winbind_set_idmap_level(ndr, NDR_SCALARS, level));
+ switch (level) {
+ case WINBIND_SET_IDMAP_LEVEL_ALLOCATE_UID:
+ break;
+
+ case WINBIND_SET_IDMAP_LEVEL_ALLOCATE_GID:
+ break;
+
+ case WINBIND_SET_IDMAP_LEVEL_SET_MAPPING:
+ NDR_CHECK(ndr_push_id_map(ndr, NDR_SCALARS, &r->mapping));
+ break;
+
+ case WINBIND_SET_IDMAP_LEVEL_SET_HWM:
+ NDR_CHECK(ndr_push_unixid(ndr, NDR_SCALARS, &r->hwm));
+ break;
+
+ default:
+ return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %u", level);
+ }
+ }
+ if (ndr_flags & NDR_BUFFERS) {
+ int level = ndr_push_get_switch_value(ndr, r);
+ switch (level) {
+ case WINBIND_SET_IDMAP_LEVEL_ALLOCATE_UID:
+ break;
+
+ case WINBIND_SET_IDMAP_LEVEL_ALLOCATE_GID:
+ break;
+
+ case WINBIND_SET_IDMAP_LEVEL_SET_MAPPING:
+ NDR_CHECK(ndr_push_id_map(ndr, NDR_BUFFERS, &r->mapping));
+ break;
+
+ case WINBIND_SET_IDMAP_LEVEL_SET_HWM:
+ NDR_CHECK(ndr_push_unixid(ndr, NDR_BUFFERS, &r->hwm));
+ break;
+
+ default:
+ return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %u", level);
+ }
+ }
+ return NDR_ERR_SUCCESS;
+}
+
+static enum ndr_err_code ndr_pull_winbind_set_idmap_req(struct ndr_pull *ndr, int ndr_flags, union winbind_set_idmap_req *r)
+{
+ int level;
+ uint32_t _level;
+ level = ndr_pull_get_switch_value(ndr, r);
+ if (ndr_flags & NDR_SCALARS) {
+ NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &_level));
+ if (_level != level) {
+ return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %u for r", _level);
+ }
+ switch (level) {
+ case WINBIND_SET_IDMAP_LEVEL_ALLOCATE_UID: {
+ break; }
+
+ case WINBIND_SET_IDMAP_LEVEL_ALLOCATE_GID: {
+ break; }
+
+ case WINBIND_SET_IDMAP_LEVEL_SET_MAPPING: {
+ NDR_CHECK(ndr_pull_id_map(ndr, NDR_SCALARS, &r->mapping));
+ break; }
+
+ case WINBIND_SET_IDMAP_LEVEL_SET_HWM: {
+ NDR_CHECK(ndr_pull_unixid(ndr, NDR_SCALARS, &r->hwm));
+ break; }
+
+ default:
+ return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %u", level);
+ }
+ }
+ if (ndr_flags & NDR_BUFFERS) {
+ switch (level) {
+ case WINBIND_SET_IDMAP_LEVEL_ALLOCATE_UID:
+ break;
+
+ case WINBIND_SET_IDMAP_LEVEL_ALLOCATE_GID:
+ break;
+
+ case WINBIND_SET_IDMAP_LEVEL_SET_MAPPING:
+ NDR_CHECK(ndr_pull_id_map(ndr, NDR_BUFFERS, &r->mapping));
+ break;
+
+ case WINBIND_SET_IDMAP_LEVEL_SET_HWM:
+ NDR_CHECK(ndr_pull_unixid(ndr, NDR_BUFFERS, &r->hwm));
+ break;
+
+ default:
+ return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %u", level);
+ }
+ }
+ return NDR_ERR_SUCCESS;
+}
+
+_PUBLIC_ void ndr_print_winbind_set_idmap_req(struct ndr_print *ndr, const char *name, const union winbind_set_idmap_req *r)
+{
+ int level;
+ level = ndr_print_get_switch_value(ndr, r);
+ ndr_print_union(ndr, name, level, "winbind_set_idmap_req");
+ switch (level) {
+ case WINBIND_SET_IDMAP_LEVEL_ALLOCATE_UID:
+ break;
+
+ case WINBIND_SET_IDMAP_LEVEL_ALLOCATE_GID:
+ break;
+
+ case WINBIND_SET_IDMAP_LEVEL_SET_MAPPING:
+ ndr_print_id_map(ndr, "mapping", &r->mapping);
+ break;
+
+ case WINBIND_SET_IDMAP_LEVEL_SET_HWM:
+ ndr_print_unixid(ndr, "hwm", &r->hwm);
+ break;
+
+ default:
+ ndr_print_bad_level(ndr, name, level);
+ }
+}
+
+static enum ndr_err_code ndr_push_winbind_set_idmap_rep(struct ndr_push *ndr, int ndr_flags, const union winbind_set_idmap_rep *r)
+{
+ if (ndr_flags & NDR_SCALARS) {
+ int level = ndr_push_get_switch_value(ndr, r);
+ NDR_CHECK(ndr_push_winbind_set_idmap_level(ndr, NDR_SCALARS, level));
+ switch (level) {
+ case WINBIND_SET_IDMAP_LEVEL_ALLOCATE_UID:
+ NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->uid));
+ break;
+
+ case WINBIND_SET_IDMAP_LEVEL_ALLOCATE_GID:
+ NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->gid));
+ break;
+
+ case WINBIND_SET_IDMAP_LEVEL_SET_MAPPING:
+ break;
+
+ case WINBIND_SET_IDMAP_LEVEL_SET_HWM:
+ break;
+
+ default:
+ return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %u", level);
+ }
+ }
+ if (ndr_flags & NDR_BUFFERS) {
+ int level = ndr_push_get_switch_value(ndr, r);
+ switch (level) {
+ case WINBIND_SET_IDMAP_LEVEL_ALLOCATE_UID:
+ break;
+
+ case WINBIND_SET_IDMAP_LEVEL_ALLOCATE_GID:
+ break;
+
+ case WINBIND_SET_IDMAP_LEVEL_SET_MAPPING:
+ break;
+
+ case WINBIND_SET_IDMAP_LEVEL_SET_HWM:
+ break;
+
+ default:
+ return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %u", level);
+ }
+ }
+ return NDR_ERR_SUCCESS;
+}
+
+static enum ndr_err_code ndr_pull_winbind_set_idmap_rep(struct ndr_pull *ndr, int ndr_flags, union winbind_set_idmap_rep *r)
+{
+ int level;
+ uint32_t _level;
+ level = ndr_pull_get_switch_value(ndr, r);
+ if (ndr_flags & NDR_SCALARS) {
+ NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &_level));
+ if (_level != level) {
+ return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %u for r", _level);
+ }
+ switch (level) {
+ case WINBIND_SET_IDMAP_LEVEL_ALLOCATE_UID: {
+ NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->uid));
+ break; }
+
+ case WINBIND_SET_IDMAP_LEVEL_ALLOCATE_GID: {
+ NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->gid));
+ break; }
+
+ case WINBIND_SET_IDMAP_LEVEL_SET_MAPPING: {
+ break; }
+
+ case WINBIND_SET_IDMAP_LEVEL_SET_HWM: {
+ break; }
+
+ default:
+ return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %u", level);
+ }
+ }
+ if (ndr_flags & NDR_BUFFERS) {
+ switch (level) {
+ case WINBIND_SET_IDMAP_LEVEL_ALLOCATE_UID:
+ break;
+
+ case WINBIND_SET_IDMAP_LEVEL_ALLOCATE_GID:
+ break;
+
+ case WINBIND_SET_IDMAP_LEVEL_SET_MAPPING:
+ break;
+
+ case WINBIND_SET_IDMAP_LEVEL_SET_HWM:
+ break;
+
+ default:
+ return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %u", level);
+ }
+ }
+ return NDR_ERR_SUCCESS;
+}
+
+_PUBLIC_ void ndr_print_winbind_set_idmap_rep(struct ndr_print *ndr, const char *name, const union winbind_set_idmap_rep *r)
+{
+ int level;
+ level = ndr_print_get_switch_value(ndr, r);
+ ndr_print_union(ndr, name, level, "winbind_set_idmap_rep");
+ switch (level) {
+ case WINBIND_SET_IDMAP_LEVEL_ALLOCATE_UID:
+ ndr_print_hyper(ndr, "uid", r->uid);
+ break;
+
+ case WINBIND_SET_IDMAP_LEVEL_ALLOCATE_GID:
+ ndr_print_hyper(ndr, "gid", r->gid);
+ break;
+
+ case WINBIND_SET_IDMAP_LEVEL_SET_MAPPING:
+ break;
+
+ case WINBIND_SET_IDMAP_LEVEL_SET_HWM:
+ break;
+
+ default:
+ ndr_print_bad_level(ndr, name, level);
+ }
+}
+
static enum ndr_err_code ndr_push_STRUCT_winbind_domain_info_compat(struct ndr_push *ndr, int ndr_flags, const struct winbind_domain_info_compat *r)
{
if (ndr_flags & NDR_SCALARS) {
ndr->depth--;
}
-static enum ndr_err_code ndr_push_winbind_allocate_uid(struct ndr_push *ndr, int flags, const struct winbind_allocate_uid *r)
+static enum ndr_err_code ndr_push_winbind_set_idmap(struct ndr_push *ndr, int flags, const struct winbind_set_idmap *r)
{
if (flags & NDR_IN) {
+ if (r->in.level == NULL) {
+ return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
+ }
+ NDR_CHECK(ndr_push_winbind_set_idmap_level(ndr, NDR_SCALARS, *r->in.level));
+ NDR_CHECK(ndr_push_set_switch_value(ndr, &r->in.req, *r->in.level));
+ NDR_CHECK(ndr_push_winbind_set_idmap_req(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.req));
}
if (flags & NDR_OUT) {
+ if (r->out.level == NULL) {
+ return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
+ }
+ NDR_CHECK(ndr_push_winbind_set_idmap_level(ndr, NDR_SCALARS, *r->out.level));
+ if (r->out.rep == NULL) {
+ return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
+ }
+ NDR_CHECK(ndr_push_set_switch_value(ndr, r->out.rep, *r->out.level));
+ NDR_CHECK(ndr_push_winbind_set_idmap_rep(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.rep));
NDR_CHECK(ndr_push_winbind_status(ndr, NDR_SCALARS, r->out.result));
}
return NDR_ERR_SUCCESS;
}
-static enum ndr_err_code ndr_pull_winbind_allocate_uid(struct ndr_pull *ndr, int flags, struct winbind_allocate_uid *r)
-{
- if (flags & NDR_IN) {
- }
- if (flags & NDR_OUT) {
- NDR_CHECK(ndr_pull_winbind_status(ndr, NDR_SCALARS, &r->out.result));
- }
- return NDR_ERR_SUCCESS;
-}
-
-_PUBLIC_ void ndr_print_winbind_allocate_uid(struct ndr_print *ndr, const char *name, int flags, const struct winbind_allocate_uid *r)
-{
- ndr_print_struct(ndr, name, "winbind_allocate_uid");
- ndr->depth++;
- if (flags & NDR_SET_VALUES) {
- ndr->flags |= LIBNDR_PRINT_SET_VALUES;
- }
- if (flags & NDR_IN) {
- ndr_print_struct(ndr, "in", "winbind_allocate_uid");
- ndr->depth++;
- ndr->depth--;
- }
- if (flags & NDR_OUT) {
- ndr_print_struct(ndr, "out", "winbind_allocate_uid");
- ndr->depth++;
- ndr_print_winbind_status(ndr, "result", r->out.result);
- ndr->depth--;
- }
- ndr->depth--;
-}
-
-static enum ndr_err_code ndr_push_winbind_allocate_gid(struct ndr_push *ndr, int flags, const struct winbind_allocate_gid *r)
+static enum ndr_err_code ndr_pull_winbind_set_idmap(struct ndr_pull *ndr, int flags, struct winbind_set_idmap *r)
{
+ TALLOC_CTX *_mem_save_level_0;
+ TALLOC_CTX *_mem_save_rep_0;
if (flags & NDR_IN) {
- }
- if (flags & NDR_OUT) {
- NDR_CHECK(ndr_push_winbind_status(ndr, NDR_SCALARS, r->out.result));
- }
- return NDR_ERR_SUCCESS;
-}
+ ZERO_STRUCT(r->out);
-static enum ndr_err_code ndr_pull_winbind_allocate_gid(struct ndr_pull *ndr, int flags, struct winbind_allocate_gid *r)
-{
- if (flags & NDR_IN) {
+ if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
+ NDR_PULL_ALLOC(ndr, r->in.level);
+ }
+ _mem_save_level_0 = NDR_PULL_GET_MEM_CTX(ndr);
+ NDR_PULL_SET_MEM_CTX(ndr, r->in.level, LIBNDR_FLAG_REF_ALLOC);
+ NDR_CHECK(ndr_pull_winbind_set_idmap_level(ndr, NDR_SCALARS, r->in.level));
+ NDR_PULL_SET_MEM_CTX(ndr, _mem_save_level_0, LIBNDR_FLAG_REF_ALLOC);
+ NDR_CHECK(ndr_pull_set_switch_value(ndr, &r->in.req, *r->in.level));
+ NDR_CHECK(ndr_pull_winbind_set_idmap_req(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.req));
+ NDR_PULL_ALLOC(ndr, r->out.level);
+ *r->out.level = *r->in.level;
+ NDR_PULL_ALLOC(ndr, r->out.rep);
+ ZERO_STRUCTP(r->out.rep);
}
if (flags & NDR_OUT) {
+ if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
+ NDR_PULL_ALLOC(ndr, r->out.level);
+ }
+ _mem_save_level_0 = NDR_PULL_GET_MEM_CTX(ndr);
+ NDR_PULL_SET_MEM_CTX(ndr, r->out.level, LIBNDR_FLAG_REF_ALLOC);
+ NDR_CHECK(ndr_pull_winbind_set_idmap_level(ndr, NDR_SCALARS, r->out.level));
+ NDR_PULL_SET_MEM_CTX(ndr, _mem_save_level_0, LIBNDR_FLAG_REF_ALLOC);
+ if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
+ NDR_PULL_ALLOC(ndr, r->out.rep);
+ }
+ _mem_save_rep_0 = NDR_PULL_GET_MEM_CTX(ndr);
+ NDR_PULL_SET_MEM_CTX(ndr, r->out.rep, LIBNDR_FLAG_REF_ALLOC);
+ NDR_CHECK(ndr_pull_set_switch_value(ndr, r->out.rep, *r->out.level));
+ NDR_CHECK(ndr_pull_winbind_set_idmap_rep(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.rep));
+ NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rep_0, LIBNDR_FLAG_REF_ALLOC);
NDR_CHECK(ndr_pull_winbind_status(ndr, NDR_SCALARS, &r->out.result));
}
return NDR_ERR_SUCCESS;
}
-_PUBLIC_ void ndr_print_winbind_allocate_gid(struct ndr_print *ndr, const char *name, int flags, const struct winbind_allocate_gid *r)
+_PUBLIC_ void ndr_print_winbind_set_idmap(struct ndr_print *ndr, const char *name, int flags, const struct winbind_set_idmap *r)
{
- ndr_print_struct(ndr, name, "winbind_allocate_gid");
+ ndr_print_struct(ndr, name, "winbind_set_idmap");
ndr->depth++;
if (flags & NDR_SET_VALUES) {
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
}
if (flags & NDR_IN) {
- ndr_print_struct(ndr, "in", "winbind_allocate_gid");
+ ndr_print_struct(ndr, "in", "winbind_set_idmap");
ndr->depth++;
- ndr->depth--;
- }
- if (flags & NDR_OUT) {
- ndr_print_struct(ndr, "out", "winbind_allocate_gid");
+ ndr_print_ptr(ndr, "level", r->in.level);
ndr->depth++;
- ndr_print_winbind_status(ndr, "result", r->out.result);
+ ndr_print_winbind_set_idmap_level(ndr, "level", *r->in.level);
ndr->depth--;
- }
- ndr->depth--;
-}
-
-static enum ndr_err_code ndr_push_winbind_set_mapping(struct ndr_push *ndr, int flags, const struct winbind_set_mapping *r)
-{
- if (flags & NDR_IN) {
- }
- if (flags & NDR_OUT) {
- NDR_CHECK(ndr_push_winbind_status(ndr, NDR_SCALARS, r->out.result));
- }
- return NDR_ERR_SUCCESS;
-}
-
-static enum ndr_err_code ndr_pull_winbind_set_mapping(struct ndr_pull *ndr, int flags, struct winbind_set_mapping *r)
-{
- if (flags & NDR_IN) {
- }
- if (flags & NDR_OUT) {
- NDR_CHECK(ndr_pull_winbind_status(ndr, NDR_SCALARS, &r->out.result));
- }
- return NDR_ERR_SUCCESS;
-}
-
-_PUBLIC_ void ndr_print_winbind_set_mapping(struct ndr_print *ndr, const char *name, int flags, const struct winbind_set_mapping *r)
-{
- ndr_print_struct(ndr, name, "winbind_set_mapping");
- ndr->depth++;
- if (flags & NDR_SET_VALUES) {
- ndr->flags |= LIBNDR_PRINT_SET_VALUES;
- }
- if (flags & NDR_IN) {
- ndr_print_struct(ndr, "in", "winbind_set_mapping");
- ndr->depth++;
+ ndr_print_set_switch_value(ndr, &r->in.req, *r->in.level);
+ ndr_print_winbind_set_idmap_req(ndr, "req", &r->in.req);
ndr->depth--;
}
if (flags & NDR_OUT) {
- ndr_print_struct(ndr, "out", "winbind_set_mapping");
+ ndr_print_struct(ndr, "out", "winbind_set_idmap");
ndr->depth++;
- ndr_print_winbind_status(ndr, "result", r->out.result);
- ndr->depth--;
- }
- ndr->depth--;
-}
-
-static enum ndr_err_code ndr_push_winbind_set_hwm(struct ndr_push *ndr, int flags, const struct winbind_set_hwm *r)
-{
- if (flags & NDR_IN) {
- }
- if (flags & NDR_OUT) {
- NDR_CHECK(ndr_push_winbind_status(ndr, NDR_SCALARS, r->out.result));
- }
- return NDR_ERR_SUCCESS;
-}
-
-static enum ndr_err_code ndr_pull_winbind_set_hwm(struct ndr_pull *ndr, int flags, struct winbind_set_hwm *r)
-{
- if (flags & NDR_IN) {
- }
- if (flags & NDR_OUT) {
- NDR_CHECK(ndr_pull_winbind_status(ndr, NDR_SCALARS, &r->out.result));
- }
- return NDR_ERR_SUCCESS;
-}
-
-_PUBLIC_ void ndr_print_winbind_set_hwm(struct ndr_print *ndr, const char *name, int flags, const struct winbind_set_hwm *r)
-{
- ndr_print_struct(ndr, name, "winbind_set_hwm");
- ndr->depth++;
- if (flags & NDR_SET_VALUES) {
- ndr->flags |= LIBNDR_PRINT_SET_VALUES;
- }
- if (flags & NDR_IN) {
- ndr_print_struct(ndr, "in", "winbind_set_hwm");
+ ndr_print_ptr(ndr, "level", r->out.level);
ndr->depth++;
+ ndr_print_winbind_set_idmap_level(ndr, "level", *r->out.level);
ndr->depth--;
- }
- if (flags & NDR_OUT) {
- ndr_print_struct(ndr, "out", "winbind_set_hwm");
+ ndr_print_ptr(ndr, "rep", r->out.rep);
ndr->depth++;
+ ndr_print_set_switch_value(ndr, r->out.rep, *r->out.level);
+ ndr_print_winbind_set_idmap_rep(ndr, "rep", r->out.rep);
+ ndr->depth--;
ndr_print_winbind_status(ndr, "result", r->out.result);
ndr->depth--;
}
ndr->depth--;
}
-static enum ndr_err_code ndr_push_winbind_dual_set_mapping(struct ndr_push *ndr, int flags, const struct winbind_dual_set_mapping *r)
-{
- if (flags & NDR_IN) {
- }
- if (flags & NDR_OUT) {
- NDR_CHECK(ndr_push_winbind_status(ndr, NDR_SCALARS, r->out.result));
- }
- return NDR_ERR_SUCCESS;
-}
-
-static enum ndr_err_code ndr_pull_winbind_dual_set_mapping(struct ndr_pull *ndr, int flags, struct winbind_dual_set_mapping *r)
-{
- if (flags & NDR_IN) {
- }
- if (flags & NDR_OUT) {
- NDR_CHECK(ndr_pull_winbind_status(ndr, NDR_SCALARS, &r->out.result));
- }
- return NDR_ERR_SUCCESS;
-}
-
-_PUBLIC_ void ndr_print_winbind_dual_set_mapping(struct ndr_print *ndr, const char *name, int flags, const struct winbind_dual_set_mapping *r)
-{
- ndr_print_struct(ndr, name, "winbind_dual_set_mapping");
- ndr->depth++;
- if (flags & NDR_SET_VALUES) {
- ndr->flags |= LIBNDR_PRINT_SET_VALUES;
- }
- if (flags & NDR_IN) {
- ndr_print_struct(ndr, "in", "winbind_dual_set_mapping");
- ndr->depth++;
- ndr->depth--;
- }
- if (flags & NDR_OUT) {
- ndr_print_struct(ndr, "out", "winbind_dual_set_mapping");
- ndr->depth++;
- ndr_print_winbind_status(ndr, "result", r->out.result);
- ndr->depth--;
- }
- ndr->depth--;
-}
-
-static enum ndr_err_code ndr_push_winbind_dual_set_hwm(struct ndr_push *ndr, int flags, const struct winbind_dual_set_hwm *r)
-{
- if (flags & NDR_IN) {
- }
- if (flags & NDR_OUT) {
- NDR_CHECK(ndr_push_winbind_status(ndr, NDR_SCALARS, r->out.result));
- }
- return NDR_ERR_SUCCESS;
-}
-
-static enum ndr_err_code ndr_pull_winbind_dual_set_hwm(struct ndr_pull *ndr, int flags, struct winbind_dual_set_hwm *r)
-{
- if (flags & NDR_IN) {
- }
- if (flags & NDR_OUT) {
- NDR_CHECK(ndr_pull_winbind_status(ndr, NDR_SCALARS, &r->out.result));
- }
- return NDR_ERR_SUCCESS;
-}
-
-_PUBLIC_ void ndr_print_winbind_dual_set_hwm(struct ndr_print *ndr, const char *name, int flags, const struct winbind_dual_set_hwm *r)
-{
- ndr_print_struct(ndr, name, "winbind_dual_set_hwm");
- ndr->depth++;
- if (flags & NDR_SET_VALUES) {
- ndr->flags |= LIBNDR_PRINT_SET_VALUES;
- }
- if (flags & NDR_IN) {
- ndr_print_struct(ndr, "in", "winbind_dual_set_hwm");
- ndr->depth++;
- ndr->depth--;
- }
- if (flags & NDR_OUT) {
- ndr_print_struct(ndr, "out", "winbind_dual_set_hwm");
- ndr->depth++;
- ndr_print_winbind_status(ndr, "result", r->out.result);
- ndr->depth--;
- }
- ndr->depth--;
-}
-
static enum ndr_err_code ndr_push_winbind_dual_userinfo(struct ndr_push *ndr, int flags, const struct winbind_dual_userinfo *r)
{
if (flags & NDR_IN) {
false,
},
{
- "winbind_allocate_uid",
- sizeof(struct winbind_allocate_uid),
- (ndr_push_flags_fn_t) ndr_push_winbind_allocate_uid,
- (ndr_pull_flags_fn_t) ndr_pull_winbind_allocate_uid,
- (ndr_print_function_t) ndr_print_winbind_allocate_uid,
- false,
- },
- {
- "winbind_allocate_gid",
- sizeof(struct winbind_allocate_gid),
- (ndr_push_flags_fn_t) ndr_push_winbind_allocate_gid,
- (ndr_pull_flags_fn_t) ndr_pull_winbind_allocate_gid,
- (ndr_print_function_t) ndr_print_winbind_allocate_gid,
- false,
- },
- {
- "winbind_set_mapping",
- sizeof(struct winbind_set_mapping),
- (ndr_push_flags_fn_t) ndr_push_winbind_set_mapping,
- (ndr_pull_flags_fn_t) ndr_pull_winbind_set_mapping,
- (ndr_print_function_t) ndr_print_winbind_set_mapping,
- false,
- },
- {
- "winbind_set_hwm",
- sizeof(struct winbind_set_hwm),
- (ndr_push_flags_fn_t) ndr_push_winbind_set_hwm,
- (ndr_pull_flags_fn_t) ndr_pull_winbind_set_hwm,
- (ndr_print_function_t) ndr_print_winbind_set_hwm,
+ "winbind_set_idmap",
+ sizeof(struct winbind_set_idmap),
+ (ndr_push_flags_fn_t) ndr_push_winbind_set_idmap,
+ (ndr_pull_flags_fn_t) ndr_pull_winbind_set_idmap,
+ (ndr_print_function_t) ndr_print_winbind_set_idmap,
false,
},
{
(ndr_print_function_t) ndr_print_winbind_getuserdomgroups,
false,
},
- {
- "winbind_dual_set_mapping",
- sizeof(struct winbind_dual_set_mapping),
- (ndr_push_flags_fn_t) ndr_push_winbind_dual_set_mapping,
- (ndr_pull_flags_fn_t) ndr_pull_winbind_dual_set_mapping,
- (ndr_print_function_t) ndr_print_winbind_dual_set_mapping,
- false,
- },
- {
- "winbind_dual_set_hwm",
- sizeof(struct winbind_dual_set_hwm),
- (ndr_push_flags_fn_t) ndr_push_winbind_dual_set_hwm,
- (ndr_pull_flags_fn_t) ndr_pull_winbind_dual_set_hwm,
- (ndr_print_function_t) ndr_print_winbind_dual_set_hwm,
- false,
- },
{
"winbind_dual_userinfo",
sizeof(struct winbind_dual_userinfo),
NDR_WINBIND_PROTOCOL_VERSION
},
.helpstring = NDR_WINBIND_PROTOCOL_HELPSTRING,
- .num_calls = 46,
+ .num_calls = 41,
.calls = winbind_protocol_calls,
.endpoints = &winbind_protocol_endpoints,
.authservices = &winbind_protocol_authservices
#define NDR_WINBIND_GET_IDMAP (0x18)
-#define NDR_WINBIND_ALLOCATE_UID (0x19)
+#define NDR_WINBIND_SET_IDMAP (0x19)
-#define NDR_WINBIND_ALLOCATE_GID (0x1a)
+#define NDR_WINBIND_CHECK_MACHCC (0x1a)
-#define NDR_WINBIND_SET_MAPPING (0x1b)
+#define NDR_WINBIND_INFO_FIXNAME (0x1b)
-#define NDR_WINBIND_SET_HWM (0x1c)
+#define NDR_WINBIND_DOMAIN_NAME (0x1c)
-#define NDR_WINBIND_CHECK_MACHCC (0x1d)
+#define NDR_WINBIND_GET_DOMAIN_INFO (0x1d)
-#define NDR_WINBIND_INFO_FIXNAME (0x1e)
+#define NDR_WINBIND_GET_DC_INFO (0x1e)
-#define NDR_WINBIND_DOMAIN_NAME (0x1f)
+#define NDR_WINBIND_SHOW_SEQUENCE (0x1f)
-#define NDR_WINBIND_GET_DOMAIN_INFO (0x20)
+#define NDR_WINBIND_WINS_BYIP (0x20)
-#define NDR_WINBIND_GET_DC_INFO (0x21)
+#define NDR_WINBIND_WINS_BYNAME (0x21)
-#define NDR_WINBIND_SHOW_SEQUENCE (0x22)
+#define NDR_WINBIND_GETGRLIST (0x22)
-#define NDR_WINBIND_WINS_BYIP (0x23)
+#define NDR_WINBIND_NETBIOS_NAME (0x23)
-#define NDR_WINBIND_WINS_BYNAME (0x24)
+#define NDR_WINBIND_GETUSERSIDS (0x24)
-#define NDR_WINBIND_GETGRLIST (0x25)
+#define NDR_WINBIND_GETUSERDOMGROUPS (0x25)
-#define NDR_WINBIND_NETBIOS_NAME (0x26)
+#define NDR_WINBIND_DUAL_USERINFO (0x26)
-#define NDR_WINBIND_GETUSERSIDS (0x27)
+#define NDR_WINBIND_DUAL_GETSIDALIASES (0x27)
-#define NDR_WINBIND_GETUSERDOMGROUPS (0x28)
+#define NDR_WINBIND_CCACHE_NTLMAUTH (0x28)
-#define NDR_WINBIND_DUAL_SET_MAPPING (0x29)
-
-#define NDR_WINBIND_DUAL_SET_HWM (0x2a)
-
-#define NDR_WINBIND_DUAL_USERINFO (0x2b)
-
-#define NDR_WINBIND_DUAL_GETSIDALIASES (0x2c)
-
-#define NDR_WINBIND_CCACHE_NTLMAUTH (0x2d)
-
-#define NDR_WINBIND_PROTOCOL_CALL_COUNT (46)
+#define NDR_WINBIND_PROTOCOL_CALL_COUNT (41)
enum ndr_err_code ndr_push_winbind_status(struct ndr_push *ndr, int ndr_flags, enum winbind_status r);
enum ndr_err_code ndr_pull_winbind_status(struct ndr_pull *ndr, int ndr_flags, enum winbind_status *r);
void ndr_print_winbind_status(struct ndr_print *ndr, const char *name, enum winbind_status r);
void ndr_print_winbind_get_idmap_level(struct ndr_print *ndr, const char *name, enum winbind_get_idmap_level r);
void ndr_print_winbind_get_idmap_req(struct ndr_print *ndr, const char *name, const union winbind_get_idmap_req *r);
void ndr_print_winbind_get_idmap_rep(struct ndr_print *ndr, const char *name, const union winbind_get_idmap_rep *r);
+void ndr_print_winbind_set_idmap_level(struct ndr_print *ndr, const char *name, enum winbind_set_idmap_level r);
+void ndr_print_winbind_set_idmap_req(struct ndr_print *ndr, const char *name, const union winbind_set_idmap_req *r);
+void ndr_print_winbind_set_idmap_rep(struct ndr_print *ndr, const char *name, const union winbind_set_idmap_rep *r);
void ndr_print_STRUCT_winbind_domain_info_compat(struct ndr_print *ndr, const char *name, const struct winbind_domain_info_compat *r);
void ndr_print_winbind_domain_info_level(struct ndr_print *ndr, const char *name, enum winbind_domain_info_level r);
void ndr_print_winbind_domain_info(struct ndr_print *ndr, const char *name, const union winbind_domain_info *r);
void ndr_print_winbind_lookup_name(struct ndr_print *ndr, const char *name, int flags, const struct winbind_lookup_name *r);
void ndr_print_winbind_lookup_rids(struct ndr_print *ndr, const char *name, int flags, const struct winbind_lookup_rids *r);
void ndr_print_winbind_get_idmap(struct ndr_print *ndr, const char *name, int flags, const struct winbind_get_idmap *r);
-void ndr_print_winbind_allocate_uid(struct ndr_print *ndr, const char *name, int flags, const struct winbind_allocate_uid *r);
-void ndr_print_winbind_allocate_gid(struct ndr_print *ndr, const char *name, int flags, const struct winbind_allocate_gid *r);
-void ndr_print_winbind_set_mapping(struct ndr_print *ndr, const char *name, int flags, const struct winbind_set_mapping *r);
-void ndr_print_winbind_set_hwm(struct ndr_print *ndr, const char *name, int flags, const struct winbind_set_hwm *r);
+void ndr_print_winbind_set_idmap(struct ndr_print *ndr, const char *name, int flags, const struct winbind_set_idmap *r);
void ndr_print_winbind_check_machcc(struct ndr_print *ndr, const char *name, int flags, const struct winbind_check_machcc *r);
void ndr_print_winbind_info_fixname(struct ndr_print *ndr, const char *name, int flags, const struct winbind_info_fixname *r);
void ndr_print_winbind_domain_name(struct ndr_print *ndr, const char *name, int flags, const struct winbind_domain_name *r);
void ndr_print_winbind_netbios_name(struct ndr_print *ndr, const char *name, int flags, const struct winbind_netbios_name *r);
void ndr_print_winbind_getusersids(struct ndr_print *ndr, const char *name, int flags, const struct winbind_getusersids *r);
void ndr_print_winbind_getuserdomgroups(struct ndr_print *ndr, const char *name, int flags, const struct winbind_getuserdomgroups *r);
-void ndr_print_winbind_dual_set_mapping(struct ndr_print *ndr, const char *name, int flags, const struct winbind_dual_set_mapping *r);
-void ndr_print_winbind_dual_set_hwm(struct ndr_print *ndr, const char *name, int flags, const struct winbind_dual_set_hwm *r);
void ndr_print_winbind_dual_userinfo(struct ndr_print *ndr, const char *name, int flags, const struct winbind_dual_userinfo *r);
void ndr_print_winbind_dual_getsidaliases(struct ndr_print *ndr, const char *name, int flags, const struct winbind_dual_getsidaliases *r);
void ndr_print_winbind_ccache_ntlmauth(struct ndr_print *ndr, const char *name, int flags, const struct winbind_ccache_ntlmauth *r);