
    -_gT	                     t    d dl m Z  d dlmZmZmZmZmZ  G d de      Z G d dee      Z G d deee      Z	y	)
    )glob)PluginRedHatPluginDebianPluginUbuntuPluginSoSPredicatec                   (    e Zd ZdZdZdZdZd Zd Zy)SssdzSystem security service daemonsssd)servicessecurityidentity)r   zsssd-commonc                 Z   | j                  g d       | j                  t        d      d       | j                  g d       t        | dg      }| j                  d|	       | j	                  d
|	      }|d   dk(  r-|d   j                         D ]  }| j                  d|z           y y )N)/etc/sssd/sssd.confz/etc/sssd/conf.d/*.confz%/var/lib/sss/pubconf/krb5.include.d/*z/var/log/sssd/*log*	sssd_logs)tags)z/var/lib/sss/mc/passwdz/var/lib/sss/mc/groupz/var/lib/sss/mc/initgroupsr   )r   zsssctl config-check)predzsssctl domain-liststatusr   outputzsssctl domain-status -o )add_copy_specr   r   add_cmd_outputcollect_cmd_output
splitlines)self	sssd_preddomaindomain_names       9/usr/lib/python3/dist-packages/sos/report/plugins/sssd.pysetupz
Sssd.setup   s     
 	 	4 56[I 	 
 	 !9	1	B (()=I(N(q %h/::< N##$>$LMN !    c                 T    d}| j                  d|d       | j                  d|d       y )Nz#((\s*ldap_default_authtok\s*=)(.*))r   z\2 ********z/etc/sssd/conf.d/*)do_file_subdo_path_regex_sub)r   regexps     r   postproczSssd.postproc8   s-    7.G3V^Lr    N)	__name__
__module____qualname__
short_descplugin_nameprofilespackagesr   r%    r    r   r
   r
      s#    1JK3H&HN@Mr    r
   c                       e Zd Zy)
RedHatSssdN)r&   r'   r(   r-   r    r   r/   r/   ?   s    r    r/   c                        e Zd Z fdZ xZS )
DebianSssdc                 D    t         |           | j                  d       y )Nz/etc/default/sssd)superr   r   )r   	__class__s    r   r   zDebianSssd.setupE   s    ./r    )r&   r'   r(   r   __classcell__)r4   s   @r   r1   r1   C   s    0 0r    r1   N)
r   sos.report.pluginsr   r   r   r   r   r
   r/   r1   r-   r    r   <module>r7      sA    < <,M6 ,M^	| 	0|\ 0r    