s4:samba_dnsupdate: don't lower case the registered names
authorStefan Metzmacher <metze@samba.org>
Mon, 28 Apr 2014 15:26:51 +0000 (17:26 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 26 Aug 2014 07:13:06 +0000 (09:13 +0200)
This matches Windows...

Bug: https://bugzilla.samba.org/show_bug.cgi?id=9831

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/scripting/bin/samba_dnsupdate

index 68b0f72151f0b89092703af1473d21cec6c06899..0384dd9aff2c06b352ae135ee6aee448fa6d8ff9 100755 (executable)
@@ -136,20 +136,20 @@ class dnsobj(object):
         self.existing_port = None
         self.existing_weight = None
         self.type = list[0]
-        self.name = list[1].lower()
+        self.name = list[1]
         if self.type == 'SRV':
             if len(list) < 4:
                 raise Exception("Invalid DNS entry %r" % string_form)
-            self.dest = list[2].lower()
+            self.dest = list[2]
             self.port = list[3]
         elif self.type in ['A', 'AAAA']:
             self.ip   = list[2] # usually $IP, which gets replaced
         elif self.type == 'CNAME':
-            self.dest = list[2].lower()
+            self.dest = list[2]
         elif self.type == 'NS':
-            self.dest = list[2].lower()
+            self.dest = list[2]
         else:
-            raise Exception("Received unexpected DNS reply of type %s" % self.type)
+            raise Exception("Received unexpected DNS reply of type %s: %s" % (self.type, string_form))
 
     def __str__(self):
         if d.type == "A":