summaryrefslogtreecommitdiff
path: root/source4/librpc/rpc
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-11-15 06:00:21 +0000
committerAndrew Tridgell <tridge@samba.org>2003-11-15 06:00:21 +0000
commitba5a060136145abdfa4915fe0fecc4afe1180627 (patch)
treea63f5c07b979c3ba44a31f53959761f857c3d912 /source4/librpc/rpc
parent78b7118d1aeccc9da490af614d4646a328ac2c46 (diff)
downloadsamba-ba5a060136145abdfa4915fe0fecc4afe1180627.tar.gz
samba-ba5a060136145abdfa4915fe0fecc4afe1180627.tar.bz2
samba-ba5a060136145abdfa4915fe0fecc4afe1180627.zip
added the first couple of calls from samr as IDL
samr_EnumDomains() works nicely (This used to be commit 7c162eaf3bb0195f9a2da05d6acd3c8e620f08d1)
Diffstat (limited to 'source4/librpc/rpc')
-rw-r--r--source4/librpc/rpc/rpc_samr.c956
1 files changed, 956 insertions, 0 deletions
diff --git a/source4/librpc/rpc/rpc_samr.c b/source4/librpc/rpc/rpc_samr.c
new file mode 100644
index 0000000000..d007ebe07f
--- /dev/null
+++ b/source4/librpc/rpc/rpc_samr.c
@@ -0,0 +1,956 @@
+/* dcerpc client calls auto-generated by pidl */
+
+#include "includes.h"
+
+
+NTSTATUS dcerpc_samr_Connect(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_Connect *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_CONNECT, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_Connect,
+ (ndr_pull_fn_t) ndr_pull_samr_Connect,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_Close(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_Close *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_CLOSE, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_Close,
+ (ndr_pull_fn_t) ndr_pull_samr_Close,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_SetSecurity(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_SetSecurity *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_SETSECURITY, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_SetSecurity,
+ (ndr_pull_fn_t) ndr_pull_samr_SetSecurity,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_QuerySecurity(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_QuerySecurity *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_QUERYSECURITY, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_QuerySecurity,
+ (ndr_pull_fn_t) ndr_pull_samr_QuerySecurity,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_Shutdown(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_Shutdown *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_SHUTDOWN, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_Shutdown,
+ (ndr_pull_fn_t) ndr_pull_samr_Shutdown,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_LookupDomain(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_LookupDomain *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_LOOKUPDOMAIN, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_LookupDomain,
+ (ndr_pull_fn_t) ndr_pull_samr_LookupDomain,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_EnumDomains(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_EnumDomains *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_ENUMDOMAINS, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_EnumDomains,
+ (ndr_pull_fn_t) ndr_pull_samr_EnumDomains,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_OPEN_DOMAIN(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_OPEN_DOMAIN *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_OPEN_DOMAIN, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_OPEN_DOMAIN,
+ (ndr_pull_fn_t) ndr_pull_samr_OPEN_DOMAIN,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_QUERY_DOMAIN_INFO(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_QUERY_DOMAIN_INFO *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_QUERY_DOMAIN_INFO, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_QUERY_DOMAIN_INFO,
+ (ndr_pull_fn_t) ndr_pull_samr_QUERY_DOMAIN_INFO,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_SET_DOMAIN_INFO(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_SET_DOMAIN_INFO *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_SET_DOMAIN_INFO, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_SET_DOMAIN_INFO,
+ (ndr_pull_fn_t) ndr_pull_samr_SET_DOMAIN_INFO,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_CREATE_DOM_GROUP(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_CREATE_DOM_GROUP *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_CREATE_DOM_GROUP, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_CREATE_DOM_GROUP,
+ (ndr_pull_fn_t) ndr_pull_samr_CREATE_DOM_GROUP,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_ENUM_DOM_GROUPS(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_ENUM_DOM_GROUPS *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_ENUM_DOM_GROUPS, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_ENUM_DOM_GROUPS,
+ (ndr_pull_fn_t) ndr_pull_samr_ENUM_DOM_GROUPS,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_CREATE_USER_IN_DOMAIN(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_CREATE_USER_IN_DOMAIN *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_CREATE_USER_IN_DOMAIN, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_CREATE_USER_IN_DOMAIN,
+ (ndr_pull_fn_t) ndr_pull_samr_CREATE_USER_IN_DOMAIN,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_ENUM_DOM_USERS(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_ENUM_DOM_USERS *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_ENUM_DOM_USERS, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_ENUM_DOM_USERS,
+ (ndr_pull_fn_t) ndr_pull_samr_ENUM_DOM_USERS,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_CREATE_DOM_ALIAS(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_CREATE_DOM_ALIAS *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_CREATE_DOM_ALIAS, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_CREATE_DOM_ALIAS,
+ (ndr_pull_fn_t) ndr_pull_samr_CREATE_DOM_ALIAS,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_ENUM_DOM_ALIASES(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_ENUM_DOM_ALIASES *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_ENUM_DOM_ALIASES, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_ENUM_DOM_ALIASES,
+ (ndr_pull_fn_t) ndr_pull_samr_ENUM_DOM_ALIASES,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_GET_ALIAS_MEMBERSHIP(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_GET_ALIAS_MEMBERSHIP *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_GET_ALIAS_MEMBERSHIP, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_GET_ALIAS_MEMBERSHIP,
+ (ndr_pull_fn_t) ndr_pull_samr_GET_ALIAS_MEMBERSHIP,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_LOOKUP_NAMES(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_LOOKUP_NAMES *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_LOOKUP_NAMES, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_LOOKUP_NAMES,
+ (ndr_pull_fn_t) ndr_pull_samr_LOOKUP_NAMES,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_LOOKUP_RIDS(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_LOOKUP_RIDS *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_LOOKUP_RIDS, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_LOOKUP_RIDS,
+ (ndr_pull_fn_t) ndr_pull_samr_LOOKUP_RIDS,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_OPEN_GROUP(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_OPEN_GROUP *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_OPEN_GROUP, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_OPEN_GROUP,
+ (ndr_pull_fn_t) ndr_pull_samr_OPEN_GROUP,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_QUERY_GROUPINFO(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_QUERY_GROUPINFO *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_QUERY_GROUPINFO, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_QUERY_GROUPINFO,
+ (ndr_pull_fn_t) ndr_pull_samr_QUERY_GROUPINFO,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_SET_GROUPINFO(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_SET_GROUPINFO *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_SET_GROUPINFO, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_SET_GROUPINFO,
+ (ndr_pull_fn_t) ndr_pull_samr_SET_GROUPINFO,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_ADD_GROUPMEM(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_ADD_GROUPMEM *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_ADD_GROUPMEM, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_ADD_GROUPMEM,
+ (ndr_pull_fn_t) ndr_pull_samr_ADD_GROUPMEM,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_DELETE_DOM_GROUP(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_DELETE_DOM_GROUP *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_DELETE_DOM_GROUP, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_DELETE_DOM_GROUP,
+ (ndr_pull_fn_t) ndr_pull_samr_DELETE_DOM_GROUP,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_DEL_GROUPMEM(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_DEL_GROUPMEM *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_DEL_GROUPMEM, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_DEL_GROUPMEM,
+ (ndr_pull_fn_t) ndr_pull_samr_DEL_GROUPMEM,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_QUERY_GROUPMEM(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_QUERY_GROUPMEM *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_QUERY_GROUPMEM, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_QUERY_GROUPMEM,
+ (ndr_pull_fn_t) ndr_pull_samr_QUERY_GROUPMEM,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_SET_MEMBER_ATTRIBUTES_OF_GROUP(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_SET_MEMBER_ATTRIBUTES_OF_GROUP *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_SET_MEMBER_ATTRIBUTES_OF_GROUP, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_SET_MEMBER_ATTRIBUTES_OF_GROUP,
+ (ndr_pull_fn_t) ndr_pull_samr_SET_MEMBER_ATTRIBUTES_OF_GROUP,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_OPEN_ALIAS(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_OPEN_ALIAS *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_OPEN_ALIAS, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_OPEN_ALIAS,
+ (ndr_pull_fn_t) ndr_pull_samr_OPEN_ALIAS,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_QUERY_ALIASINFO(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_QUERY_ALIASINFO *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_QUERY_ALIASINFO, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_QUERY_ALIASINFO,
+ (ndr_pull_fn_t) ndr_pull_samr_QUERY_ALIASINFO,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_SET_ALIASINFO(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_SET_ALIASINFO *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_SET_ALIASINFO, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_SET_ALIASINFO,
+ (ndr_pull_fn_t) ndr_pull_samr_SET_ALIASINFO,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_DELETE_DOM_ALIAS(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_DELETE_DOM_ALIAS *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_DELETE_DOM_ALIAS, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_DELETE_DOM_ALIAS,
+ (ndr_pull_fn_t) ndr_pull_samr_DELETE_DOM_ALIAS,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_ADD_ALIASMEM(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_ADD_ALIASMEM *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_ADD_ALIASMEM, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_ADD_ALIASMEM,
+ (ndr_pull_fn_t) ndr_pull_samr_ADD_ALIASMEM,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_DEL_ALIASMEM(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_DEL_ALIASMEM *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_DEL_ALIASMEM, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_DEL_ALIASMEM,
+ (ndr_pull_fn_t) ndr_pull_samr_DEL_ALIASMEM,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_GET_MEMBERS_IN_ALIAS(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_GET_MEMBERS_IN_ALIAS *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_GET_MEMBERS_IN_ALIAS, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_GET_MEMBERS_IN_ALIAS,
+ (ndr_pull_fn_t) ndr_pull_samr_GET_MEMBERS_IN_ALIAS,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_OPEN_USER(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_OPEN_USER *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_OPEN_USER, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_OPEN_USER,
+ (ndr_pull_fn_t) ndr_pull_samr_OPEN_USER,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_DELETE_DOM_USER(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_DELETE_DOM_USER *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_DELETE_DOM_USER, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_DELETE_DOM_USER,
+ (ndr_pull_fn_t) ndr_pull_samr_DELETE_DOM_USER,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_QUERY_USERINFO(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_QUERY_USERINFO *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_QUERY_USERINFO, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_QUERY_USERINFO,
+ (ndr_pull_fn_t) ndr_pull_samr_QUERY_USERINFO,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_SET_USERINFO(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_SET_USERINFO *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_SET_USERINFO, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_SET_USERINFO,
+ (ndr_pull_fn_t) ndr_pull_samr_SET_USERINFO,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_CHANGE_PASSWORD_USER(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_CHANGE_PASSWORD_USER *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_CHANGE_PASSWORD_USER, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_CHANGE_PASSWORD_USER,
+ (ndr_pull_fn_t) ndr_pull_samr_CHANGE_PASSWORD_USER,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_GET_GROUPS_FOR_USER(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_GET_GROUPS_FOR_USER *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_GET_GROUPS_FOR_USER, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_GET_GROUPS_FOR_USER,
+ (ndr_pull_fn_t) ndr_pull_samr_GET_GROUPS_FOR_USER,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_QUERY_DISPINFO(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_QUERY_DISPINFO *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_QUERY_DISPINFO, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_QUERY_DISPINFO,
+ (ndr_pull_fn_t) ndr_pull_samr_QUERY_DISPINFO,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_GET_DISPLAY_ENUMERATION_INDEX(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_GET_DISPLAY_ENUMERATION_INDEX *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_GET_DISPLAY_ENUMERATION_INDEX, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_GET_DISPLAY_ENUMERATION_INDEX,
+ (ndr_pull_fn_t) ndr_pull_samr_GET_DISPLAY_ENUMERATION_INDEX,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_TEST_PRIVATE_FUNCTIONS_DOMAIN(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_TEST_PRIVATE_FUNCTIONS_DOMAIN *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_TEST_PRIVATE_FUNCTIONS_DOMAIN, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_TEST_PRIVATE_FUNCTIONS_DOMAIN,
+ (ndr_pull_fn_t) ndr_pull_samr_TEST_PRIVATE_FUNCTIONS_DOMAIN,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_TEST_PRIVATE_FUNCTIONS_USER(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_TEST_PRIVATE_FUNCTIONS_USER *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_TEST_PRIVATE_FUNCTIONS_USER, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_TEST_PRIVATE_FUNCTIONS_USER,
+ (ndr_pull_fn_t) ndr_pull_samr_TEST_PRIVATE_FUNCTIONS_USER,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_GET_USRDOM_PWINFO(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_GET_USRDOM_PWINFO *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_GET_USRDOM_PWINFO, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_GET_USRDOM_PWINFO,
+ (ndr_pull_fn_t) ndr_pull_samr_GET_USRDOM_PWINFO,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_REMOVE_MEMBER_FROM_FOREIGN_DOMAIN(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_REMOVE_MEMBER_FROM_FOREIGN_DOMAIN *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_REMOVE_MEMBER_FROM_FOREIGN_DOMAIN, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_REMOVE_MEMBER_FROM_FOREIGN_DOMAIN,
+ (ndr_pull_fn_t) ndr_pull_samr_REMOVE_MEMBER_FROM_FOREIGN_DOMAIN,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_QUERY_INFORMATION_DOMAIN2(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_QUERY_INFORMATION_DOMAIN2 *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_QUERY_INFORMATION_DOMAIN2, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_QUERY_INFORMATION_DOMAIN2,
+ (ndr_pull_fn_t) ndr_pull_samr_QUERY_INFORMATION_DOMAIN2,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_QUERY_INFORMATION_USER2(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_QUERY_INFORMATION_USER2 *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_QUERY_INFORMATION_USER2, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_QUERY_INFORMATION_USER2,
+ (ndr_pull_fn_t) ndr_pull_samr_QUERY_INFORMATION_USER2,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_QUERY_DISPINFO2(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_QUERY_DISPINFO2 *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_QUERY_DISPINFO2, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_QUERY_DISPINFO2,
+ (ndr_pull_fn_t) ndr_pull_samr_QUERY_DISPINFO2,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_GET_DISPLAY_ENUMERATION_INDEX2(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_GET_DISPLAY_ENUMERATION_INDEX2 *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_GET_DISPLAY_ENUMERATION_INDEX2, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_GET_DISPLAY_ENUMERATION_INDEX2,
+ (ndr_pull_fn_t) ndr_pull_samr_GET_DISPLAY_ENUMERATION_INDEX2,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_CREATE_USER2_IN_DOMAIN(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_CREATE_USER2_IN_DOMAIN *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_CREATE_USER2_IN_DOMAIN, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_CREATE_USER2_IN_DOMAIN,
+ (ndr_pull_fn_t) ndr_pull_samr_CREATE_USER2_IN_DOMAIN,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_QUERY_DISPINFO3(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_QUERY_DISPINFO3 *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_QUERY_DISPINFO3, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_QUERY_DISPINFO3,
+ (ndr_pull_fn_t) ndr_pull_samr_QUERY_DISPINFO3,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_ADD_MULTIPLE_MEMBERS_TO_ALIAS(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_ADD_MULTIPLE_MEMBERS_TO_ALIAS *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_ADD_MULTIPLE_MEMBERS_TO_ALIAS, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_ADD_MULTIPLE_MEMBERS_TO_ALIAS,
+ (ndr_pull_fn_t) ndr_pull_samr_ADD_MULTIPLE_MEMBERS_TO_ALIAS,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_REMOVE_MULTIPLE_MEMBERS_FROM_ALIAS(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_REMOVE_MULTIPLE_MEMBERS_FROM_ALIAS *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_REMOVE_MULTIPLE_MEMBERS_FROM_ALIAS, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_REMOVE_MULTIPLE_MEMBERS_FROM_ALIAS,
+ (ndr_pull_fn_t) ndr_pull_samr_REMOVE_MULTIPLE_MEMBERS_FROM_ALIAS,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_OEM_CHANGE_PASSWORD_USER2(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_OEM_CHANGE_PASSWORD_USER2 *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_OEM_CHANGE_PASSWORD_USER2, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_OEM_CHANGE_PASSWORD_USER2,
+ (ndr_pull_fn_t) ndr_pull_samr_OEM_CHANGE_PASSWORD_USER2,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_UNICODE_CHANGE_PASSWORD_USER2(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_UNICODE_CHANGE_PASSWORD_USER2 *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_UNICODE_CHANGE_PASSWORD_USER2, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_UNICODE_CHANGE_PASSWORD_USER2,
+ (ndr_pull_fn_t) ndr_pull_samr_UNICODE_CHANGE_PASSWORD_USER2,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_GET_DOM_PWINFO(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_GET_DOM_PWINFO *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_GET_DOM_PWINFO, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_GET_DOM_PWINFO,
+ (ndr_pull_fn_t) ndr_pull_samr_GET_DOM_PWINFO,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_CONNECT2(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_CONNECT2 *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_CONNECT2, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_CONNECT2,
+ (ndr_pull_fn_t) ndr_pull_samr_CONNECT2,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_SET_USERINFO2(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_SET_USERINFO2 *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_SET_USERINFO2, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_SET_USERINFO2,
+ (ndr_pull_fn_t) ndr_pull_samr_SET_USERINFO2,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_SET_BOOT_KEY_INFORMATION(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_SET_BOOT_KEY_INFORMATION *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_SET_BOOT_KEY_INFORMATION, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_SET_BOOT_KEY_INFORMATION,
+ (ndr_pull_fn_t) ndr_pull_samr_SET_BOOT_KEY_INFORMATION,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_GET_BOOT_KEY_INFORMATION(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_GET_BOOT_KEY_INFORMATION *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_GET_BOOT_KEY_INFORMATION, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_GET_BOOT_KEY_INFORMATION,
+ (ndr_pull_fn_t) ndr_pull_samr_GET_BOOT_KEY_INFORMATION,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_CONNECT3(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_CONNECT3 *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_CONNECT3, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_CONNECT3,
+ (ndr_pull_fn_t) ndr_pull_samr_CONNECT3,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_CONNECT4(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_CONNECT4 *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_CONNECT4, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_CONNECT4,
+ (ndr_pull_fn_t) ndr_pull_samr_CONNECT4,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_UNICODE_CHANGE_PASSWORD_USER3(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_UNICODE_CHANGE_PASSWORD_USER3 *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_UNICODE_CHANGE_PASSWORD_USER3, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_UNICODE_CHANGE_PASSWORD_USER3,
+ (ndr_pull_fn_t) ndr_pull_samr_UNICODE_CHANGE_PASSWORD_USER3,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_CONNECT5(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_CONNECT5 *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_CONNECT5, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_CONNECT5,
+ (ndr_pull_fn_t) ndr_pull_samr_CONNECT5,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_RID_TO_SID(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_RID_TO_SID *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_RID_TO_SID, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_RID_TO_SID,
+ (ndr_pull_fn_t) ndr_pull_samr_RID_TO_SID,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_SET_DSRM_PASSWORD(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_SET_DSRM_PASSWORD *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_SET_DSRM_PASSWORD, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_SET_DSRM_PASSWORD,
+ (ndr_pull_fn_t) ndr_pull_samr_SET_DSRM_PASSWORD,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}
+
+NTSTATUS dcerpc_samr_VALIDATE_PASSWORD(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_VALIDATE_PASSWORD *r)
+{
+ NTSTATUS status;
+ status = dcerpc_ndr_request(p, DCERPC_SAMR_VALIDATE_PASSWORD, mem_ctx,
+ (ndr_push_fn_t) ndr_push_samr_VALIDATE_PASSWORD,
+ (ndr_pull_fn_t) ndr_pull_samr_VALIDATE_PASSWORD,
+ r);
+ if (!NT_STATUS_IS_OK(status)) {
+ return status;
+ }
+
+ return r->out.result;
+}