https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/sos/report/plugins/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/sos/report/plugins/__pycache__/krb5.cpython-310.pyc
o

-�_g��@sbddlZddlZddlmZmZmZmZGdd�de�ZGdd�dee�ZGdd�deee�Z	dS)	�N)�Plugin�RedHatPlugin�DebianPlugin�UbuntuPluginc@s0eZdZdZdZdZdZdZdd�Zdd	�Z	dS)
�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.
    zKerberos authentication�krb5)�identity�systemNcCs\|�dd|j�d�|j�d�dg�|��|jddd�|�d	|j�d
��|�d�dS)Nz/etc/krb5.confz/etc/krb5.conf.d/*z
/kadm5.aclz	/kdc.confz/var/log/kadmind.logz/var/log/krb5kdc.log�kerberos_kdc_log)�tagszklist -ket z/.k5*zklist -ket /etc/krb5.keytab)�
add_copy_spec�kdcdir�
collect_kinit�add_cmd_output)�self�r�9/usr/lib/python3/dist-packages/sos/report/plugins/krb5.py�setups

�z
Krb5.setupcCs�t��}d}|�|�rmt|ddd��Q}|D]5}t�d|tj�r7|�d�ddd	���}|�	d
|�d��nt�d|tj�rJ|�	d
|�d
��nqWd�dSWd�dSWd�dS1sfwYdSdS)a)
        Collect the kinit command output for the system with id_provider "AD"
        or "IPA" domains.

        While integrating the Linux M/c with AD the realmd will create a
        computer object on the AD side. The realmd and AD restrict the
        Hostname/SPN to 15 Characters.
        z/etc/sssd/sssd.conf�rzutf-8)�encodingz\s*id_provider\s*=\s*ad�.rN�zMKRB5_TRACE=/dev/stdout                                             kinit -k 'z$'z\s*id_provider\s*=\s*ipa�')
�socket�getfqdn�path_isfile�open�re�match�
IGNORECASE�split�upperr)r�hostname�	sssd_conf�f�linerrrr+s8

�
��
�����"��zKrb5.collect_kinit)
�__name__�
__module__�__qualname__�__doc__�
short_desc�plugin_name�profilesr
rrrrrrrs
rc@�eZdZdZdZdS)�
RedHatKrb5)z	krb5-libszkrb5-serverz/var/kerberos/krb5kdcN�r&r'r(�packagesr
rrrrr.G�r.c@r-)�
UbuntuKrb5)zkrb5-kdczkrb5-configz	krb5-userz/var/lib/krb5kdcNr/rrrrr2Mr1r2)
rr�sos.report.pluginsrrrrrr.r2rrrr�<module>s
7

https://t.me/RX1948 - 2025