1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-04 08:22:08 +03:00

samba-tool:dns: DNS names are case insensitive

Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Thu Jan 12 06:43:01 CET 2012 on sn-devel-104
This commit is contained in:
Amitay Isaacs
2012-01-12 15:11:12 +11:00
committed by Amitay Isaacs
parent 44a85e3752
commit 6764e4f20d

View File

@ -491,13 +491,13 @@ def dns_record_match(dns_conn, server, zone, name, record_type, data):
if rec.data == data:
found = True
elif record_type == dnsp.DNS_TYPE_PTR:
if rec.data.str.rstrip('.') == data.rstrip('.'):
if rec.data.str.rstrip('.').lower() == data.rstrip('.').lower():
found = True
elif record_type == dnsp.DNS_TYPE_CNAME:
if rec.data.str.rstrip('.') == data.rstrip('.'):
if rec.data.str.rstrip('.').lower() == data.rstrip('.').lower():
found = True
elif record_type == dnsp.DNS_TYPE_NS:
if rec.data.str.rstrip('.') == data.rstrip('.'):
if rec.data.str.rstrip('.').lower() == data.rstrip('.').lower():
found = True
if found:
rec_match = rec