o
    O6uf¥  ã                   @   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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 authenticationÚkrb5)ÚidentityÚsystemNc                 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.logÚkerberos_kdc_log)Útagszklist -ket z/.k5*zklist -ket /etc/krb5.keytab)Úadd_copy_specÚkdcdirÚadd_cmd_output)Úself© r   ú9/usr/lib/python3/dist-packages/sos/report/plugins/krb5.pyÚsetup   s   

ûz
Krb5.setup)	Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú
short_descÚplugin_nameÚprofilesr   r   r   r   r   r   r      s    r   c                   @   ó   e Zd ZdZdZdS )Ú
RedHatKrb5)z	krb5-libszkrb5-serverz/var/kerberos/krb5kdcN©r   r   r   Úpackagesr   r   r   r   r   r   )   ó    r   c                   @   r   )Ú
UbuntuKrb5)zkrb5-kdczkrb5-configz	krb5-userz/var/lib/krb5kdcNr   r   r   r   r   r   /   r   r   N)Úsos.report.pluginsr   r   r   r   r   r   r   r   r   r   r   Ú<module>   s   
