repsFrom/repsTo fields
Stefan (metze) Metzmacher
metze at samba.org
Thu Nov 25 07:22:53 GMT 2004
Hi Tridge,
here's my current patch for decoding the repsFrom/repsTo fields.
I have some questions and will ask you on irc...
--
metze
Stefan Metzmacher <metze at samba.org> www.samba.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: repsFromTo.tar.gz
Type: application/x-gzip
Size: 837 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20041125/5d9b94ff/repsFromTo.tar.bin
-------------- next part --------------
Index: librpc/idl/idl_types.h
===================================================================
--- librpc/idl/idl_types.h (revision 3937)
+++ librpc/idl/idl_types.h (working copy)
@@ -49,6 +49,11 @@
#define ascstr2 [flag(STR_ASCII|STR_LEN4)] string
/*
+ an ascii string prefixed with [size], 32 bits
+*/
+#define asclstr [flag(STR_ASCII|STR_SIZE4)] string
+
+/*
an ascii string prefixed with [size], 16 bits
null terminated
*/
Index: librpc/idl/drsblobs.idl
===================================================================
--- librpc/idl/drsblobs.idl (revision 3942)
+++ librpc/idl/drsblobs.idl (working copy)
@@ -83,4 +83,41 @@
void decode_replUpToDateVector(
[in] replUpToDateVectorBlob blob
);
+
+ /*
+ * repsFrom/repsTo
+ * w2k uses version 1
+ * w2k3 uses version 1
+ */
+ typedef [flag(NDR_PAHEX)] struct {
+ NTTIME_1sec time1;
+ NTTIME_1sec time2;
+ uint32 unknown1[4];
+ uint8 unknown2[84];
+ uint32 unknown3;
+ uint64 usn1;
+ uint32 unknown4;
+ uint32 unknown5;
+ uint64 usn2;
+ GUID guid1;
+ GUID guid2;
+ uint32 unknown6[4];
+ asclstr dns_name;
+ } repsFromTo1;
+
+ typedef [nodiscriminant] union {
+ [case(1)] repsFromTo1 ctr1;
+ } repsFromTo;
+
+ typedef [public] struct {
+ uint32 version;
+ uint32 unknown1;
+ uint32 blobsize;
+ uint32 unknown2;
+ [switch_is(version)] repsFromTo ctr;
+ } repsFromToBlob;
+
+ void decode_repsFromTo(
+ [in] repsFromToBlob blob
+ );
}
More information about the samba-technical
mailing list