From: Amitay Isaacs Date: Thu, 12 Jan 2012 04:11:12 +0000 (+1100) Subject: samba-tool:dns: DNS names are case insensitive X-Git-Tag: tevent-0.9.15~414 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6764e4f20d30a7ed63b02290c718cd24008f3c00;p=thirdparty%2Fsamba.git samba-tool:dns: DNS names are case insensitive Autobuild-User: Amitay Isaacs Autobuild-Date: Thu Jan 12 06:43:01 CET 2012 on sn-devel-104 --- diff --git a/source4/scripting/python/samba/netcmd/dns.py b/source4/scripting/python/samba/netcmd/dns.py index 74b649ee1e8..2ab41293317 100644 --- a/source4/scripting/python/samba/netcmd/dns.py +++ b/source4/scripting/python/samba/netcmd/dns.py @@ -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