ndr->depth--;
}
+static enum ndr_err_code ndr_push_winbind_get_idmap_level(struct ndr_push *ndr, int ndr_flags, enum winbind_get_idmap_level r)
+{
+ NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r));
+ return NDR_ERR_SUCCESS;
+}
+
+static enum ndr_err_code ndr_pull_winbind_get_idmap_level(struct ndr_pull *ndr, int ndr_flags, enum winbind_get_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_get_idmap_level(struct ndr_print *ndr, const char *name, enum winbind_get_idmap_level r)
+{
+ const char *val = NULL;
+
+ switch (r) {
+ case WINBIND_IDMAP_LEVEL_SID_TO_UID: val = "WINBIND_IDMAP_LEVEL_SID_TO_UID"; break;
+ case WINBIND_IDMAP_LEVEL_SID_TO_GID: val = "WINBIND_IDMAP_LEVEL_SID_TO_GID"; break;
+ case WINBIND_IDMAP_LEVEL_UID_TO_SID: val = "WINBIND_IDMAP_LEVEL_UID_TO_SID"; break;
+ case WINBIND_IDMAP_LEVEL_GID_TO_SID: val = "WINBIND_IDMAP_LEVEL_GID_TO_SID"; break;
+ }
+ ndr_print_enum(ndr, name, "ENUM", val, r);
+}
+
+static enum ndr_err_code ndr_push_winbind_get_idmap_req(struct ndr_push *ndr, int ndr_flags, const union winbind_get_idmap_req *r)
+{
+ if (ndr_flags & NDR_SCALARS) {
+ int level = ndr_push_get_switch_value(ndr, r);
+ NDR_CHECK(ndr_push_winbind_get_idmap_level(ndr, NDR_SCALARS, level));
+ switch (level) {
+ case WINBIND_IDMAP_LEVEL_SID_TO_UID:
+ NDR_CHECK(ndr_push_unique_ptr(ndr, r->sid));
+ break;
+
+ case WINBIND_IDMAP_LEVEL_SID_TO_GID:
+ NDR_CHECK(ndr_push_unique_ptr(ndr, r->sid));
+ break;
+
+ case WINBIND_IDMAP_LEVEL_UID_TO_SID:
+ NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->uid));
+ break;
+
+ case WINBIND_IDMAP_LEVEL_GID_TO_SID:
+ NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->gid));
+ 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_IDMAP_LEVEL_SID_TO_UID:
+ if (r->sid) {
+ NDR_CHECK(ndr_push_dom_sid(ndr, NDR_SCALARS|NDR_BUFFERS, r->sid));
+ }
+ break;
+
+ case WINBIND_IDMAP_LEVEL_SID_TO_GID:
+ if (r->sid) {
+ NDR_CHECK(ndr_push_dom_sid(ndr, NDR_SCALARS|NDR_BUFFERS, r->sid));
+ }
+ break;
+
+ case WINBIND_IDMAP_LEVEL_UID_TO_SID:
+ break;
+
+ case WINBIND_IDMAP_LEVEL_GID_TO_SID:
+ 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_get_idmap_req(struct ndr_pull *ndr, int ndr_flags, union winbind_get_idmap_req *r)
+{
+ int level;
+ uint32_t _level;
+ TALLOC_CTX *_mem_save_sid_0;
+ 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_IDMAP_LEVEL_SID_TO_UID: {
+ uint32_t _ptr_sid;
+ NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_sid));
+ if (_ptr_sid) {
+ NDR_PULL_ALLOC(ndr, r->sid);
+ } else {
+ r->sid = NULL;
+ }
+ break; }
+
+ case WINBIND_IDMAP_LEVEL_SID_TO_GID: {
+ uint32_t _ptr_sid;
+ NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_sid));
+ if (_ptr_sid) {
+ NDR_PULL_ALLOC(ndr, r->sid);
+ } else {
+ r->sid = NULL;
+ }
+ break; }
+
+ case WINBIND_IDMAP_LEVEL_UID_TO_SID: {
+ NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->uid));
+ break; }
+
+ case WINBIND_IDMAP_LEVEL_GID_TO_SID: {
+ NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->gid));
+ 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_IDMAP_LEVEL_SID_TO_UID:
+ if (r->sid) {
+ _mem_save_sid_0 = NDR_PULL_GET_MEM_CTX(ndr);
+ NDR_PULL_SET_MEM_CTX(ndr, r->sid, 0);
+ NDR_CHECK(ndr_pull_dom_sid(ndr, NDR_SCALARS|NDR_BUFFERS, r->sid));
+ NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sid_0, 0);
+ }
+ break;
+
+ case WINBIND_IDMAP_LEVEL_SID_TO_GID:
+ if (r->sid) {
+ _mem_save_sid_0 = NDR_PULL_GET_MEM_CTX(ndr);
+ NDR_PULL_SET_MEM_CTX(ndr, r->sid, 0);
+ NDR_CHECK(ndr_pull_dom_sid(ndr, NDR_SCALARS|NDR_BUFFERS, r->sid));
+ NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sid_0, 0);
+ }
+ break;
+
+ case WINBIND_IDMAP_LEVEL_UID_TO_SID:
+ break;
+
+ case WINBIND_IDMAP_LEVEL_GID_TO_SID:
+ 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_get_idmap_req(struct ndr_print *ndr, const char *name, const union winbind_get_idmap_req *r)
+{
+ int level;
+ level = ndr_print_get_switch_value(ndr, r);
+ ndr_print_union(ndr, name, level, "winbind_get_idmap_req");
+ switch (level) {
+ case WINBIND_IDMAP_LEVEL_SID_TO_UID:
+ ndr_print_ptr(ndr, "sid", r->sid);
+ ndr->depth++;
+ if (r->sid) {
+ ndr_print_dom_sid(ndr, "sid", r->sid);
+ }
+ ndr->depth--;
+ break;
+
+ case WINBIND_IDMAP_LEVEL_SID_TO_GID:
+ ndr_print_ptr(ndr, "sid", r->sid);
+ ndr->depth++;
+ if (r->sid) {
+ ndr_print_dom_sid(ndr, "sid", r->sid);
+ }
+ ndr->depth--;
+ break;
+
+ case WINBIND_IDMAP_LEVEL_UID_TO_SID:
+ ndr_print_hyper(ndr, "uid", r->uid);
+ break;
+
+ case WINBIND_IDMAP_LEVEL_GID_TO_SID:
+ ndr_print_hyper(ndr, "gid", r->gid);
+ break;
+
+ default:
+ ndr_print_bad_level(ndr, name, level);
+ }
+}
+
+static enum ndr_err_code ndr_push_winbind_get_idmap_rep(struct ndr_push *ndr, int ndr_flags, const union winbind_get_idmap_rep *r)
+{
+ if (ndr_flags & NDR_SCALARS) {
+ int level = ndr_push_get_switch_value(ndr, r);
+ NDR_CHECK(ndr_push_winbind_get_idmap_level(ndr, NDR_SCALARS, level));
+ switch (level) {
+ case WINBIND_IDMAP_LEVEL_SID_TO_UID:
+ NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->uid));
+ break;
+
+ case WINBIND_IDMAP_LEVEL_SID_TO_GID:
+ NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->gid));
+ break;
+
+ case WINBIND_IDMAP_LEVEL_UID_TO_SID:
+ NDR_CHECK(ndr_push_unique_ptr(ndr, r->sid));
+ break;
+
+ case WINBIND_IDMAP_LEVEL_GID_TO_SID:
+ NDR_CHECK(ndr_push_unique_ptr(ndr, r->sid));
+ 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_IDMAP_LEVEL_SID_TO_UID:
+ break;
+
+ case WINBIND_IDMAP_LEVEL_SID_TO_GID:
+ break;
+
+ case WINBIND_IDMAP_LEVEL_UID_TO_SID:
+ if (r->sid) {
+ NDR_CHECK(ndr_push_dom_sid(ndr, NDR_SCALARS|NDR_BUFFERS, r->sid));
+ }
+ break;
+
+ case WINBIND_IDMAP_LEVEL_GID_TO_SID:
+ if (r->sid) {
+ NDR_CHECK(ndr_push_dom_sid(ndr, NDR_SCALARS|NDR_BUFFERS, r->sid));
+ }
+ 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_get_idmap_rep(struct ndr_pull *ndr, int ndr_flags, union winbind_get_idmap_rep *r)
+{
+ int level;
+ uint32_t _level;
+ TALLOC_CTX *_mem_save_sid_0;
+ 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_IDMAP_LEVEL_SID_TO_UID: {
+ NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->uid));
+ break; }
+
+ case WINBIND_IDMAP_LEVEL_SID_TO_GID: {
+ NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->gid));
+ break; }
+
+ case WINBIND_IDMAP_LEVEL_UID_TO_SID: {
+ uint32_t _ptr_sid;
+ NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_sid));
+ if (_ptr_sid) {
+ NDR_PULL_ALLOC(ndr, r->sid);
+ } else {
+ r->sid = NULL;
+ }
+ break; }
+
+ case WINBIND_IDMAP_LEVEL_GID_TO_SID: {
+ uint32_t _ptr_sid;
+ NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_sid));
+ if (_ptr_sid) {
+ NDR_PULL_ALLOC(ndr, r->sid);
+ } else {
+ r->sid = NULL;
+ }
+ 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_IDMAP_LEVEL_SID_TO_UID:
+ break;
+
+ case WINBIND_IDMAP_LEVEL_SID_TO_GID:
+ break;
+
+ case WINBIND_IDMAP_LEVEL_UID_TO_SID:
+ if (r->sid) {
+ _mem_save_sid_0 = NDR_PULL_GET_MEM_CTX(ndr);
+ NDR_PULL_SET_MEM_CTX(ndr, r->sid, 0);
+ NDR_CHECK(ndr_pull_dom_sid(ndr, NDR_SCALARS|NDR_BUFFERS, r->sid));
+ NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sid_0, 0);
+ }
+ break;
+
+ case WINBIND_IDMAP_LEVEL_GID_TO_SID:
+ if (r->sid) {
+ _mem_save_sid_0 = NDR_PULL_GET_MEM_CTX(ndr);
+ NDR_PULL_SET_MEM_CTX(ndr, r->sid, 0);
+ NDR_CHECK(ndr_pull_dom_sid(ndr, NDR_SCALARS|NDR_BUFFERS, r->sid));
+ NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sid_0, 0);
+ }
+ 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_get_idmap_rep(struct ndr_print *ndr, const char *name, const union winbind_get_idmap_rep *r)
+{
+ int level;
+ level = ndr_print_get_switch_value(ndr, r);
+ ndr_print_union(ndr, name, level, "winbind_get_idmap_rep");
+ switch (level) {
+ case WINBIND_IDMAP_LEVEL_SID_TO_UID:
+ ndr_print_hyper(ndr, "uid", r->uid);
+ break;
+
+ case WINBIND_IDMAP_LEVEL_SID_TO_GID:
+ ndr_print_hyper(ndr, "gid", r->gid);
+ break;
+
+ case WINBIND_IDMAP_LEVEL_UID_TO_SID:
+ ndr_print_ptr(ndr, "sid", r->sid);
+ ndr->depth++;
+ if (r->sid) {
+ ndr_print_dom_sid(ndr, "sid", r->sid);
+ }
+ ndr->depth--;
+ break;
+
+ case WINBIND_IDMAP_LEVEL_GID_TO_SID:
+ ndr_print_ptr(ndr, "sid", r->sid);
+ ndr->depth++;
+ if (r->sid) {
+ ndr_print_dom_sid(ndr, "sid", r->sid);
+ }
+ ndr->depth--;
+ 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) {
_PUBLIC_ void ndr_print_winbind_pam_chng_paswd_auth_crap(struct ndr_print *ndr, const char *name, int flags, const struct winbind_pam_chng_paswd_auth_crap *r)
{
- ndr_print_struct(ndr, name, "winbind_pam_chng_paswd_auth_crap");
- ndr->depth++;
- if (flags & NDR_SET_VALUES) {
- ndr->flags |= LIBNDR_PRINT_SET_VALUES;
- }
- if (flags & NDR_IN) {
- ndr_print_struct(ndr, "in", "winbind_pam_chng_paswd_auth_crap");
- ndr->depth++;
- ndr->depth--;
- }
- if (flags & NDR_OUT) {
- ndr_print_struct(ndr, "out", "winbind_pam_chng_paswd_auth_crap");
- ndr->depth++;
- ndr_print_winbind_status(ndr, "result", r->out.result);
- ndr->depth--;
- }
- ndr->depth--;
-}
-
-static enum ndr_err_code ndr_push_winbind_list_users(struct ndr_push *ndr, int flags, const struct winbind_list_users *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_list_users(struct ndr_pull *ndr, int flags, struct winbind_list_users *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_list_users(struct ndr_print *ndr, const char *name, int flags, const struct winbind_list_users *r)
-{
- ndr_print_struct(ndr, name, "winbind_list_users");
- ndr->depth++;
- if (flags & NDR_SET_VALUES) {
- ndr->flags |= LIBNDR_PRINT_SET_VALUES;
- }
- if (flags & NDR_IN) {
- ndr_print_struct(ndr, "in", "winbind_list_users");
- ndr->depth++;
- ndr->depth--;
- }
- if (flags & NDR_OUT) {
- ndr_print_struct(ndr, "out", "winbind_list_users");
- ndr->depth++;
- ndr_print_winbind_status(ndr, "result", r->out.result);
- ndr->depth--;
- }
- ndr->depth--;
-}
-
-static enum ndr_err_code ndr_push_winbind_list_groups(struct ndr_push *ndr, int flags, const struct winbind_list_groups *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_list_groups(struct ndr_pull *ndr, int flags, struct winbind_list_groups *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_list_groups(struct ndr_print *ndr, const char *name, int flags, const struct winbind_list_groups *r)
-{
- ndr_print_struct(ndr, name, "winbind_list_groups");
- ndr->depth++;
- if (flags & NDR_SET_VALUES) {
- ndr->flags |= LIBNDR_PRINT_SET_VALUES;
- }
- if (flags & NDR_IN) {
- ndr_print_struct(ndr, "in", "winbind_list_groups");
- ndr->depth++;
- ndr->depth--;
- }
- if (flags & NDR_OUT) {
- ndr_print_struct(ndr, "out", "winbind_list_groups");
- ndr->depth++;
- ndr_print_winbind_status(ndr, "result", r->out.result);
- ndr->depth--;
- }
- ndr->depth--;
-}
-
-static enum ndr_err_code ndr_push_winbind_list_trustdom(struct ndr_push *ndr, int flags, const struct winbind_list_trustdom *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_list_trustdom(struct ndr_pull *ndr, int flags, struct winbind_list_trustdom *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_list_trustdom(struct ndr_print *ndr, const char *name, int flags, const struct winbind_list_trustdom *r)
-{
- ndr_print_struct(ndr, name, "winbind_list_trustdom");
+ ndr_print_struct(ndr, name, "winbind_pam_chng_paswd_auth_crap");
ndr->depth++;
if (flags & NDR_SET_VALUES) {
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
}
if (flags & NDR_IN) {
- ndr_print_struct(ndr, "in", "winbind_list_trustdom");
+ ndr_print_struct(ndr, "in", "winbind_pam_chng_paswd_auth_crap");
ndr->depth++;
ndr->depth--;
}
if (flags & NDR_OUT) {
- ndr_print_struct(ndr, "out", "winbind_list_trustdom");
+ ndr_print_struct(ndr, "out", "winbind_pam_chng_paswd_auth_crap");
ndr->depth++;
ndr_print_winbind_status(ndr, "result", r->out.result);
ndr->depth--;
ndr->depth--;
}
-static enum ndr_err_code ndr_push_winbind_lookup_sid(struct ndr_push *ndr, int flags, const struct winbind_lookup_sid *r)
+static enum ndr_err_code ndr_push_winbind_list_users(struct ndr_push *ndr, int flags, const struct winbind_list_users *r)
{
if (flags & NDR_IN) {
}
return NDR_ERR_SUCCESS;
}
-static enum ndr_err_code ndr_pull_winbind_lookup_sid(struct ndr_pull *ndr, int flags, struct winbind_lookup_sid *r)
+static enum ndr_err_code ndr_pull_winbind_list_users(struct ndr_pull *ndr, int flags, struct winbind_list_users *r)
{
if (flags & NDR_IN) {
}
return NDR_ERR_SUCCESS;
}
-_PUBLIC_ void ndr_print_winbind_lookup_sid(struct ndr_print *ndr, const char *name, int flags, const struct winbind_lookup_sid *r)
+_PUBLIC_ void ndr_print_winbind_list_users(struct ndr_print *ndr, const char *name, int flags, const struct winbind_list_users *r)
{
- ndr_print_struct(ndr, name, "winbind_lookup_sid");
+ ndr_print_struct(ndr, name, "winbind_list_users");
ndr->depth++;
if (flags & NDR_SET_VALUES) {
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
}
if (flags & NDR_IN) {
- ndr_print_struct(ndr, "in", "winbind_lookup_sid");
+ ndr_print_struct(ndr, "in", "winbind_list_users");
ndr->depth++;
ndr->depth--;
}
if (flags & NDR_OUT) {
- ndr_print_struct(ndr, "out", "winbind_lookup_sid");
+ ndr_print_struct(ndr, "out", "winbind_list_users");
ndr->depth++;
ndr_print_winbind_status(ndr, "result", r->out.result);
ndr->depth--;
ndr->depth--;
}
-static enum ndr_err_code ndr_push_winbind_lookup_name(struct ndr_push *ndr, int flags, const struct winbind_lookup_name *r)
+static enum ndr_err_code ndr_push_winbind_list_groups(struct ndr_push *ndr, int flags, const struct winbind_list_groups *r)
{
if (flags & NDR_IN) {
}
return NDR_ERR_SUCCESS;
}
-static enum ndr_err_code ndr_pull_winbind_lookup_name(struct ndr_pull *ndr, int flags, struct winbind_lookup_name *r)
+static enum ndr_err_code ndr_pull_winbind_list_groups(struct ndr_pull *ndr, int flags, struct winbind_list_groups *r)
{
if (flags & NDR_IN) {
}
return NDR_ERR_SUCCESS;
}
-_PUBLIC_ void ndr_print_winbind_lookup_name(struct ndr_print *ndr, const char *name, int flags, const struct winbind_lookup_name *r)
+_PUBLIC_ void ndr_print_winbind_list_groups(struct ndr_print *ndr, const char *name, int flags, const struct winbind_list_groups *r)
{
- ndr_print_struct(ndr, name, "winbind_lookup_name");
+ ndr_print_struct(ndr, name, "winbind_list_groups");
ndr->depth++;
if (flags & NDR_SET_VALUES) {
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
}
if (flags & NDR_IN) {
- ndr_print_struct(ndr, "in", "winbind_lookup_name");
+ ndr_print_struct(ndr, "in", "winbind_list_groups");
ndr->depth++;
ndr->depth--;
}
if (flags & NDR_OUT) {
- ndr_print_struct(ndr, "out", "winbind_lookup_name");
+ ndr_print_struct(ndr, "out", "winbind_list_groups");
ndr->depth++;
ndr_print_winbind_status(ndr, "result", r->out.result);
ndr->depth--;
ndr->depth--;
}
-static enum ndr_err_code ndr_push_winbind_lookup_rids(struct ndr_push *ndr, int flags, const struct winbind_lookup_rids *r)
+static enum ndr_err_code ndr_push_winbind_list_trustdom(struct ndr_push *ndr, int flags, const struct winbind_list_trustdom *r)
{
if (flags & NDR_IN) {
}
return NDR_ERR_SUCCESS;
}
-static enum ndr_err_code ndr_pull_winbind_lookup_rids(struct ndr_pull *ndr, int flags, struct winbind_lookup_rids *r)
+static enum ndr_err_code ndr_pull_winbind_list_trustdom(struct ndr_pull *ndr, int flags, struct winbind_list_trustdom *r)
{
if (flags & NDR_IN) {
}
return NDR_ERR_SUCCESS;
}
-_PUBLIC_ void ndr_print_winbind_lookup_rids(struct ndr_print *ndr, const char *name, int flags, const struct winbind_lookup_rids *r)
+_PUBLIC_ void ndr_print_winbind_list_trustdom(struct ndr_print *ndr, const char *name, int flags, const struct winbind_list_trustdom *r)
{
- ndr_print_struct(ndr, name, "winbind_lookup_rids");
+ ndr_print_struct(ndr, name, "winbind_list_trustdom");
ndr->depth++;
if (flags & NDR_SET_VALUES) {
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
}
if (flags & NDR_IN) {
- ndr_print_struct(ndr, "in", "winbind_lookup_rids");
+ ndr_print_struct(ndr, "in", "winbind_list_trustdom");
ndr->depth++;
ndr->depth--;
}
if (flags & NDR_OUT) {
- ndr_print_struct(ndr, "out", "winbind_lookup_rids");
+ ndr_print_struct(ndr, "out", "winbind_list_trustdom");
ndr->depth++;
ndr_print_winbind_status(ndr, "result", r->out.result);
ndr->depth--;
ndr->depth--;
}
-static enum ndr_err_code ndr_push_winbind_sid_to_uid(struct ndr_push *ndr, int flags, const struct winbind_sid_to_uid *r)
+static enum ndr_err_code ndr_push_winbind_lookup_sid(struct ndr_push *ndr, int flags, const struct winbind_lookup_sid *r)
{
if (flags & NDR_IN) {
}
return NDR_ERR_SUCCESS;
}
-static enum ndr_err_code ndr_pull_winbind_sid_to_uid(struct ndr_pull *ndr, int flags, struct winbind_sid_to_uid *r)
+static enum ndr_err_code ndr_pull_winbind_lookup_sid(struct ndr_pull *ndr, int flags, struct winbind_lookup_sid *r)
{
if (flags & NDR_IN) {
}
return NDR_ERR_SUCCESS;
}
-_PUBLIC_ void ndr_print_winbind_sid_to_uid(struct ndr_print *ndr, const char *name, int flags, const struct winbind_sid_to_uid *r)
+_PUBLIC_ void ndr_print_winbind_lookup_sid(struct ndr_print *ndr, const char *name, int flags, const struct winbind_lookup_sid *r)
{
- ndr_print_struct(ndr, name, "winbind_sid_to_uid");
+ ndr_print_struct(ndr, name, "winbind_lookup_sid");
ndr->depth++;
if (flags & NDR_SET_VALUES) {
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
}
if (flags & NDR_IN) {
- ndr_print_struct(ndr, "in", "winbind_sid_to_uid");
+ ndr_print_struct(ndr, "in", "winbind_lookup_sid");
ndr->depth++;
ndr->depth--;
}
if (flags & NDR_OUT) {
- ndr_print_struct(ndr, "out", "winbind_sid_to_uid");
+ ndr_print_struct(ndr, "out", "winbind_lookup_sid");
ndr->depth++;
ndr_print_winbind_status(ndr, "result", r->out.result);
ndr->depth--;
ndr->depth--;
}
-static enum ndr_err_code ndr_push_winbind_sid_to_gid(struct ndr_push *ndr, int flags, const struct winbind_sid_to_gid *r)
+static enum ndr_err_code ndr_push_winbind_lookup_name(struct ndr_push *ndr, int flags, const struct winbind_lookup_name *r)
{
if (flags & NDR_IN) {
}
return NDR_ERR_SUCCESS;
}
-static enum ndr_err_code ndr_pull_winbind_sid_to_gid(struct ndr_pull *ndr, int flags, struct winbind_sid_to_gid *r)
+static enum ndr_err_code ndr_pull_winbind_lookup_name(struct ndr_pull *ndr, int flags, struct winbind_lookup_name *r)
{
if (flags & NDR_IN) {
}
return NDR_ERR_SUCCESS;
}
-_PUBLIC_ void ndr_print_winbind_sid_to_gid(struct ndr_print *ndr, const char *name, int flags, const struct winbind_sid_to_gid *r)
+_PUBLIC_ void ndr_print_winbind_lookup_name(struct ndr_print *ndr, const char *name, int flags, const struct winbind_lookup_name *r)
{
- ndr_print_struct(ndr, name, "winbind_sid_to_gid");
+ ndr_print_struct(ndr, name, "winbind_lookup_name");
ndr->depth++;
if (flags & NDR_SET_VALUES) {
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
}
if (flags & NDR_IN) {
- ndr_print_struct(ndr, "in", "winbind_sid_to_gid");
+ ndr_print_struct(ndr, "in", "winbind_lookup_name");
ndr->depth++;
ndr->depth--;
}
if (flags & NDR_OUT) {
- ndr_print_struct(ndr, "out", "winbind_sid_to_gid");
+ ndr_print_struct(ndr, "out", "winbind_lookup_name");
ndr->depth++;
ndr_print_winbind_status(ndr, "result", r->out.result);
ndr->depth--;
ndr->depth--;
}
-static enum ndr_err_code ndr_push_winbind_uid_to_sid(struct ndr_push *ndr, int flags, const struct winbind_uid_to_sid *r)
+static enum ndr_err_code ndr_push_winbind_lookup_rids(struct ndr_push *ndr, int flags, const struct winbind_lookup_rids *r)
{
if (flags & NDR_IN) {
}
return NDR_ERR_SUCCESS;
}
-static enum ndr_err_code ndr_pull_winbind_uid_to_sid(struct ndr_pull *ndr, int flags, struct winbind_uid_to_sid *r)
+static enum ndr_err_code ndr_pull_winbind_lookup_rids(struct ndr_pull *ndr, int flags, struct winbind_lookup_rids *r)
{
if (flags & NDR_IN) {
}
return NDR_ERR_SUCCESS;
}
-_PUBLIC_ void ndr_print_winbind_uid_to_sid(struct ndr_print *ndr, const char *name, int flags, const struct winbind_uid_to_sid *r)
+_PUBLIC_ void ndr_print_winbind_lookup_rids(struct ndr_print *ndr, const char *name, int flags, const struct winbind_lookup_rids *r)
{
- ndr_print_struct(ndr, name, "winbind_uid_to_sid");
+ ndr_print_struct(ndr, name, "winbind_lookup_rids");
ndr->depth++;
if (flags & NDR_SET_VALUES) {
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
}
if (flags & NDR_IN) {
- ndr_print_struct(ndr, "in", "winbind_uid_to_sid");
+ ndr_print_struct(ndr, "in", "winbind_lookup_rids");
ndr->depth++;
ndr->depth--;
}
if (flags & NDR_OUT) {
- ndr_print_struct(ndr, "out", "winbind_uid_to_sid");
+ ndr_print_struct(ndr, "out", "winbind_lookup_rids");
ndr->depth++;
ndr_print_winbind_status(ndr, "result", r->out.result);
ndr->depth--;
ndr->depth--;
}
-static enum ndr_err_code ndr_push_winbind_gid_to_sid(struct ndr_push *ndr, int flags, const struct winbind_gid_to_sid *r)
+static enum ndr_err_code ndr_push_winbind_get_idmap(struct ndr_push *ndr, int flags, const struct winbind_get_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_get_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_get_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_get_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_get_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_gid_to_sid(struct ndr_pull *ndr, int flags, struct winbind_gid_to_sid *r)
+static enum ndr_err_code ndr_pull_winbind_get_idmap(struct ndr_pull *ndr, int flags, struct winbind_get_idmap *r)
{
+ TALLOC_CTX *_mem_save_level_0;
+ TALLOC_CTX *_mem_save_rep_0;
if (flags & NDR_IN) {
+ ZERO_STRUCT(r->out);
+
+ 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_get_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_get_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_get_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_get_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_gid_to_sid(struct ndr_print *ndr, const char *name, int flags, const struct winbind_gid_to_sid *r)
+_PUBLIC_ void ndr_print_winbind_get_idmap(struct ndr_print *ndr, const char *name, int flags, const struct winbind_get_idmap *r)
{
- ndr_print_struct(ndr, name, "winbind_gid_to_sid");
+ ndr_print_struct(ndr, name, "winbind_get_idmap");
ndr->depth++;
if (flags & NDR_SET_VALUES) {
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
}
if (flags & NDR_IN) {
- ndr_print_struct(ndr, "in", "winbind_gid_to_sid");
+ ndr_print_struct(ndr, "in", "winbind_get_idmap");
+ ndr->depth++;
+ ndr_print_ptr(ndr, "level", r->in.level);
ndr->depth++;
+ ndr_print_winbind_get_idmap_level(ndr, "level", *r->in.level);
+ ndr->depth--;
+ ndr_print_set_switch_value(ndr, &r->in.req, *r->in.level);
+ ndr_print_winbind_get_idmap_req(ndr, "req", &r->in.req);
ndr->depth--;
}
if (flags & NDR_OUT) {
- ndr_print_struct(ndr, "out", "winbind_gid_to_sid");
+ ndr_print_struct(ndr, "out", "winbind_get_idmap");
+ ndr->depth++;
+ ndr_print_ptr(ndr, "level", r->out.level);
ndr->depth++;
+ ndr_print_winbind_get_idmap_level(ndr, "level", *r->out.level);
+ ndr->depth--;
+ 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_get_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_sid2gid(struct ndr_push *ndr, int flags, const struct winbind_dual_sid2gid *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_sid2gid(struct ndr_pull *ndr, int flags, struct winbind_dual_sid2gid *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_sid2gid(struct ndr_print *ndr, const char *name, int flags, const struct winbind_dual_sid2gid *r)
-{
- ndr_print_struct(ndr, name, "winbind_dual_sid2gid");
- ndr->depth++;
- if (flags & NDR_SET_VALUES) {
- ndr->flags |= LIBNDR_PRINT_SET_VALUES;
- }
- if (flags & NDR_IN) {
- ndr_print_struct(ndr, "in", "winbind_dual_sid2gid");
- ndr->depth++;
- ndr->depth--;
- }
- if (flags & NDR_OUT) {
- ndr_print_struct(ndr, "out", "winbind_dual_sid2gid");
- ndr->depth++;
- ndr_print_winbind_status(ndr, "result", r->out.result);
- ndr->depth--;
- }
- ndr->depth--;
-}
-
-static enum ndr_err_code ndr_push_winbind_dual_sid2uid(struct ndr_push *ndr, int flags, const struct winbind_dual_sid2uid *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_sid2uid(struct ndr_pull *ndr, int flags, struct winbind_dual_sid2uid *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_sid2uid(struct ndr_print *ndr, const char *name, int flags, const struct winbind_dual_sid2uid *r)
-{
- ndr_print_struct(ndr, name, "winbind_dual_sid2uid");
- ndr->depth++;
- if (flags & NDR_SET_VALUES) {
- ndr->flags |= LIBNDR_PRINT_SET_VALUES;
- }
- if (flags & NDR_IN) {
- ndr_print_struct(ndr, "in", "winbind_dual_sid2uid");
- ndr->depth++;
- ndr->depth--;
- }
- if (flags & NDR_OUT) {
- ndr_print_struct(ndr, "out", "winbind_dual_sid2uid");
- ndr->depth++;
- ndr_print_winbind_status(ndr, "result", r->out.result);
- ndr->depth--;
- }
- ndr->depth--;
-}
-
-static enum ndr_err_code ndr_push_winbind_dual_uid2sid(struct ndr_push *ndr, int flags, const struct winbind_dual_uid2sid *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_uid2sid(struct ndr_pull *ndr, int flags, struct winbind_dual_uid2sid *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_uid2sid(struct ndr_print *ndr, const char *name, int flags, const struct winbind_dual_uid2sid *r)
-{
- ndr_print_struct(ndr, name, "winbind_dual_uid2sid");
- ndr->depth++;
- if (flags & NDR_SET_VALUES) {
- ndr->flags |= LIBNDR_PRINT_SET_VALUES;
- }
- if (flags & NDR_IN) {
- ndr_print_struct(ndr, "in", "winbind_dual_uid2sid");
- ndr->depth++;
- ndr->depth--;
- }
- if (flags & NDR_OUT) {
- ndr_print_struct(ndr, "out", "winbind_dual_uid2sid");
- ndr->depth++;
- ndr_print_winbind_status(ndr, "result", r->out.result);
- ndr->depth--;
- }
- ndr->depth--;
-}
-
-static enum ndr_err_code ndr_push_winbind_dual_gid2sid(struct ndr_push *ndr, int flags, const struct winbind_dual_gid2sid *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_gid2sid(struct ndr_pull *ndr, int flags, struct winbind_dual_gid2sid *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_gid2sid(struct ndr_print *ndr, const char *name, int flags, const struct winbind_dual_gid2sid *r)
-{
- ndr_print_struct(ndr, name, "winbind_dual_gid2sid");
- ndr->depth++;
- if (flags & NDR_SET_VALUES) {
- ndr->flags |= LIBNDR_PRINT_SET_VALUES;
- }
- if (flags & NDR_IN) {
- ndr_print_struct(ndr, "in", "winbind_dual_gid2sid");
- ndr->depth++;
- ndr->depth--;
- }
- if (flags & NDR_OUT) {
- ndr_print_struct(ndr, "out", "winbind_dual_gid2sid");
- 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) {
false,
},
{
- "winbind_sid_to_uid",
- sizeof(struct winbind_sid_to_uid),
- (ndr_push_flags_fn_t) ndr_push_winbind_sid_to_uid,
- (ndr_pull_flags_fn_t) ndr_pull_winbind_sid_to_uid,
- (ndr_print_function_t) ndr_print_winbind_sid_to_uid,
- false,
- },
- {
- "winbind_sid_to_gid",
- sizeof(struct winbind_sid_to_gid),
- (ndr_push_flags_fn_t) ndr_push_winbind_sid_to_gid,
- (ndr_pull_flags_fn_t) ndr_pull_winbind_sid_to_gid,
- (ndr_print_function_t) ndr_print_winbind_sid_to_gid,
- false,
- },
- {
- "winbind_uid_to_sid",
- sizeof(struct winbind_uid_to_sid),
- (ndr_push_flags_fn_t) ndr_push_winbind_uid_to_sid,
- (ndr_pull_flags_fn_t) ndr_pull_winbind_uid_to_sid,
- (ndr_print_function_t) ndr_print_winbind_uid_to_sid,
- false,
- },
- {
- "winbind_gid_to_sid",
- sizeof(struct winbind_gid_to_sid),
- (ndr_push_flags_fn_t) ndr_push_winbind_gid_to_sid,
- (ndr_pull_flags_fn_t) ndr_pull_winbind_gid_to_sid,
- (ndr_print_function_t) ndr_print_winbind_gid_to_sid,
+ "winbind_get_idmap",
+ sizeof(struct winbind_get_idmap),
+ (ndr_push_flags_fn_t) ndr_push_winbind_get_idmap,
+ (ndr_pull_flags_fn_t) ndr_pull_winbind_get_idmap,
+ (ndr_print_function_t) ndr_print_winbind_get_idmap,
false,
},
{
(ndr_print_function_t) ndr_print_winbind_getuserdomgroups,
false,
},
- {
- "winbind_dual_sid2gid",
- sizeof(struct winbind_dual_sid2gid),
- (ndr_push_flags_fn_t) ndr_push_winbind_dual_sid2gid,
- (ndr_pull_flags_fn_t) ndr_pull_winbind_dual_sid2gid,
- (ndr_print_function_t) ndr_print_winbind_dual_sid2gid,
- false,
- },
- {
- "winbind_dual_sid2uid",
- sizeof(struct winbind_dual_sid2uid),
- (ndr_push_flags_fn_t) ndr_push_winbind_dual_sid2uid,
- (ndr_pull_flags_fn_t) ndr_pull_winbind_dual_sid2uid,
- (ndr_print_function_t) ndr_print_winbind_dual_sid2uid,
- false,
- },
- {
- "winbind_dual_uid2sid",
- sizeof(struct winbind_dual_uid2sid),
- (ndr_push_flags_fn_t) ndr_push_winbind_dual_uid2sid,
- (ndr_pull_flags_fn_t) ndr_pull_winbind_dual_uid2sid,
- (ndr_print_function_t) ndr_print_winbind_dual_uid2sid,
- false,
- },
- {
- "winbind_dual_gid2sid",
- sizeof(struct winbind_dual_gid2sid),
- (ndr_push_flags_fn_t) ndr_push_winbind_dual_gid2sid,
- (ndr_pull_flags_fn_t) ndr_pull_winbind_dual_gid2sid,
- (ndr_print_function_t) ndr_print_winbind_dual_gid2sid,
- false,
- },
{
"winbind_dual_set_mapping",
sizeof(struct winbind_dual_set_mapping),
NDR_WINBIND_PROTOCOL_VERSION
},
.helpstring = NDR_WINBIND_PROTOCOL_HELPSTRING,
- .num_calls = 53,
+ .num_calls = 46,
.calls = winbind_protocol_calls,
.endpoints = &winbind_protocol_endpoints,
.authservices = &winbind_protocol_authservices