Sindbad~EG File Manager

Current Path : /lib/python3.6/site-packages/sos/report/plugins/__pycache__/
Upload File :
Current File : //lib/python3.6/site-packages/sos/report/plugins/__pycache__/sssd.cpython-36.pyc

3

�fT	�@sbddlmZddlmZmZmZmZmZGdd�de�ZGdd�dee�ZGdd�deee�Z	d	S)
�)�glob)�Plugin�RedHatPlugin�DebianPlugin�UbuntuPlugin�SoSPredicatec@s,eZdZdZdZdZd
Zdd�Zd	d
�ZdS)�SssdzSystem security service daemon�sssd�services�security�identity�sssd-commoncCs�|jdddg�|jtd�dd�|jddd	g�t|d
gd�}|jd|d
�|jd|d
�}|ddkr�x"|dj�D]}|jd|�qvWdS)Nz/etc/sssd/sssd.confz/etc/sssd/conf.d/*.confz%/var/lib/sss/pubconf/krb5.include.d/*z/var/log/sssd/*log*Z	sssd_logs)Ztagsz/var/lib/sss/mc/passwdz/var/lib/sss/mc/groupz/var/lib/sss/mc/initgroupsr	)r
zsssctl config-check)Zpredzsssctl domain-listZstatusr�outputzsssctl domain-status -o )�
add_copy_specrrZadd_cmd_outputZcollect_cmd_output�
splitlines)�selfZ	sssd_predZdomainZdomain_name�r�/usr/lib/python3.6/sssd.py�setupsz
Sssd.setupcCs$d}|jd|d�|jd|d�dS)Nz#((\s*ldap_default_authtok\s*=)(.*))z/etc/sssd/sssd.confz\2 ********z/etc/sssd/conf.d/*)Zdo_file_subZdo_path_regex_sub)rZregexprrr�postproc8sz
Sssd.postprocN)r
rr)r	r
)	�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofilesZpackagesrrrrrrrs rc@seZdZdS)�
RedHatSssdN)rrrrrrrr?srcseZdZ�fdd�Z�ZS)�
DebianSssdcst�j�|jd�dS)Nz/etc/default/sssd)�superrr)r)�	__class__rrrEs
zDebianSssd.setup)rrrr�
__classcell__rr)rrrCsrN)
rZsos.report.pluginsrrrrrrrrrrrr�<module>s/

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists