diff options
author | Amitay Isaacs <amitay@gmail.com> | 2012-01-12 15:11:12 +1100 |
---|---|---|
committer | Amitay Isaacs <amitay@samba.org> | 2012-01-12 06:43:01 +0100 |
commit | 6764e4f20d30a7ed63b02290c718cd24008f3c00 (patch) | |
tree | aedc4bbecdb81d3419716a50e3290eb6423d316d /source4/scripting | |
parent | 44a85e3752ceaacdcc39a6a1d0faa0ff3d3db004 (diff) | |
download | samba-6764e4f20d30a7ed63b02290c718cd24008f3c00.tar.gz samba-6764e4f20d30a7ed63b02290c718cd24008f3c00.tar.bz2 samba-6764e4f20d30a7ed63b02290c718cd24008f3c00.zip |
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
Diffstat (limited to 'source4/scripting')
-rw-r--r-- | source4/scripting/python/samba/netcmd/dns.py | 6 |
1 files changed, 3 insertions, 3 deletions
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 |