summaryrefslogtreecommitdiff
path: root/source4/utils
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-11-23 21:51:24 +0000
committerAndrew Tridgell <tridge@samba.org>2003-11-23 21:51:24 +0000
commit27b1dbaea64e02eccf07ff6643bffc2991264533 (patch)
treec29400229869335b2812f7686615538c83c010d7 /source4/utils
parent3d0e6b3835379d545189563ce25ffe37ed340703 (diff)
downloadsamba-27b1dbaea64e02eccf07ff6643bffc2991264533.tar.gz
samba-27b1dbaea64e02eccf07ff6643bffc2991264533.tar.bz2
samba-27b1dbaea64e02eccf07ff6643bffc2991264533.zip
* better diagnostics in ndrdump
* added samr_Connect2() (This used to be commit 6b262ca37ca3fc0e3210b4379b2d9e46e1a2d336)
Diffstat (limited to 'source4/utils')
-rw-r--r--source4/utils/ndrdump.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/source4/utils/ndrdump.c b/source4/utils/ndrdump.c
index c81a9948f3..6118192b33 100644
--- a/source4/utils/ndrdump.c
+++ b/source4/utils/ndrdump.c
@@ -24,6 +24,15 @@ struct dcerpc_interface_table *pipes[] = {
&dcerpc_table_samr,
&dcerpc_table_lsarpc,
&dcerpc_table_netdfs,
+ &dcerpc_table_atsvc,
+ &dcerpc_table_dcerpc,
+ &dcerpc_table_rpcecho,
+ &dcerpc_table_epmapper,
+ &dcerpc_table_eventlog,
+ &dcerpc_table_spoolss,
+ &dcerpc_table_srvsvc,
+ &dcerpc_table_winreg,
+ &dcerpc_table_wkssvc,
NULL
};
@@ -175,5 +184,13 @@ int main(int argc, char *argv[])
pr.depth = 1;
f->ndr_print(&pr, function, flags, st);
+ if (!NT_STATUS_IS_OK(status) ||
+ ndr->offset != ndr->data_size) {
+ printf("dump FAILED\n");
+ exit(1);
+ }
+
+ printf("dump OK\n");
+
return 0;
}