From f90e5db8f9d1fa7062762af0ab3e0696998bf8bb Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 21 Nov 2003 13:27:58 +0000 Subject: [PATCH] print out the UUIDs from the end point mapper --- source/torture/rpc/epmapper.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/torture/rpc/epmapper.c b/source/torture/rpc/epmapper.c index 0e4e5e04f63..f00d52f1a59 100644 --- a/source/torture/rpc/epmapper.c +++ b/source/torture/rpc/epmapper.c @@ -29,6 +29,7 @@ static BOOL test_Lookup(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx) struct GUID uuid; struct rpc_if_id_t iface; struct policy_handle handle; + int i; ZERO_STRUCT(uuid); ZERO_STRUCT(iface); @@ -46,6 +47,12 @@ static BOOL test_Lookup(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx) status = dcerpc_epm_Lookup(p, mem_ctx, &r); if (NT_STATUS_IS_OK(status) && r.out.status == 0) { printf("Found '%s'\n", r.out.entries[0].annotation); + for (i=0;itowers.num_floors;i++) { + struct epm_lhs *lhs = &r.out.entries[0].tower->towers.floors[i].lhs; + if (lhs->protocol == 13) { + NDR_PRINT_DEBUG(epm_prot_uuid, &lhs->info.uuid); + } + } } } while (NT_STATUS_IS_OK(status) && r.out.status == 0);