From 6764e4f20d30a7ed63b02290c718cd24008f3c00 Mon Sep 17 00:00:00 2001 From: Amitay Isaacs Date: Thu, 12 Jan 2012 15:11:12 +1100 Subject: 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 --- source4/scripting/python/samba/netcmd/dns.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source4/scripting/python') diff --git a/source4/scripting/python/samba/netcmd/dns.py b/source4/scripting/python/samba/netcmd/dns.py index 74b649ee1e..2ab4129331 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 -- cgit