2020-07-09 02:36:36 -05:00
|
|
|
#
|
|
|
|
# Copyright (C) 2020 FreeIPA Contributors see COPYING for license
|
|
|
|
#
|
|
|
|
"""RHEL container tasks
|
|
|
|
"""
|
2020-08-06 05:44:32 -05:00
|
|
|
import logging
|
|
|
|
|
2020-07-09 02:36:36 -05:00
|
|
|
from ipaplatform.rhel.tasks import RHELTaskNamespace
|
|
|
|
|
|
|
|
|
2020-08-06 05:44:32 -05:00
|
|
|
logger = logging.getLogger(__name__)
|
|
|
|
|
|
|
|
|
2020-07-09 02:36:36 -05:00
|
|
|
class RHELContainerTaskNamespace(RHELTaskNamespace):
|
2020-08-06 05:44:32 -05:00
|
|
|
def modify_nsswitch_pam_stack(
|
2022-05-18 10:38:05 -05:00
|
|
|
self, sssd, mkhomedir, statestore, sudo=True, subid=False
|
2020-08-06 05:44:32 -05:00
|
|
|
):
|
|
|
|
# freeipa-container images are preconfigured
|
|
|
|
# authselect select sssd with-sudo --force
|
|
|
|
logger.debug("Authselect is pre-configured in container images.")
|
|
|
|
|
|
|
|
def is_mkhomedir_supported(self):
|
|
|
|
# authselect is not pre-configured with mkhomedir
|
|
|
|
return False
|
|
|
|
|
|
|
|
def restore_auth_configuration(self, path):
|
|
|
|
# backup is supported but restore is a no-op
|
|
|
|
logger.debug("Authselect is pre-configured in container images.")
|
|
|
|
|
|
|
|
def migrate_auth_configuration(self, statestore):
|
|
|
|
logger.debug("Authselect is pre-configured in container images.")
|
2020-07-09 02:36:36 -05:00
|
|
|
|
|
|
|
|
|
|
|
tasks = RHELContainerTaskNamespace()
|