summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-03-23 19:24:11 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:11:14 -0500
commit3ec2c008b83b71b9f7aa7e7bd33a94c9af39dbe9 (patch)
treee85d6366117191393823f8d0470c968be2ea70ec
parent220f82e57071fd8385efe9ab6f6677cddf07d373 (diff)
downloadsamba-3ec2c008b83b71b9f7aa7e7bd33a94c9af39dbe9.tar.gz
samba-3ec2c008b83b71b9f7aa7e7bd33a94c9af39dbe9.tar.bz2
samba-3ec2c008b83b71b9f7aa7e7bd33a94c9af39dbe9.zip
r6000: add some notes about the cases where compression (or what ever this is)
is used, in the reply. metze (This used to be commit 618dadb7ef092af0f2c13c2e67874041f54f4e98)
-rw-r--r--source4/librpc/idl/drsuapi.idl14
-rw-r--r--source4/torture/rpc/drsuapi.c6
2 files changed, 19 insertions, 1 deletions
diff --git a/source4/librpc/idl/drsuapi.idl b/source4/librpc/idl/drsuapi.idl
index 4144ced563..330165830c 100644
--- a/source4/librpc/idl/drsuapi.idl
+++ b/source4/librpc/idl/drsuapi.idl
@@ -188,6 +188,11 @@ interface drsuapi
} drsuapi_DsReplicaCoursor05Ctr;
typedef [public] bitmap {
+ /* the _WRITEABLE flag seems to indicate a replication with all attributes,
+ * and I'm currently always on error when it's set, but w2k and w2k3 uses it
+ * in the dc join
+ * --metze
+ */
DRSUAPI_DS_REPLICA_NEIGHBOUR_WRITEABLE = 0x00000010,
DRSUAPI_DS_REPLICA_NEIGHBOUR_SYNC_ON_STARTUP = 0x00000020,
DRSUAPI_DS_REPLICA_NEIGHBOUR_DO_SCHEDULED_SYNCS = 0x00000040,
@@ -200,6 +205,15 @@ interface drsuapi
DRSUAPI_DS_REPLICA_NEIGHBOUR_PREEMPTED = 0x01000000,
DRSUAPI_DS_REPLICA_NEIGHBOUR_IGNORE_CHANGE_NOTIFICATIONS = 0x04000000,
DRSUAPI_DS_REPLICA_NEIGHBOUR_DISABLE_SCHEDULED_SYNC = 0x08000000,
+ /*
+ * the following NOTE applies to DsGetNCChangesRequest5:
+ * - the data is only compressed when 10 or more objects are replicated
+ * - but there could also be a size limit of 35 KBytes or something like that
+ * - the reply is DsGetNCChangesCtr2
+ * - maybe the same applies to DsGetNCChangesRequest8...
+ *
+ * --metze
+ */
DRSUAPI_DS_REPLICA_NEIGHBOUR_COMPRESS_CHANGES = 0x10000000,
DRSUAPI_DS_REPLICA_NEIGHBOUR_NO_CHANGE_NOTIFICATIONS = 0x20000000,
DRSUAPI_DS_REPLICA_NEIGHBOUR_PARTIAL_ATTRIBUTE_SET = 0x40000000
diff --git a/source4/torture/rpc/drsuapi.c b/source4/torture/rpc/drsuapi.c
index e657cff3fe..f1d7e04b29 100644
--- a/source4/torture/rpc/drsuapi.c
+++ b/source4/torture/rpc/drsuapi.c
@@ -923,7 +923,11 @@ static BOOL test_DsGetNCChanges(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
r.in.req.req5.highwatermark.reserved_usn = 0;
r.in.req.req5.highwatermark.highest_usn = 0;
r.in.req.req5.uptodateness_vector = NULL;
- r.in.req.req5.replica_flags = 0;
+ r.in.req.req5.replica_flags = 0
+#if 0
+ | DRSUAPI_DS_REPLICA_NEIGHBOUR_COMPRESS_CHANGES
+#endif
+ ;
r.in.req.req5.unknown2 = 0;
r.in.req.req5.unknown3 = 0;
r.in.req.req5.unknown4 = 0;