HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/python3/dist-packages/sos/report/plugins/__pycache__/ldap.cpython-38.pyc
U

i��d8�@sRddlmZmZmZmZGdd�de�ZGdd�dee�ZGdd�deee�ZdS)	�)�Plugin�RedHatPlugin�DebianPlugin�UbuntuPlugincs4eZdZdZdZdZdZ�fdd�Zdd�Z�Z	S)	�LdapzLDAP configurationZldap)ZidentityZsysmgmt�systemz/etc/openldap/ldap.confcstt|���|�d�dS)N�/etc/ldap.conf)�superr�setup�
add_copy_spec��self��	__class__��9/usr/lib/python3/dist-packages/sos/report/plugins/ldap.pyr
sz
Ldap.setupcCs|�ddd�dS)Nr�(\s*bindpw\s*)\S+z\1******)�do_file_subrrrr�postprocsz
Ldap.postproc)
�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofiles�	ldap_confr
r�
__classcell__rrrrrsrcs0eZdZdZdZ�fdd�Z�fdd�Z�ZS)�
RedHatLdap)Zopenldapz
nss-pam-ldapd)r�/etc/pam_ldap.confcsFtt|���|�dddddg�|�|jdddd	g�|�d
�dS)Nz/etc/openldap/certs/passwordz/etc/openldap/certs/pwfile.txtz/etc/openldap/certs/pin.txtz/etc/openldap/certs/*passw*z/etc/openldap/certs/key3.dbz/etc/openldap/certs/cert8.dbz/etc/openldap/certs/secmod.db�/etc/nslcd.confrzcertutil -L -d /etc/openldap)r	rr
Zadd_forbidden_pathrr�add_cmd_outputrrrrr
!s ��zRedHatLdap.setupcs*tt|���dD]}|�|dd�qdS)N)rrr�
\1********)r	rrr)r
�frrrr4s�zRedHatLdap.postproc)rrr�packages�filesr
rrrrrrrsrcs0eZdZdZdZ�fdd�Z�fdd�Z�ZS)�
DebianLdapz/etc/ldap/ldap.conf)Zslapdz
ldap-utilscsjtt|���d}|�|jdddg�|�d�|j|ddd�|j|d	d
d�|j|ddd�dS)
Nz,ldapsearch -Q -LLL -Y EXTERNAL -H ldapi:/// z/etc/slapd.confz/etc/ldap/slapd.drz+ldapsearch -x -b '' -s base 'objectclass=*'z/-b cn=config '(!(objectClass=olcSchemaConfig))'Zconfiguration_minus_schemas)Zsuggest_filenamez-b cn=schema,cn=config dnZloaded_schemasz0-b cn=config '(olcAccess=*)' olcAccess olcSuffixZaccess_control_lists)r	r"r
rrr)r
Zldap_searchrrrr
Cs*�
���zDebianLdap.setupcs.tt|���|�ddd�|�ddd�dS)NrrrZ
ldapsearchz(olcRootPW\: \s*)\S+)r	r"rrZdo_cmd_output_subrrrrrZs��zDebianLdap.postproc)rrrrr r
rrrrrrr">sr"N)Zsos.report.pluginsrrrrrrr"rrrr�<module>	s"