HEX
Server: Apache
System: Linux 185.122.168.184.host.secureserver.net 5.14.0-570.60.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Nov 5 05:00:59 EST 2025 x86_64
User: barbeatleanalyti (1024)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //lib/python3.9/site-packages/sos/report/plugins/__pycache__/ldap.cpython-39.opt-1.pyc
a

\��h��@sRddlmZmZmZmZGdd�de�ZGdd�dee�ZGdd�deee�ZdS)	�)�Plugin�RedHatPlugin�DebianPlugin�UbuntuPlugincs4eZdZdZdZdZdZ�fdd�Zdd�Z�Z	S)	�LdapzLDAP configurationZldap)�identityZsysmgmt�systemz/etc/openldap/ldap.confcst���|�d�dS)N�/etc/ldap.conf)�super�setup�
add_copy_spec��self��	__class__��;/usr/lib/python3.9/site-packages/sos/report/plugins/ldap.pyrs
z
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_confrr�
__classcell__rrrrrsrcs0eZdZdZdZ�fdd�Z�fdd�Z�ZS)�
RedHatLdap)Zopenldapz
nss-pam-ldapd)r	�/etc/pam_ldap.confcs<t���|�gd��|�|jddddg�|�d�dS)N)z/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
rZadd_forbidden_pathrr�add_cmd_outputr
rrrr!s
�zRedHatLdap.setupcs&t���dD]}|�|dd�qdS)N)rrr�
\1********)r
rr)r�filerrrr4s
�zRedHatLdap.postproc)rrr�packages�filesrrrrrrrrsrcs0eZdZdZdZ�fdd�Z�fdd�Z�ZS)�
DebianLdapz/etc/ldap/ldap.conf)Zslapdz
ldap-utilscsft���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
rrrr)rZldap_searchrrrrCs*
�
���zDebianLdap.setupcs*t���|�ddd�|�ddd�dS)NrrrZ
ldapsearchz(olcRootPW\: \s*)\S+)r
rrZdo_cmd_output_subr
rrrrZs
��zDebianLdap.postproc)rrrrr!rrrrrrrr#>sr#N)Zsos.report.pluginsrrrrrrr#rrrr�<module>	s"