+
    i  c                   sv    ^ RI t ^ RIt^ RIHtHtHtHt  ! R R]4      t ! R R]]4      t ! R R]]]4      t	R# )	i    N)PluginRedHatPluginDebianPluginUbuntuPluginc                   s@   a  ] tR t^t o RtRtRtRtRtR t	R t
RtV tR# )	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krb5Nc                s   V P                  R RV P                   R2V P                   R2R.4       V P                  4        V P                  RRR7       V P                  RV P                   R	24       V P                  R
4       R# )z/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.keytabN)Zadd_copy_speckdcdircollect_kinitadd_cmd_output)selfs   &</usr/lib/python3.14/site-packages/sos/report/plugins/krb5.pysetupZ
Krb5.setup   s     {{m:&{{m9%"
 	 	18JKk$++e<=9:    c                sD   \         P                  ! 4       pRpV P                  V4      '       d   \        VRRR7      ;_uu_ 4       pV F  p\        P
                  ! RV\        P                  4      '       dE   VP                  R4      ^ ,          R,          P                  4       pV P                  RV R	24        MG\        P
                  ! R
V\        P                  4      '       g   K  V P                  RV R24        M	  RRR4       R# R#   + '       g   i     R# ; i)z
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.confZrzutf-8)Zencodingz\s*id_provider\s*=\s*adZ.:Ni   NzMKRB5_TRACE=/dev/stdout                                             kinit -k 'z$'z\s*id_provider\s*=\s*ipaZ'N)
socketZgetfqdnZpath_isfileZopenreZmatchZ
IGNORECASEZsplitZupperr   )r   ZhostnameZ	sssd_confZfZlines   &    r	   r   ZKrb5.collect_kinit+   s     >>#)	I&&iw771Dxx : $bmm5 5#+>>##6q#9##>#D#D#F++ /77?j-D Exx ; $bmm5 5++ /77?j-C D  87 '777s   BD)DD	 )ZidentityZsystem)__name__
__module____qualname____firstlineno__Z__doc__Z
short_descZplugin_nameZprofilesr   r
   r   __static_attributes__Z__classdictcell__)Z__classdict__s   @r	   r   r      s/      +JK%HF; r   r   c                   s    ] tR t^GtRtRtRtR# )
RedHatKrb5z/var/kerberos/krb5kdcr   N)z	krb5-libszkrb5-serverr   r   r   r   Zpackagesr   r   r   r   r	   r   r   G   s    +H$Fr   r   c                   s    ] tR t^MtRtRtRtR# )
UbuntuKrb5z/var/lib/krb5kdcr   N)zkrb5-kdczkrb5-configz	krb5-userr   r   r   r	   r   r   M   s    7HFr   r   )
r   r   Zsos.report.pluginsr    r   r   r   r   r   r   r   r   r	   <module>r      s>    
  O O46 4n%| % |\  r   