diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-04-26 21:49:37 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-04-27 10:38:58 +1000 |
commit | c375b90f5d1b1cbef2896f9a9d5964126ce82022 (patch) | |
tree | c1b93b86506d6bad62ed635fbe35288da7a426cd /source4/rpc_server/drsuapi | |
parent | 5b81962ed1c5b0c92e735ae12b853a63a9513a3a (diff) | |
download | samba-c375b90f5d1b1cbef2896f9a9d5964126ce82022.tar.gz samba-c375b90f5d1b1cbef2896f9a9d5964126ce82022.tar.bz2 samba-c375b90f5d1b1cbef2896f9a9d5964126ce82022.zip |
s4-getncchanges: honor DRSUAPI_DRS_REF_GCSPN
this is an alternative way of establishing repsTo
Diffstat (limited to 'source4/rpc_server/drsuapi')
-rw-r--r-- | source4/rpc_server/drsuapi/getncchanges.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/rpc_server/drsuapi/getncchanges.c b/source4/rpc_server/drsuapi/getncchanges.c index 90407a323e..df8305e155 100644 --- a/source4/rpc_server/drsuapi/getncchanges.c +++ b/source4/rpc_server/drsuapi/getncchanges.c @@ -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), |