s4-getncchanges: honor DRSUAPI_DRS_REF_GCSPN
authorAndrew Tridgell <tridge@samba.org>
Mon, 26 Apr 2010 11:49:37 +0000 (21:49 +1000)
committerAndrew Tridgell <tridge@samba.org>
Tue, 27 Apr 2010 00:38:58 +0000 (10:38 +1000)
this is an alternative way of establishing repsTo

source4/rpc_server/drsuapi/getncchanges.c

index 90407a323e782693f66eeddba564e1dc6a3000fa..df8305e155a4a03514b00e6c21cd219b8fe76485 100644 (file)
@@ -1005,9 +1005,11 @@ WERROR dcesrv_drsuapi_DsGetNCChanges(struct dcesrv_call_state *dce_call, TALLOC_
 
        /* the client can us to call UpdateRefs on its behalf to
           re-establish monitoring of the NC */
-       if ((req8->replica_flags & DRSUAPI_DRS_ADD_REF) && 
+       if ((req8->replica_flags & (DRSUAPI_DRS_ADD_REF | DRSUAPI_DRS_REF_GCSPN)) &&
            !GUID_all_zero(&req8->destination_dsa_guid)) {
                struct drsuapi_DsReplicaUpdateRefsRequest1 ureq;
+               DEBUG(3,("UpdateRefs on getncchanges for %s\n",
+                        GUID_string(mem_ctx, &req8->destination_dsa_guid)));
                ureq.naming_context = ncRoot;
                ureq.dest_dsa_dns_name = talloc_asprintf(mem_ctx, "%s._msdcs.%s",
                                                         GUID_string(mem_ctx, &req8->destination_dsa_guid),