File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/beacons/__pycache__/aix_account.cpython-310.pyc
Back
o ;jl � @ s6 d Z ddlZe�e�ZdZdd� Zdd� Zdd � ZdS ) z� Beacon to fire event when we notice a AIX user is locked due to many failed login attempts. .. versionadded:: 2018.3.0 :depends: none � NZaix_accountc C s* t d dkrtS d} t�dt| � d| fS )z$ Only load if kernel is AIX ZkernelZAIXzOnly available on AIX systems.zUnable to load %s beacon: %sF)Z __grains__�__virtualname__�log�error)�err_msg� r �L/opt/saltstack/salt/lib/python3.10/site-packages/salt/beacons/aix_account.py�__virtual__ s r c C s t | t�sdS d| vr dS dS )z+ Validate the beacon configuration )Fz4Configuration for aix_account beacon must be a dict.�user)FzNConfiguration for aix_account beacon must include a user or ALL for all users.)TzValid beacon configuration)� isinstance�dict)�configr r r �validate s r c C s* g }| d }t d |�}|�d|i� |S )z� Checks for locked accounts due to too many invalid login attempts, 3 or higher. .. code-block:: yaml beacons: aix_account: user: ALL interval: 120 r zshadow.login_failuresZaccounts)Z__salt__�append)r �retr Zlocked_accountsr r r �beacon+ s r ) �__doc__�logging� getLogger�__name__r r r r r r r r r �<module> s
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings