Skip cert issuer validation in service and host commands in CA-less install.

https://fedorahosted.org/freeipa/ticket/3736
This commit is contained in:
Jan Cholasta 2013-07-03 11:00:58 +02:00 committed by Rob Crittenden
parent 784f484cad
commit ec75348354

View File

@ -61,9 +61,12 @@ def subject_base():
return _subject_base
def valid_issuer(issuer):
if not api.env.enable_ra:
return True
# Handle all supported forms of issuer -- currently dogtag only.
if api.env.ra_plugin == 'dogtag':
return DN(issuer) == DN(('CN', 'Certificate Authority'), subject_base())
return True
def strip_header(pem):
"""