summaryrefslogtreecommitdiff
path: root/source4/librpc/rpc/rpc_samr.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/librpc/rpc/rpc_samr.c')
-rw-r--r--source4/librpc/rpc/rpc_samr.c1432
1 files changed, 0 insertions, 1432 deletions
diff --git a/source4/librpc/rpc/rpc_samr.c b/source4/librpc/rpc/rpc_samr.c
deleted file mode 100644
index 76dd26ea05..0000000000
--- a/source4/librpc/rpc/rpc_samr.c
+++ /dev/null
@@ -1,1432 +0,0 @@
-/* dcerpc client calls generated by pidl */
-
-#include "includes.h"
-
-
-NTSTATUS dcerpc_samr_Connect(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_Connect *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_Connect, r);
- }
-
- 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) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_Connect, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_Close(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_Close *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_Close, r);
- }
-
- 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) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_Close, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_SetSecurity(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_SetSecurity *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_SetSecurity, r);
- }
-
- 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) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_SetSecurity, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_QuerySecurity(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_QuerySecurity *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_QuerySecurity, r);
- }
-
- 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) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_QuerySecurity, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_Shutdown(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_Shutdown *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_Shutdown, r);
- }
-
- 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) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_Shutdown, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_LookupDomain(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_LookupDomain *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_LookupDomain, r);
- }
-
- 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) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_LookupDomain, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_EnumDomains(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_EnumDomains *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_EnumDomains, r);
- }
-
- 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) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_EnumDomains, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_OpenDomain(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_OpenDomain *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_OpenDomain, r);
- }
-
- status = dcerpc_ndr_request(p, DCERPC_SAMR_OPENDOMAIN, mem_ctx,
- (ndr_push_fn_t) ndr_push_samr_OpenDomain,
- (ndr_pull_fn_t) ndr_pull_samr_OpenDomain,
- r);
-
- if (NT_STATUS_IS_OK(status) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_OpenDomain, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_QueryDomainInfo(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_QueryDomainInfo *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_QueryDomainInfo, r);
- }
-
- status = dcerpc_ndr_request(p, DCERPC_SAMR_QUERYDOMAININFO, mem_ctx,
- (ndr_push_fn_t) ndr_push_samr_QueryDomainInfo,
- (ndr_pull_fn_t) ndr_pull_samr_QueryDomainInfo,
- r);
-
- if (NT_STATUS_IS_OK(status) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_QueryDomainInfo, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_SET_DOMAIN_INFO(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_SET_DOMAIN_INFO *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_SET_DOMAIN_INFO, r);
- }
-
- 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) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_SET_DOMAIN_INFO, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_CREATE_DOM_GROUP(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_CREATE_DOM_GROUP *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_CREATE_DOM_GROUP, r);
- }
-
- 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) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_CREATE_DOM_GROUP, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_EnumDomainGroups(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_EnumDomainGroups *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_EnumDomainGroups, r);
- }
-
- status = dcerpc_ndr_request(p, DCERPC_SAMR_ENUMDOMAINGROUPS, mem_ctx,
- (ndr_push_fn_t) ndr_push_samr_EnumDomainGroups,
- (ndr_pull_fn_t) ndr_pull_samr_EnumDomainGroups,
- r);
-
- if (NT_STATUS_IS_OK(status) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_EnumDomainGroups, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_CreateUser(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_CreateUser *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_CreateUser, r);
- }
-
- status = dcerpc_ndr_request(p, DCERPC_SAMR_CREATEUSER, mem_ctx,
- (ndr_push_fn_t) ndr_push_samr_CreateUser,
- (ndr_pull_fn_t) ndr_pull_samr_CreateUser,
- r);
-
- if (NT_STATUS_IS_OK(status) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_CreateUser, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_EnumDomainUsers(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_EnumDomainUsers *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_EnumDomainUsers, r);
- }
-
- status = dcerpc_ndr_request(p, DCERPC_SAMR_ENUMDOMAINUSERS, mem_ctx,
- (ndr_push_fn_t) ndr_push_samr_EnumDomainUsers,
- (ndr_pull_fn_t) ndr_pull_samr_EnumDomainUsers,
- r);
-
- if (NT_STATUS_IS_OK(status) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_EnumDomainUsers, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_CREATE_DOM_ALIAS(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_CREATE_DOM_ALIAS *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_CREATE_DOM_ALIAS, r);
- }
-
- 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) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_CREATE_DOM_ALIAS, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_EnumDomainAliases(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_EnumDomainAliases *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_EnumDomainAliases, r);
- }
-
- status = dcerpc_ndr_request(p, DCERPC_SAMR_ENUMDOMAINALIASES, mem_ctx,
- (ndr_push_fn_t) ndr_push_samr_EnumDomainAliases,
- (ndr_pull_fn_t) ndr_pull_samr_EnumDomainAliases,
- r);
-
- if (NT_STATUS_IS_OK(status) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_EnumDomainAliases, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_GetAliasMembership(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_GetAliasMembership *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_GetAliasMembership, r);
- }
-
- status = dcerpc_ndr_request(p, DCERPC_SAMR_GETALIASMEMBERSHIP, mem_ctx,
- (ndr_push_fn_t) ndr_push_samr_GetAliasMembership,
- (ndr_pull_fn_t) ndr_pull_samr_GetAliasMembership,
- r);
-
- if (NT_STATUS_IS_OK(status) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_GetAliasMembership, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_LookupNames(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_LookupNames *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_LookupNames, r);
- }
-
- status = dcerpc_ndr_request(p, DCERPC_SAMR_LOOKUPNAMES, mem_ctx,
- (ndr_push_fn_t) ndr_push_samr_LookupNames,
- (ndr_pull_fn_t) ndr_pull_samr_LookupNames,
- r);
-
- if (NT_STATUS_IS_OK(status) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_LookupNames, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_LookupRids(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_LookupRids *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_LookupRids, r);
- }
-
- status = dcerpc_ndr_request(p, DCERPC_SAMR_LOOKUPRIDS, mem_ctx,
- (ndr_push_fn_t) ndr_push_samr_LookupRids,
- (ndr_pull_fn_t) ndr_pull_samr_LookupRids,
- r);
-
- if (NT_STATUS_IS_OK(status) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_LookupRids, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_OpenGroup(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_OpenGroup *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_OpenGroup, r);
- }
-
- status = dcerpc_ndr_request(p, DCERPC_SAMR_OPENGROUP, mem_ctx,
- (ndr_push_fn_t) ndr_push_samr_OpenGroup,
- (ndr_pull_fn_t) ndr_pull_samr_OpenGroup,
- r);
-
- if (NT_STATUS_IS_OK(status) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_OpenGroup, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_QueryGroupInfo(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_QueryGroupInfo *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_QueryGroupInfo, r);
- }
-
- status = dcerpc_ndr_request(p, DCERPC_SAMR_QUERYGROUPINFO, mem_ctx,
- (ndr_push_fn_t) ndr_push_samr_QueryGroupInfo,
- (ndr_pull_fn_t) ndr_pull_samr_QueryGroupInfo,
- r);
-
- if (NT_STATUS_IS_OK(status) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_QueryGroupInfo, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_SET_GROUPINFO(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_SET_GROUPINFO *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_SET_GROUPINFO, r);
- }
-
- 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) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_SET_GROUPINFO, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_ADD_GROUPMEM(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_ADD_GROUPMEM *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_ADD_GROUPMEM, r);
- }
-
- 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) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_ADD_GROUPMEM, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_DELETE_DOM_GROUP(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_DELETE_DOM_GROUP *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_DELETE_DOM_GROUP, r);
- }
-
- 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) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_DELETE_DOM_GROUP, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_DEL_GROUPMEM(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_DEL_GROUPMEM *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_DEL_GROUPMEM, r);
- }
-
- 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) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_DEL_GROUPMEM, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_QUERY_GROUPMEM(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_QUERY_GROUPMEM *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_QUERY_GROUPMEM, r);
- }
-
- 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) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_QUERY_GROUPMEM, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-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;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_SET_MEMBER_ATTRIBUTES_OF_GROUP, r);
- }
-
- 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) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_SET_MEMBER_ATTRIBUTES_OF_GROUP, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_OpenAlias(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_OpenAlias *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_OpenAlias, r);
- }
-
- status = dcerpc_ndr_request(p, DCERPC_SAMR_OPENALIAS, mem_ctx,
- (ndr_push_fn_t) ndr_push_samr_OpenAlias,
- (ndr_pull_fn_t) ndr_pull_samr_OpenAlias,
- r);
-
- if (NT_STATUS_IS_OK(status) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_OpenAlias, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_QueryAliasInfo(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_QueryAliasInfo *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_QueryAliasInfo, r);
- }
-
- status = dcerpc_ndr_request(p, DCERPC_SAMR_QUERYALIASINFO, mem_ctx,
- (ndr_push_fn_t) ndr_push_samr_QueryAliasInfo,
- (ndr_pull_fn_t) ndr_pull_samr_QueryAliasInfo,
- r);
-
- if (NT_STATUS_IS_OK(status) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_QueryAliasInfo, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_SET_ALIASINFO(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_SET_ALIASINFO *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_SET_ALIASINFO, r);
- }
-
- 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) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_SET_ALIASINFO, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_DELETE_DOM_ALIAS(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_DELETE_DOM_ALIAS *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_DELETE_DOM_ALIAS, r);
- }
-
- 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) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_DELETE_DOM_ALIAS, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_ADD_ALIASMEM(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_ADD_ALIASMEM *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_ADD_ALIASMEM, r);
- }
-
- 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) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_ADD_ALIASMEM, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_DEL_ALIASMEM(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_DEL_ALIASMEM *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_DEL_ALIASMEM, r);
- }
-
- 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) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_DEL_ALIASMEM, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_GET_MEMBERS_IN_ALIAS(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_GET_MEMBERS_IN_ALIAS *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_GET_MEMBERS_IN_ALIAS, r);
- }
-
- 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) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_GET_MEMBERS_IN_ALIAS, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_OpenUser(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_OpenUser *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_OpenUser, r);
- }
-
- status = dcerpc_ndr_request(p, DCERPC_SAMR_OPENUSER, mem_ctx,
- (ndr_push_fn_t) ndr_push_samr_OpenUser,
- (ndr_pull_fn_t) ndr_pull_samr_OpenUser,
- r);
-
- if (NT_STATUS_IS_OK(status) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_OpenUser, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_DeleteUser(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_DeleteUser *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_DeleteUser, r);
- }
-
- status = dcerpc_ndr_request(p, DCERPC_SAMR_DELETEUSER, mem_ctx,
- (ndr_push_fn_t) ndr_push_samr_DeleteUser,
- (ndr_pull_fn_t) ndr_pull_samr_DeleteUser,
- r);
-
- if (NT_STATUS_IS_OK(status) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_DeleteUser, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_QueryUserInfo(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_QueryUserInfo *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_QueryUserInfo, r);
- }
-
- status = dcerpc_ndr_request(p, DCERPC_SAMR_QUERYUSERINFO, mem_ctx,
- (ndr_push_fn_t) ndr_push_samr_QueryUserInfo,
- (ndr_pull_fn_t) ndr_pull_samr_QueryUserInfo,
- r);
-
- if (NT_STATUS_IS_OK(status) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_QueryUserInfo, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_SetUserInfo(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_SetUserInfo *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_SetUserInfo, r);
- }
-
- status = dcerpc_ndr_request(p, DCERPC_SAMR_SETUSERINFO, mem_ctx,
- (ndr_push_fn_t) ndr_push_samr_SetUserInfo,
- (ndr_pull_fn_t) ndr_pull_samr_SetUserInfo,
- r);
-
- if (NT_STATUS_IS_OK(status) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_SetUserInfo, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_CHANGE_PASSWORD_USER(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_CHANGE_PASSWORD_USER *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_CHANGE_PASSWORD_USER, r);
- }
-
- 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) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_CHANGE_PASSWORD_USER, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_GET_GROUPS_FOR_USER(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_GET_GROUPS_FOR_USER *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_GET_GROUPS_FOR_USER, r);
- }
-
- 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) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_GET_GROUPS_FOR_USER, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_QUERY_DISPINFO(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_QUERY_DISPINFO *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_QUERY_DISPINFO, r);
- }
-
- 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) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_QUERY_DISPINFO, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_GET_DISPLAY_ENUMERATION_INDEX(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_GET_DISPLAY_ENUMERATION_INDEX *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_GET_DISPLAY_ENUMERATION_INDEX, r);
- }
-
- 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) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_GET_DISPLAY_ENUMERATION_INDEX, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_TEST_PRIVATE_FUNCTIONS_DOMAIN(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_TEST_PRIVATE_FUNCTIONS_DOMAIN *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_TEST_PRIVATE_FUNCTIONS_DOMAIN, r);
- }
-
- 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) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_TEST_PRIVATE_FUNCTIONS_DOMAIN, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_TEST_PRIVATE_FUNCTIONS_USER(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_TEST_PRIVATE_FUNCTIONS_USER *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_TEST_PRIVATE_FUNCTIONS_USER, r);
- }
-
- 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) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_TEST_PRIVATE_FUNCTIONS_USER, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_GET_USRDOM_PWINFO(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_GET_USRDOM_PWINFO *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_GET_USRDOM_PWINFO, r);
- }
-
- 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) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_GET_USRDOM_PWINFO, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-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;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_REMOVE_MEMBER_FROM_FOREIGN_DOMAIN, r);
- }
-
- 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) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_REMOVE_MEMBER_FROM_FOREIGN_DOMAIN, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_QUERY_INFORMATION_DOMAIN2(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_QUERY_INFORMATION_DOMAIN2 *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_QUERY_INFORMATION_DOMAIN2, r);
- }
-
- 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) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_QUERY_INFORMATION_DOMAIN2, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_QUERY_INFORMATION_USER2(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_QUERY_INFORMATION_USER2 *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_QUERY_INFORMATION_USER2, r);
- }
-
- 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) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_QUERY_INFORMATION_USER2, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_QUERY_DISPINFO2(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_QUERY_DISPINFO2 *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_QUERY_DISPINFO2, r);
- }
-
- 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) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_QUERY_DISPINFO2, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_GET_DISPLAY_ENUMERATION_INDEX2(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_GET_DISPLAY_ENUMERATION_INDEX2 *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_GET_DISPLAY_ENUMERATION_INDEX2, r);
- }
-
- 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) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_GET_DISPLAY_ENUMERATION_INDEX2, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_CREATE_USER2_IN_DOMAIN(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_CREATE_USER2_IN_DOMAIN *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_CREATE_USER2_IN_DOMAIN, r);
- }
-
- 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) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_CREATE_USER2_IN_DOMAIN, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_QUERY_DISPINFO3(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_QUERY_DISPINFO3 *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_QUERY_DISPINFO3, r);
- }
-
- 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) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_QUERY_DISPINFO3, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-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;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_ADD_MULTIPLE_MEMBERS_TO_ALIAS, r);
- }
-
- 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) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_ADD_MULTIPLE_MEMBERS_TO_ALIAS, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-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;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_REMOVE_MULTIPLE_MEMBERS_FROM_ALIAS, r);
- }
-
- 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) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_REMOVE_MULTIPLE_MEMBERS_FROM_ALIAS, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_OEM_CHANGE_PASSWORD_USER2(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_OEM_CHANGE_PASSWORD_USER2 *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_OEM_CHANGE_PASSWORD_USER2, r);
- }
-
- 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) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_OEM_CHANGE_PASSWORD_USER2, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_UNICODE_CHANGE_PASSWORD_USER2(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_UNICODE_CHANGE_PASSWORD_USER2 *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_UNICODE_CHANGE_PASSWORD_USER2, r);
- }
-
- 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) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_UNICODE_CHANGE_PASSWORD_USER2, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_GET_DOM_PWINFO(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_GET_DOM_PWINFO *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_GET_DOM_PWINFO, r);
- }
-
- 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) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_GET_DOM_PWINFO, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_CONNECT2(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_CONNECT2 *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_CONNECT2, r);
- }
-
- 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) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_CONNECT2, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_SET_USERINFO2(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_SET_USERINFO2 *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_SET_USERINFO2, r);
- }
-
- 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) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_SET_USERINFO2, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_SET_BOOT_KEY_INFORMATION(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_SET_BOOT_KEY_INFORMATION *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_SET_BOOT_KEY_INFORMATION, r);
- }
-
- 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) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_SET_BOOT_KEY_INFORMATION, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_GET_BOOT_KEY_INFORMATION(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_GET_BOOT_KEY_INFORMATION *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_GET_BOOT_KEY_INFORMATION, r);
- }
-
- 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) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_GET_BOOT_KEY_INFORMATION, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_CONNECT3(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_CONNECT3 *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_CONNECT3, r);
- }
-
- 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) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_CONNECT3, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_Connect4(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_Connect4 *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_Connect4, r);
- }
-
- 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) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_Connect4, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_UNICODE_CHANGE_PASSWORD_USER3(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_UNICODE_CHANGE_PASSWORD_USER3 *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_UNICODE_CHANGE_PASSWORD_USER3, r);
- }
-
- 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) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_UNICODE_CHANGE_PASSWORD_USER3, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_CONNECT5(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_CONNECT5 *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_CONNECT5, r);
- }
-
- 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) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_CONNECT5, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_RID_TO_SID(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_RID_TO_SID *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_RID_TO_SID, r);
- }
-
- 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) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_RID_TO_SID, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_SET_DSRM_PASSWORD(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_SET_DSRM_PASSWORD *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_SET_DSRM_PASSWORD, r);
- }
-
- 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) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_SET_DSRM_PASSWORD, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}
-
-NTSTATUS dcerpc_samr_VALIDATE_PASSWORD(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_VALIDATE_PASSWORD *r)
-{
- NTSTATUS status;
-
- if (p->flags & DCERPC_DEBUG_PRINT_IN) {
- NDR_PRINT_IN_DEBUG(samr_VALIDATE_PASSWORD, r);
- }
-
- 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) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
- NDR_PRINT_OUT_DEBUG(samr_VALIDATE_PASSWORD, r);
- }
- if (NT_STATUS_IS_OK(status)) status = r->out.result;
-
- return status;
-}