"dNSHostName" attribute is important part of Server object
and it is Server's recored owner responsibility to maintain
this attribute value.
const char *config_dn_str;
struct nbt_name name;
const char *dest_addr = NULL;
const char *config_dn_str;
struct nbt_name name;
const char *dest_addr = NULL;
tmp_ctx = talloc_named(libnet_r, 0, "libnet_JoinSite temp context");
if (!tmp_ctx) {
tmp_ctx = talloc_named(libnet_r, 0, "libnet_JoinSite temp context");
if (!tmp_ctx) {
talloc_free(tmp_ctx);
return NT_STATUS_NO_MEMORY;
}
talloc_free(tmp_ctx);
return NT_STATUS_NO_MEMORY;
}
+ dns_host_name = talloc_asprintf(tmp_ctx, "%s.%s",
+ libnet_r->in.netbios_name, libnet_r->out.realm);
+ if (!dns_host_name) {
+ r->out.error_string = NULL;
+ talloc_free(tmp_ctx);
+ return NT_STATUS_NO_MEMORY;
+ }
+ strlower_m(dns_host_name);
+ rtn = ldb_msg_add_string(msg, "dNSHostName", dns_host_name);
server_dn = ldb_dn_new(tmp_ctx, remote_ldb, server_dn_str);
if ( ! ldb_dn_validate(server_dn)) {
server_dn = ldb_dn_new(tmp_ctx, remote_ldb, server_dn_str);
if ( ! ldb_dn_validate(server_dn)) {