summaryrefslogtreecommitdiff
path: root/source4/librpc/rpc
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-11-27 05:34:28 +0000
committerAndrew Tridgell <tridge@samba.org>2003-11-27 05:34:28 +0000
commitab3d728b7e7b1f3aa878ed5601a45ba08a08eb1f (patch)
treefa5e981618d0128676d6954beb5f90fda0c923e6 /source4/librpc/rpc
parent61bb3c865c4d4324cd2c1ea7d8b337b15dd66493 (diff)
downloadsamba-ab3d728b7e7b1f3aa878ed5601a45ba08a08eb1f.tar.gz
samba-ab3d728b7e7b1f3aa878ed5601a45ba08a08eb1f.tar.bz2
samba-ab3d728b7e7b1f3aa878ed5601a45ba08a08eb1f.zip
added an rpc scanner. This prints messages like this:
uuid 82273fdc-e32a-18c3-3f78-827929dc23ea version 0x0000:0x0000 'eventlog' 24 calls available WARNING: local IDL defines 4 calls when all the WARNINGs are gone then we know we have all the calls :) (This used to be commit f5821b2468a0c46d0e5590de59562926d746c349)
Diffstat (limited to 'source4/librpc/rpc')
-rw-r--r--source4/librpc/rpc/dcerpc.h2
-rw-r--r--source4/librpc/rpc/dcerpc_util.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/source4/librpc/rpc/dcerpc.h b/source4/librpc/rpc/dcerpc.h
index 9a301db66b..6f9aa75e8b 100644
--- a/source4/librpc/rpc/dcerpc.h
+++ b/source4/librpc/rpc/dcerpc.h
@@ -78,6 +78,8 @@ struct dcerpc_interface_call {
struct dcerpc_interface_table {
const char *name;
+ const char *uuid;
+ uint32 if_version;
uint32 num_calls;
const struct dcerpc_interface_call *calls;
};
diff --git a/source4/librpc/rpc/dcerpc_util.c b/source4/librpc/rpc/dcerpc_util.c
index fa69425ab0..e9499f969b 100644
--- a/source4/librpc/rpc/dcerpc_util.c
+++ b/source4/librpc/rpc/dcerpc_util.c
@@ -62,7 +62,8 @@ NTSTATUS dcerpc_epm_map_tcp_port(const char *server,
GUID guid;
struct epm_twr_t twr, *twr_r;
- if (strcasecmp(uuid, DCERPC_EPMAPPER_UUID) == 0) {
+ if (strcasecmp(uuid, DCERPC_EPMAPPER_UUID) == 0 ||
+ strcasecmp(uuid, DCERPC_MGMT_UUID) == 0) {
/* don't lookup epmapper via epmapper! */
*port = EPMAPPER_PORT;
return NT_STATUS_OK;