+
    G%@i                     v    ^ 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# )	    N)PluginRedHatPluginDebianPluginUbuntuPluginc                   @   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 authenticationkrb5Nc                   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.logkerberos_kdc_log)tagszklist -ket z/.k5*zklist -ket /etc/krb5.keytabN)add_copy_speckdcdircollect_kinitadd_cmd_output)selfs   &9/usr/lib/python3/dist-packages/sos/report/plugins/krb5.pysetup
Krb5.setup   s     {{m:&{{m9%"
 	 	18JKk$++e<=9:    c                D   \         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.confrzutf-8)encodingz\s*id_provider\s*=\s*ad.:N   NzMKRB5_TRACE=/dev/stdout                                             kinit -k 'z$'z\s*id_provider\s*=\s*ipa'N)
socketgetfqdnpath_isfileopenrematch
IGNORECASEsplitupperr   )r   hostname	sssd_confflines   &    r   r   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	 )identitysystem)__name__
__module____qualname____firstlineno____doc__
short_descplugin_nameprofilesr   r   r   __static_attributes____classdictcell__)__classdict__s   @r   r   r      s/      +JK%HF; r   r   c                       ] tR t^GtRtRtRtR# )
RedHatKrb5z/var/kerberos/krb5kdcr*   N)z	krb5-libszkrb5-serverr-   r.   r/   r0   packagesr   r5   r*   r   r   r9   r9   G   s    +H$Fr   r9   c                       ] 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   sos.report.pluginsr   r   r   r   r   r9   r=   r*   r   r   <module>r?      s>    
  O O46 4n%| % |\  r   