diff options
author | Rob Crittenden <rcritten@redhat.com> | 2009-10-20 22:22:10 -0400 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2009-10-21 03:45:22 -0600 |
commit | bc9684b05626cf80ff5da239d16da7d2a72c1fef (patch) | |
tree | 59fbd217d45e18d493e6b698f518275ce484eeaf /ipalib/plugins/cert.py | |
parent | 453a19fcaca9c2be1e3d0e78b734bd05e7d50764 (diff) | |
download | freeipa-bc9684b05626cf80ff5da239d16da7d2a72c1fef.tar.gz freeipa-bc9684b05626cf80ff5da239d16da7d2a72c1fef.tar.xz freeipa-bc9684b05626cf80ff5da239d16da7d2a72c1fef.zip |
The name coming out of DNS will have a trailing dot (.). Remove it.
Diffstat (limited to 'ipalib/plugins/cert.py')
-rw-r--r-- | ipalib/plugins/cert.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/plugins/cert.py b/ipalib/plugins/cert.py index f446b36b5..9750de6f4 100644 --- a/ipalib/plugins/cert.py +++ b/ipalib/plugins/cert.py @@ -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") |