1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-24 13:57:43 +03:00

s4-samr: merge samr_QueryDomainInfo2 from s3 idl. (fixme: python)

Guenther
This commit is contained in:
Günther Deschner 2008-11-05 03:02:37 +01:00
parent f7dfea32fc
commit f20dd953ef
2 changed files with 3 additions and 1 deletions

View File

@ -1196,7 +1196,7 @@ import "misc.idl", "lsa.idl", "security.idl";
NTSTATUS samr_QueryDomainInfo2(
[in,ref] policy_handle *domain_handle,
[in] uint16 level,
[out,unique,switch_is(level)] samr_DomainInfo *info
[out,ref,switch_is(level)] samr_DomainInfo **info
);
/************************/

View File

@ -4016,6 +4016,7 @@ static bool test_QueryDomainInfo2(struct dcerpc_pipe *p, struct torture_context
{
NTSTATUS status;
struct samr_QueryDomainInfo2 r;
union samr_DomainInfo *info = NULL;
uint16_t levels[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13};
int i;
bool ret = true;
@ -4025,6 +4026,7 @@ static bool test_QueryDomainInfo2(struct dcerpc_pipe *p, struct torture_context
r.in.domain_handle = handle;
r.in.level = levels[i];
r.out.info = &info;
status = dcerpc_samr_QueryDomainInfo2(p, tctx, &r);
if (!NT_STATUS_IS_OK(status)) {