mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
certdb, certs: make trust flags argument mandatory
Make the trust flags argument mandatory in all functions in `certdb` and `certs`. https://pagure.io/freeipa/issue/6831 Reviewed-By: Stanislav Laznicka <slaznick@redhat.com> Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
This commit is contained in:
committed by
Martin Basti
parent
235265a5f5
commit
f0442a2d0e
@@ -23,7 +23,7 @@ import ipaclient.install.ntpconf
|
||||
from ipalib.install import certstore, sysrestore
|
||||
from ipalib.install.kinit import kinit_keytab
|
||||
from ipapython import ipaldap, ipautil
|
||||
from ipapython.certdb import IPA_CA_TRUST_FLAGS
|
||||
from ipapython.certdb import IPA_CA_TRUST_FLAGS, EXTERNAL_CA_TRUST_FLAGS
|
||||
from ipapython.dn import DN
|
||||
from ipapython.ipa_log_manager import root_logger
|
||||
from ipapython.admintool import ScriptError
|
||||
@@ -740,7 +740,7 @@ def install_check(installer):
|
||||
if ca_enabled:
|
||||
trust_flags = IPA_CA_TRUST_FLAGS
|
||||
else:
|
||||
trust_flags = None
|
||||
trust_flags = EXTERNAL_CA_TRUST_FLAGS
|
||||
tmp_db.create_from_pkcs12(pkcs12_info[0], pkcs12_info[1],
|
||||
ca_file=cafile,
|
||||
trust_flags=trust_flags)
|
||||
|
||||
Reference in New Issue
Block a user