U
    id                     @   sR   d dl mZmZmZmZ G dd deZG dd deeZG dd deeeZdS )	    )PluginRedHatPluginDebianPluginUbuntuPluginc                   @   s$   e Zd ZdZdZdZdZdd ZdS )Krb5a:  This plugin handles the collection of kerberos authentication config
    files and logging. Users should expect to see their krb5 config(s) in the
    final archive, along with krb5 logging and `klist` output.

    kdc configs and acls will also be collected from the distribution-spcecific
    kdc directory.
    zKerberos authenticationZkrb5)Zidentitysystemc                 C   sT   |  dd| j d| j ddg | j ddd | d	| j d
 | d d S )Nz/etc/krb5.confz/etc/krb5.conf.d/*z
/kadm5.aclz	/kdc.confz/var/log/kadmind.logz/var/log/krb5kdc.logZkerberos_kdc_log)Ztagszklist -ket z/.k5*zklist -ket /etc/krb5.keytab)Zadd_copy_speckdcdirZadd_cmd_output)self r
   9/usr/lib/python3/dist-packages/sos/report/plugins/krb5.pysetup   s    

z
Krb5.setupN)__name__
__module____qualname____doc__Z
short_descZplugin_nameZprofilesr   r
   r
   r
   r   r      s
   r   c                   @   s   e Zd ZdZdZdS )
RedHatKrb5)z	krb5-libszkrb5-serverz/var/kerberos/krb5kdcNr   r   r   Zpackagesr   r
   r
   r
   r   r   (   s   r   c                   @   s   e Zd ZdZdZdS )
UbuntuKrb5)zkrb5-kdczkrb5-configz	krb5-userz/var/lib/krb5kdcNr   r
   r
   r
   r   r   .   s   r   N)Zsos.report.pluginsr   r   r   r   r   r   r   r
   r
   r
   r   <module>   s   