mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
s4:samba_dnsupdate: don't lower case the registered names
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>
This commit is contained in:
@ -136,20 +136,20 @@ class dnsobj(object):
|
|||||||
self.existing_port = None
|
self.existing_port = None
|
||||||
self.existing_weight = None
|
self.existing_weight = None
|
||||||
self.type = list[0]
|
self.type = list[0]
|
||||||
self.name = list[1].lower()
|
self.name = list[1]
|
||||||
if self.type == 'SRV':
|
if self.type == 'SRV':
|
||||||
if len(list) < 4:
|
if len(list) < 4:
|
||||||
raise Exception("Invalid DNS entry %r" % string_form)
|
raise Exception("Invalid DNS entry %r" % string_form)
|
||||||
self.dest = list[2].lower()
|
self.dest = list[2]
|
||||||
self.port = list[3]
|
self.port = list[3]
|
||||||
elif self.type in ['A', 'AAAA']:
|
elif self.type in ['A', 'AAAA']:
|
||||||
self.ip = list[2] # usually $IP, which gets replaced
|
self.ip = list[2] # usually $IP, which gets replaced
|
||||||
elif self.type == 'CNAME':
|
elif self.type == 'CNAME':
|
||||||
self.dest = list[2].lower()
|
self.dest = list[2]
|
||||||
elif self.type == 'NS':
|
elif self.type == 'NS':
|
||||||
self.dest = list[2].lower()
|
self.dest = list[2]
|
||||||
else:
|
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):
|
def __str__(self):
|
||||||
if d.type == "A":
|
if d.type == "A":
|
||||||
|
Reference in New Issue
Block a user