+
    i  c                   sf    ^ RI HtHtHtHt  ! R R]4      t ! R R]]4      t ! R R]]]4      tR# )	i    )PluginRedHatPluginDebianPluginUbuntuPluginc                   sH   a a ] tR t^t oRtRtRtRtV 3R ltR t	Rt
VtV ;t# )LdapzLDAP configurationZldapz/etc/openldap/ldap.confc                sF   < \         SV `  4        V P                  R 4       R# )/etc/ldap.confN)supersetupadd_copy_specself	__class__   &</usr/lib/python3.14/site-packages/sos/report/plugins/ldap.pyr   Z
Ldap.setup   s    +,    c                s,    V P                  R RR4       R# )r   (\s*bindpw\s*)\S+z\1******N)do_file_sub)r
   s   &r   postprocZLdap.postproc   s    )+?Mr    )ZidentityZsysmgmtZsystem)__name__
__module____qualname____firstlineno__Z
short_descZplugin_nameZprofiles	ldap_confr   r   __static_attributes____classdictcell____classcell__r   Z__classdict__   @@r   r   r      s*     %JK0H)I-N Nr   r   c                   sF   a a ] tR t^t oRtRtV 3R ltV 3R ltRtVt	V ;t
# )
RedHatLdapc                s   < \         SV `  4        V P                  . RO4       V P                  V P                  RRRR.4       V P                  R4       R# )/etc/openldap/certs/passwordz/etc/openldap/certs/cert8.dbz/etc/openldap/certs/secmod.db/etc/nslcd.conf/etc/pam_ldap.confzcertutil -L -d /etc/openldapN)r   z/etc/openldap/certs/pwfile.txtz/etc/openldap/certs/pin.txtz/etc/openldap/certs/*passw*z/etc/openldap/certs/key3.db)r   r   Zadd_forbidden_pathr   r   add_cmd_outputr	   r   r   r   ZRedHatLdap.setup!   sX     !
 	 	NN*+ 
 	 	:;r   c                s\   < \         SV `  4        R F  pV P                  VRR4       K  	  R# )r   r   
\1********N)r   r    )r   r   r   )r
   Zfiler      & r   r   ZRedHatLdap.postproc4   s/    =D$ >r   r   )Zopenldapznss-pam-ldapd)r   r    )r   r   r   r   packagesZfilesr   r   r   r   r   r   r   r   r   r      s     ,H4E<& r   r   c                   sF   a a ] tR t^>t oRtRtV 3R ltV 3R ltRtVt	V ;t
# )
DebianLdapz/etc/ldap/ldap.confc                s$  < \         SV `  4        R pV P                  V P                  RRR.4       V P	                  R4       V P	                  VR,           RR7       V P	                  VR,           R	R7       V P	                  VR
,           RR7       R# )z,ldapsearch -Q -LLL -Y EXTERNAL -H ldapi:/// z/etc/slapd.confz/etc/ldap/slapd.dr   z+ldapsearch -x -b '' -s base 'objectclass=*'z/-b cn=config '(!(objectClass=olcSchemaConfig))'Zconfiguration_minus_schemas)Zsuggest_filenamez-b cn=schema,cn=config dnZloaded_schemasz0-b cn=config '(olcAccess=*)' olcAccess olcSuffixZaccess_control_listsN)r   r   r   r   r!   )r
   Zldap_searchr   r#   r   r   ZDebianLdap.setupC   s    DNN	
 	 	IJKK: 	 	< 	55- 	 	/ 	LL3 	 	5r   c                sp   < \         SV `  4        V P                  R RR4       V P                  RRR4       R# )r   r   r"   Z
ldapsearchz(olcRootPW\: \s*)\S+N)r   r   r   Zdo_cmd_output_subr	   r   r   r   ZDebianLdap.postprocZ   s>     	

 	#	
r   r   )Zslapdz
ldap-utils)r   r   r   r   r   r$   r   r   r   r   r   r   r   r   r%   r%   >   s     %I&H5.
 
r   r%   N)Zsos.report.pluginsr    r   r   r   r   r   r%   r   r   r   <module>r&      s;    P ON6 N | D'
|\ '
r   