HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/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"