summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-11-21 13:27:58 +0000
committerAndrew Tridgell <tridge@samba.org>2003-11-21 13:27:58 +0000
commit55410a073fd2a4d9c4bb81da6042d199c1bf87bf (patch)
tree0e0149f65759b362a3579fd81048570f8784e8ee
parenta465add90f3291f022104600c6221e8d90287e64 (diff)
downloadsamba-55410a073fd2a4d9c4bb81da6042d199c1bf87bf.tar.gz
samba-55410a073fd2a4d9c4bb81da6042d199c1bf87bf.tar.bz2
samba-55410a073fd2a4d9c4bb81da6042d199c1bf87bf.zip
print out the UUIDs from the end point mapper
(This used to be commit f90e5db8f9d1fa7062762af0ab3e0696998bf8bb)
-rw-r--r--source4/torture/rpc/epmapper.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/torture/rpc/epmapper.c b/source4/torture/rpc/epmapper.c
index 0e4e5e04f6..f00d52f1a5 100644
--- a/source4/torture/rpc/epmapper.c
+++ b/source4/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;i<r.out.entries[0].tower->towers.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);