mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Skip cert issuer validation in service and host commands in CA-less install.
https://fedorahosted.org/freeipa/ticket/3736
This commit is contained in:
parent
784f484cad
commit
ec75348354
@ -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):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user