1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

r25439: Extend the SHOW_SEQUENCE test somewhat to walk the list of trusted domains.

Michael
(This used to be commit d24eecb80ef55160e9e9c4863c59d9af15e4f5ca)
This commit is contained in:
Michael Adam 2007-09-30 09:15:04 +00:00 committed by Gerald (Jerry) Carter
parent 289f09e14b
commit 07f20e3f57

View File

@ -589,9 +589,15 @@ static bool torture_winbind_struct_show_sequence(struct torture_context *torture
{
struct winbindd_request req;
struct winbindd_response rep;
bool ok;
struct torture_trust_domain *domlist = NULL;
int i;
torture_comment(torture, "Running WINBINDD_SHOW_SEQUENCE (struct based)\n");
torture_comment(torture, " - Running WINBINDD_SHOW_SEQUENCE without domain:\n");
ZERO_STRUCT(req);
ZERO_STRUCT(rep);
@ -601,6 +607,22 @@ static bool torture_winbind_struct_show_sequence(struct torture_context *torture
torture_comment(torture, "%s", (char *)rep.extra_data.data);
}
torture_comment(torture, " - getting list of trusted domains\n");
ok = get_trusted_domains(torture, &domlist);
torture_assert(torture, ok, "failed to get trust list");
for (i=0; domlist[i].netbios_name; i++) {
ZERO_STRUCT(req);
ZERO_STRUCT(rep);
fstrcpy(req.domain_name, domlist[i].netbios_name);
torture_comment(torture, " - Running WINBINDD_SHOW_SEQUENCE "
"for domain %s:\n", req.domain_name);
DO_STRUCT_REQ_REP(WINBINDD_SHOW_SEQUENCE, &req, &rep);
if (rep.extra_data.data) {
torture_comment(torture, "%s", (char *)rep.extra_data.data);
}
}
return true;
}