mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Use system-wide crypto-policies on Fedora
HTTPS connections from IPA framework and bind named instance now use system-wide crypto-policies on Fedora. For HTTPS the 'DEFAULT' crypto policy also includes unnecessary ciphers for PSK, SRP, aDSS and 3DES. Since these ciphers are not used by freeIPA, they are explicitly excluded. See: https://bugzilla.redhat.com/show_bug.cgi?id=1179925 See: https://bugzilla.redhat.com/show_bug.cgi?id=1179220 Fixes: https://pagure.io/freeipa/issue/4853 Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
This commit is contained in:
@@ -768,6 +768,13 @@ class BindInstance(service.Service):
|
||||
logger.debug("Unable to mask named (%s)", e)
|
||||
|
||||
def __setup_sub_dict(self):
|
||||
if paths.NAMED_CRYPTO_POLICY_FILE is not None:
|
||||
crypto_policy = 'include "{}";'.format(
|
||||
paths.NAMED_CRYPTO_POLICY_FILE
|
||||
)
|
||||
else:
|
||||
crypto_policy = "// not available"
|
||||
|
||||
self.sub_dict = dict(
|
||||
FQDN=self.fqdn,
|
||||
SERVER_ID=installutils.realm_to_serverid(self.realm),
|
||||
@@ -780,7 +787,8 @@ class BindInstance(service.Service):
|
||||
NAMED_PID=paths.NAMED_PID,
|
||||
NAMED_VAR_DIR=paths.NAMED_VAR_DIR,
|
||||
BIND_LDAP_SO=paths.BIND_LDAP_SO,
|
||||
)
|
||||
INCLUDE_CRYPTO_POLICY=crypto_policy,
|
||||
)
|
||||
|
||||
def __setup_dns_container(self):
|
||||
self._ldap_mod("dns.ldif", self.sub_dict)
|
||||
|
||||
Reference in New Issue
Block a user