summaryrefslogtreecommitdiffstats
path: root/source4
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2014-07-28 13:07:58 +1000
committerStefan Metzmacher <metze@samba.org>2014-07-29 17:11:08 +0200
commit4b4e30b780345c74f9983ba77f04c616b3d034b7 (patch)
tree084d7facfed7d7406d7282f8955d0010535dadb4 /source4
parenta49ba006739dd3cf39162bf29ea66dd0a6087e09 (diff)
downloadsamba-4b4e30b780345c74f9983ba77f04c616b3d034b7.tar.gz
samba-4b4e30b780345c74f9983ba77f04c616b3d034b7.tar.xz
samba-4b4e30b780345c74f9983ba77f04c616b3d034b7.zip
s4-rpc: dnsserver: Allow . to be specified for @ record
Windows allow both . and @ to be specified with modifying @ record. Bug: https://bugzilla.samba.org/show_bug.cgi?id=10742 Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4')
-rw-r--r--source4/rpc_server/dnsserver/dcerpc_dnsserver.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/rpc_server/dnsserver/dcerpc_dnsserver.c b/source4/rpc_server/dnsserver/dcerpc_dnsserver.c
index f3dd1957af..856016c534 100644
--- a/source4/rpc_server/dnsserver/dcerpc_dnsserver.c
+++ b/source4/rpc_server/dnsserver/dcerpc_dnsserver.c
@@ -1859,7 +1859,9 @@ static WERROR dnsserver_update_record(struct dnsserver_state *dsstate,
W_ERROR_HAVE_NO_MEMORY(tmp_ctx);
/* If node_name is @ or zone name, dns record is @ */
- if (strcmp(node_name, "@") == 0 || strcasecmp(node_name, z->name) == 0) {
+ if (strcmp(node_name, "@") == 0 ||
+ strcmp(node_name, ".") == 0 ||
+ strcasecmp(node_name, z->name) == 0) {
name = talloc_strdup(tmp_ctx, "@");
} else {
name = dns_split_node_name(tmp_ctx, node_name, z->name);