The name coming out of DNS will have a trailing dot (.). Remove it.

This commit is contained in:
Rob Crittenden authored and Jason Gerard DeRose committed 2009-10-21 03:45:22 -06:00
1 parent 453a19fcac
commit bc9684b056
1 file changed
+1 -1
+1 -1
View File
@@ -145,7 +145,7 @@ class cert_request(VirtualCommand):
if rhost is None:
raise errors.ACIError(info='DNS lookup on client failed for IP %s' % client_ip)
client_hostname = rhost.rdata.ptrdname
client_hostname = rhost.rdata.ptrdname[:-1]
if subject_host.lower() != client_hostname.lower():
self.log.debug("IPA: hostname in subject of request '%s' does not match requesting hostname '%s'" % (subject_host, client_hostname))
self.check_access(operation="request certificate different host")