MOON
Server: Apache
System: Linux server2.shieldcogroup.com 3.10.0-1160.119.1.el7.tuxcare.els12.x86_64 #1 SMP Fri Nov 8 05:49:38 UTC 2024 x86_64
User: jacom (1029)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //etc/leapp/repos.d/system_upgrade/el7toel8/models/pamconfiguration.py
from leapp.models import fields, Model
from leapp.topics import SystemInfoTopic


class PamService(Model):
    """
    Pam service description

    This model contains information about pam modules used by specific PAM
    service/filename
    """
    topic = SystemInfoTopic

    service = fields.String()
    modules = fields.List(fields.String())
    # Should this also list includes?


class PamConfiguration(Model):
    """
    Global PAM configuration

    This model describes separate services using PAM and what pam modules are
    used in each of them. Consumer can select just the pam services he is
    interested in or scan for specific configuration throughout all the services.
    """
    topic = SystemInfoTopic

    services = fields.List(fields.Model(PamService))