+
    G%@i                     f    ^ RI HtHtHtHt  ! R R]4      t ! R R]]4      t ! R R]]]4      tR# )	    )PluginRedHatPluginDebianPluginUbuntuPluginc                   H   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 configurationldapz/etc/openldap/ldap.confc                F   < \         SV `  4        V P                  R 4       R# )/etc/ldap.confN)supersetupadd_copy_specself	__class__s   &9/usr/lib/python3/dist-packages/sos/report/plugins/ldap.pyr   
Ldap.setup   s    +,    c                ,    V P                  R RR4       R# )r   (\s*bindpw\s*)\S+z\1******N)do_file_sub)r   s   &r   postprocLdap.postproc   s    )+?Mr    )identitysysmgmtsystem)__name__
__module____qualname____firstlineno__
short_descplugin_nameprofiles	ldap_confr   r   __static_attributes____classdictcell____classcell__r   __classdict__s   @@r   r   r      s*     %JK0H)I-N Nr   r   c                   F   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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   add_forbidden_pathr   r%   add_cmd_outputr   s   &r   r   RedHatLdap.setup!   sX     !
 	 	NN*+ 
 	 	:;r   c                \   < \         SV `  4        R F  pV P                  VRR4       K  	  R# )r/   r   
\1********N)r/   r0   )r   r   r   )r   filer   s   & r   r   RedHatLdap.postproc4   s/    =D$ >r   r   )openldapznss-pam-ldapd)r   r0   )r   r   r    r!   packagesfilesr   r   r&   r'   r(   r)   s   @@r   r,   r,      s     ,H4E<& r   r,   c                   F   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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))'configuration_minus_schemas)suggest_filenamez-b cn=schema,cn=config dnloaded_schemasz0-b cn=config '(olcAccess=*)' olcAccess olcSuffixaccess_control_listsN)r   r   r   r%   r2   )r   ldap_searchr   s   & r   r   DebianLdap.setupC   s    DNN	
 	 	IJKK: 	 	< 	55- 	 	/ 	LL3 	 	5r   c                p   < \         SV `  4        V P                  R RR4       V P                  RRR4       R# )r/   r   r5   
ldapsearchz(olcRootPW\: \s*)\S+N)r   r   r   do_cmd_output_subr   s   &r   r   DebianLdap.postprocZ   s>     	

 	#	
r   r   )slapdz
ldap-utils)r   r   r    r!   r%   r9   r   r   r&   r'   r(   r)   s   @@r   r<   r<   >   s     %I&H5.
 
r   r<   N)sos.report.pluginsr   r   r   r   r   r,   r<   r   r   r   <module>rJ      s;    P ON6 N | D'
|\ '
r   