>From f072a106986cf9940e8e8d82be1c1f596a701bb6 Mon Sep 17 00:00:00 2001 From: Matthieu Patou Date: Wed, 18 Jul 2012 09:02:06 -0700 Subject: [PATCH 7/9] idl: Add frs blobs for dumping of frs related blobs with ndrdump --- librpc/idl/frsblobs.idl | 31 +++++++++++++++++++++++++++++++ librpc/idl/wscript_build | 2 +- librpc/wscript_build | 12 +++++++++++- source4/librpc/wscript_build | 3 ++- 4 files changed, 45 insertions(+), 3 deletions(-) create mode 100644 librpc/idl/frsblobs.idl diff --git a/librpc/idl/frsblobs.idl b/librpc/idl/frsblobs.idl new file mode 100644 index 0000000..e5f0f93 --- /dev/null +++ b/librpc/idl/frsblobs.idl @@ -0,0 +1,31 @@ +#include "idl_types.h" + +import "misc.idl"; +import "security.idl"; +import "frsrpc.idl"; +import "bkupblobs.idl"; +import "fscc.idl"; +/* frs related blobs decoding. Used for debug/dump of FRS related structures */ + +[ + pointer_default(unique), + helpstring("bkup blobs"), + uuid("12345777-1234-abcd-0001-00000004") +] + +interface frsblobs +{ + + void decode_nt_backup_file( + [in] bkup_NTBackupFile file + ); + + void decode_frsrpc_StageHeader( + [in] frsrpc_StageHeader header, + [in] bkup_NTBackupFile data + ); + + void decode_FileNetworkOpenInformation( + [in] fscc_FileNetworkOpenInformation data + ); +} diff --git a/librpc/idl/wscript_build b/librpc/idl/wscript_build index 3838b33..ad6664f 100644 --- a/librpc/idl/wscript_build +++ b/librpc/idl/wscript_build @@ -13,7 +13,7 @@ bld.SAMBA_PIDL_LIST('PIDL', notify.idl smb2_lease_struct.idl policyagent.idl scerpc.idl svcctl.idl wkssvc.idl eventlog6.idl backupkey.idl - fsrvp.idl bkupblobs.idl fscc.idl witness.idl''', + fsrvp.idl bkupblobs.idl fscc.idl frsblobs.idl witness.idl''', options='--header --ndr-parser --samba3-ndr-server --server --client --python', output_dir='../gen_ndr') diff --git a/librpc/wscript_build b/librpc/wscript_build index 79b3972..1a62d02 100644 --- a/librpc/wscript_build +++ b/librpc/wscript_build @@ -65,6 +65,11 @@ bld.SAMBA_SUBSYSTEM('NDR_FRSRPC', public_deps='ndr' ) +bld.SAMBA_SUBSYSTEM('RPC_NDR_FRSRPC', + source='gen_ndr/ndr_frsrpc_c.c', + public_deps='NDR_FRSRPC' + ) + bld.SAMBA_SUBSYSTEM('NDR_FRSAPI', source='gen_ndr/ndr_frsapi.c', public_deps='ndr' @@ -81,7 +86,7 @@ bld.SAMBA_SUBSYSTEM('NDR_DFSBLOBS', ) bld.SAMBA_SUBSYSTEM('NDR_BKUPBLOBS', - source='gen_ndr/ndr_bkupblobs.c', + source='ndr/ndr_bkupblobs.c gen_ndr/ndr_bkupblobs.c', public_deps='ndr' ) @@ -90,6 +95,11 @@ bld.SAMBA_SUBSYSTEM('NDR_FSCC', public_deps='ndr' ) +bld.SAMBA_SUBSYSTEM('NDR_FRSBLOBS', + source='gen_ndr/ndr_frsblobs.c', + public_deps='ndr' + ) + bld.SAMBA_SUBSYSTEM('NDR_POLICYAGENT', source='gen_ndr/ndr_policyagent.c', public_deps='ndr' diff --git a/source4/librpc/wscript_build b/source4/librpc/wscript_build index b5e67c1..8aaa0c9 100755 --- a/source4/librpc/wscript_build +++ b/source4/librpc/wscript_build @@ -82,7 +82,8 @@ bld.SAMBA_SUBSYSTEM('ndr-table', NDR_SASL_HELPERS NDR_NOTIFY NDR_WINBIND NDR_FRSRPC NDR_FRSAPI NDR_FRSTRANS NDR_NFS4ACL NDR_NTP_SIGND NDR_DCOM NDR_WMI NDR_NAMED_PIPE_AUTH NDR_NTLMSSP NDR_DFSBLOBS NDR_DNSP - NDR_NTPRINTING NDR_DNS NDR_BACKUPKEY NDR_PREG NDR_BKUPBLOBS NDR_FSCC''', + NDR_NTPRINTING NDR_DNS NDR_BACKUPKEY NDR_PREG NDR_BKUPBLOBS NDR_FSCC + NDR_FRSBLOBS''', depends_on='GEN_NDR_TABLES' ) -- 2.1.0