Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
ntds_dns_name = talloc_asprintf(r, "%s._msdcs.%s",
ntds_guid_str,
- s->domain.dns_name);
+ s->forest.dns_name);
if (composite_nomem(ntds_dns_name, c)) return;
r->in.bind_handle = &drsuapi->bind_handle;
#include "librpc/rpc/pyrpc_util.h"
#include "libcli/finddc.h"
#include "libcli/resolve/resolve.h"
+#include "dsdb/common/proto.h"
void initnet(void);
return NULL;
}
- s->forest.dns_name = lpcfg_dnsdomain(lp);
+ s->forest.dns_name = samdb_dn_to_dns_domain(s, ldb_get_root_basedn(samdb));
s->chunk.gensec_skey = &s->gensec_skey;
s->chunk.partition = &s->partition;