diff options
Diffstat (limited to 'source4/torture/rpc/lsa.c')
-rw-r--r-- | source4/torture/rpc/lsa.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source4/torture/rpc/lsa.c b/source4/torture/rpc/lsa.c index 3b7b65f779..35b4ff3333 100644 --- a/source4/torture/rpc/lsa.c +++ b/source4/torture/rpc/lsa.c @@ -421,6 +421,12 @@ static BOOL test_EnumTrustDom(struct dcerpc_pipe *p, r.out.resume_handle = &resume_handle; status = dcerpc_lsa_EnumTrustDom(p, mem_ctx, &r); + + /* NO_MORE_ENTRIES is allowed */ + if (NT_STATUS_EQUAL(status, NT_STATUS_NO_MORE_ENTRIES)) { + return True; + } + if (!NT_STATUS_IS_OK(status)) { printf("EnumTrustDom failed - %s\n", nt_errstr(status)); return False; @@ -447,6 +453,12 @@ static BOOL test_QueryInfoPolicy(struct dcerpc_pipe *p, printf("\ntrying QueryInfoPolicy level %d\n", i); status = dcerpc_lsa_QueryInfoPolicy(p, mem_ctx, &r); + + if ((i == 9 || i == 10) && + NT_STATUS_EQUAL(status, NT_STATUS_INVALID_PARAMETER)) { + continue; + } + if (!NT_STATUS_IS_OK(status)) { printf("QueryInfoPolicy failed - %s\n", nt_errstr(status)); ret = False; |