drsuapi: always set the pid field of the outgoing DsBindInfo to 0.
authorMichael Adam <obnox@samba.org>
Wed, 23 Jul 2008 13:34:45 +0000 (15:34 +0200)
committerMichael Adam <obnox@samba.org>
Wed, 23 Jul 2008 13:36:13 +0000 (15:36 +0200)
This is for debugging and informational purposes only.
The assignment is implementation specific.
(WSPP docs, sec. 5.35).

Michael
(This used to be commit 1f5704e2dee5900e8d1d87699b76f67c0e12854e)

source4/libnet/libnet_become_dc.c
source4/libnet/libnet_unbecome_dc.c
source4/torture/rpc/dssync.c

index 067f76d6b8f00dab3e4ccf9e9f9649fabfd5c118..6a139742361bb9acfd46d2f49dda1c3351127566 100644 (file)
@@ -1611,12 +1611,7 @@ static void becomeDC_drsuapi_bind_send(struct libnet_BecomeDC_state *s,
        bind_info28->supported_extensions       |= DRSUAPI_SUPPORTED_EXTENSION_XPRESS_COMPRESS;
 #endif
        bind_info28->site_guid                  = s->dest_dsa.site_guid;
-       if (s->domain.behavior_version == 2) {
-               /* TODO: find out how this is really triggered! */
-               bind_info28->pid                = 528;
-       } else {
-               bind_info28->pid                = 516;
-       }
+       bind_info28->pid                        = 0;
        bind_info28->repl_epoch                 = 0;
 
        drsuapi->bind_info_ctr.length           = 28;
index 4463569e71660a7fd38ec1bd85c4234f6e4c2e6f..6a42fa2370cd47ce0a77ac2baad53712b7d5e220 100644 (file)
@@ -574,7 +574,7 @@ static void unbecomeDC_drsuapi_bind_send(struct libnet_UnbecomeDC_state *s)
        bind_info28                             = &s->drsuapi.local_info28;
        bind_info28->supported_extensions       = 0;
        bind_info28->site_guid                  = GUID_zero();
-       bind_info28->pid                        = 508;
+       bind_info28->pid                        = 0;
        bind_info28->repl_epoch                 = 0;
 
        s->drsuapi.bind_info_ctr.length         = 28;
index 822cd088f1a23992e6658589d2746a0244520080..2930a9b1f9dc4240ed1e2f75bb606165b880abdc 100644 (file)
@@ -154,7 +154,7 @@ static struct DsSyncTest *test_create_context(struct torture_context *tctx)
                our_bind_info28->supported_extensions   |= DRSUAPI_SUPPORTED_EXTENSION_XPRESS_COMPRESS;
        }
        our_bind_info28->site_guid              = GUID_zero();
-       our_bind_info28->pid                    = 508;
+       our_bind_info28->pid                    = 0;
        our_bind_info28->repl_epoch             = 0;
 
        our_bind_info_ctr                       = &ctx->new_dc.drsuapi.our_bind_info_ctr;