HEX
Server: Apache
System: Linux insrv.serversdaddy.com 5.14.0-362.24.2.el9_3.x86_64 #1 SMP PREEMPT_DYNAMIC Sat Mar 30 14:11:54 EDT 2024 x86_64
User: jsaha (1066)
PHP: 8.3.6
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/lib/python3.9/site-packages/sos/report/plugins/__pycache__/ldap.cpython-39.pyc
a

^��cz�@sRddlmZmZmZmZGdd�de�ZGdd�dee�ZGdd�deee�ZdS)	�)�Plugin�RedHatPlugin�DebianPlugin�UbuntuPlugincs4eZdZdZdZdZdZ�fdd�Zdd�Z�Z	S)	�LdapzLDAP configurationZldap)�identityZsysmgmt�systemz/etc/openldap/ldap.confcstt|���|�d�dS)N�/etc/ldap.conf)�superr�setup�
add_copy_spec��self��	__class__��;/usr/lib/python3.9/site-packages/sos/report/plugins/ldap.pyrsz
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@tt|���|�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
rrZadd_forbidden_pathrr�add_cmd_outputr
rrrr!s�zRedHatLdap.setupcs.tt|���|�ddd�|�ddd�dS)Nrr�
\1********r)r
rrrr
rrrr4s��zRedHatLdap.postproc)rrr�packages�filesrrrrrrrrs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"rrrr)rZldap_searchrrrrGs*�
���zDebianLdap.setupcs.tt|���|�ddd�|�ddd�dS)NrrrZ
ldapsearchz(olcRootPW\: \s*)\S+)r
r"rrZdo_cmd_output_subr
rrrr^s��zDebianLdap.postproc)rrrrr rrrrrrrr"Bsr"N)Zsos.report.pluginsrrrrrrr"rrrr�<module>	s&