s4-drs: get lpcfg_dnsdomain() instead of lpcfg_realm()
authorAndrew Tridgell <tridge@samba.org>
Wed, 15 Sep 2010 08:49:34 +0000 (18:49 +1000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 15 Sep 2010 21:24:01 +0000 (07:24 +1000)
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

source4/rpc_server/drsuapi/getncchanges.c

index 312e3bd41868b2b9f8192ddceacc0b824e132906..60e3d243f4687944abcfa87b68f2b5ad7918b669 100644 (file)
@@ -1407,7 +1407,7 @@ WERROR dcesrv_drsuapi_DsGetNCChanges(struct dcesrv_call_state *dce_call, TALLOC_
                ureq.naming_context = ncRoot;
                ureq.dest_dsa_dns_name = talloc_asprintf(mem_ctx, "%s._msdcs.%s",
                                                         GUID_string(mem_ctx, &req8->destination_dsa_guid),
-                                                        lpcfg_realm(dce_call->conn->dce_ctx->lp_ctx));
+                                                        lpcfg_dnsdomain(dce_call->conn->dce_ctx->lp_ctx));
                if (!ureq.dest_dsa_dns_name) {
                        return WERR_NOMEM;
                }