diff options
Diffstat (limited to 'source4/torture/rpc/samr.c')
-rw-r--r-- | source4/torture/rpc/samr.c | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/source4/torture/rpc/samr.c b/source4/torture/rpc/samr.c index bfabd01149..60c55f01be 100644 --- a/source4/torture/rpc/samr.c +++ b/source4/torture/rpc/samr.c @@ -30,12 +30,16 @@ static BOOL test_Close(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, r.in.handle = handle; r.out.handle = handle; + NDR_PRINT_IN_DEBUG(samr_Close, &r); + status = dcerpc_samr_Close(p, mem_ctx, &r); if (!NT_STATUS_IS_OK(status)) { printf("Close handle failed - %s\n", nt_errstr(status)); return False; } + NDR_PRINT_OUT_DEBUG(samr_Close, &r); + return True; } @@ -63,7 +67,7 @@ static BOOL test_QueryAliasInfo(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, ret = False; } - NDR_PRINT_UNION_DEBUG(samr_AliasInfo, r.in.level, r.out.info); + NDR_PRINT_BOTH_DEBUG(samr_QueryAliasInfo, &r); } return ret; @@ -91,7 +95,7 @@ static BOOL test_QueryGroupInfo(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, ret = False; } - NDR_PRINT_UNION_DEBUG(samr_GroupInfo, r.in.level, r.out.info); + NDR_PRINT_BOTH_DEBUG(samr_QueryGroupInfo, &r); } return ret; @@ -120,7 +124,7 @@ static BOOL test_QueryUserInfo(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, ret = False; } - NDR_PRINT_UNION_DEBUG(samr_UserInfo, r.in.level, r.out.info); + NDR_PRINT_BOTH_DEBUG(samr_QueryUserInfo, &r); } return ret; @@ -245,7 +249,7 @@ static BOOL test_EnumDomainUsers(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, return False; } - NDR_PRINT_DEBUG(samr_SamArray, r.out.sam); + NDR_PRINT_BOTH_DEBUG(samr_EnumDomainUsers, &r); if (!r.out.sam) { return False; @@ -282,7 +286,7 @@ static BOOL test_EnumDomainGroups(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, return False; } - NDR_PRINT_DEBUG(samr_SamArray, r.out.sam); + NDR_PRINT_BOTH_DEBUG(samr_EnumDomainGroups, &r); if (!r.out.sam) { return False; @@ -319,7 +323,7 @@ static BOOL test_EnumDomainAliases(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, return False; } - NDR_PRINT_DEBUG(samr_SamArray, r.out.sam); + NDR_PRINT_BOTH_DEBUG(samr_EnumDomainAliases, &r); if (!r.out.sam) { return False; @@ -357,7 +361,7 @@ static BOOL test_QueryDomainInfo(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, continue; } - NDR_PRINT_UNION_DEBUG(samr_DomainInfo, r.in.level, r.out.info); + NDR_PRINT_BOTH_DEBUG(samr_QueryDomainInfo, &r); } return True; @@ -424,7 +428,7 @@ static BOOL test_LookupDomain(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, return False; } - NDR_PRINT_DEBUG(dom_sid2, r.out.sid); + NDR_PRINT_BOTH_DEBUG(samr_LookupDomain, &r); if (!test_OpenDomain(p, mem_ctx, handle, r.out.sid)) { return False; @@ -456,7 +460,7 @@ static BOOL test_EnumDomains(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, return False; } - NDR_PRINT_DEBUG(samr_SamArray, r.out.sam); + NDR_PRINT_BOTH_DEBUG(samr_EnumDomains, &r); if (!r.out.sam) { return False; |