%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__/ds.cpython-312.pyc

�

i��d:��,�ddlmZmZGd�dee�Zy)�)�Plugin�RedHatPluginc�2�eZdZdZdZdZdZdZd�Zd�Z	d�Z
y	)
�DirectoryServerzDirectory Server�ds)�identity)�/etc/dirsrv�/opt/redhat-ds)�redhat-ds-base�redhat-ds-7c��|jd�s|jd�ry|jd�s|jd�ryy)Nrr	�ds8rr
�ds7F)�is_installed�path_exists)�selfs �7/usr/lib/python3/dist-packages/sos/report/plugins/ds.py�
check_versionzDirectoryServer.check_versionsE�����-�.�� � ��/��
�
�
�}�
-�� � �!1�2���c�B�|jgd��	|jd�D]E}|dddk(s�|jd|�}|jd|z�|jd|z��G	|j
�s|jd	�n^d
|j
�vr'|jgd��|jdd
i�n%d|j
�vr|jddg�|jd�y#t$r|jd�Y��wxYw)N)z/etc/dirsrv/slapd*/pin.txtz/etc/dirsrv/slapd*/key3.dbz/etc/dirsrv/slapd*/pwfile.txtz/etc/dirsrv/slapd*/*passw*z"/etc/dirsrv/admin-serv/key[3-4].dbz/etc/dirsrv/admin-serv/admpwz$/etc/dirsrv/admin-serv/password.confr	r��slapdzcertutil -L -d %szdsctl %s healthcheckzcould not list /etc/dirsrvzDirectory Server not found.r)z/etc/dirsrv/slapd*/cert8.dbz/etc/dirsrv/slapd*/certmap.confz/etc/dirsrv/slapd*/dse.ldifz#/etc/dirsrv/slapd*/dse.ldif.startOKz/etc/dirsrv/slapd*/secmod.dbz /etc/dirsrv/slapd*/schema/*.ldifz/etc/dirsrv/admin-servz/var/log/dirsrv/*z/var/log/dirsrv/*/access�
dirsrv_accessrz/opt/redhat-ds/slapd-*/configz/opt/redhat-ds/slapd-*/logsz"ls -l /var/lib/dirsrv/slapd-*/db/*)
�add_forbidden_path�listdir�	path_join�add_cmd_output�OSError�	_log_warnr�	add_alert�
add_copy_spec�
add_file_tags)r�d�certpaths   r�setupzDirectoryServer.setup#s.�����!
�	�	9��\�\�-�0�
D���Q�q�6�W�$�#�~�~�m�Q�?�H��'�'�(;�h�(F�G��'�'�(>��(B�C�	
D��!�!�#��N�N�8�9�
�d�(�(�*�
*����	 �	
�
���*�O� �
��d�(�(�*�
*����/�-� �
�
	
���@�A��3�	9��N�N�7�8�	9�s�D�<D�D�Dc�\�d}d}d}|jd||�|jd||�y)Nz/(nsslapd-rootpw(\s)*:(\s)*)(\S+)([\r\n]\s.*)*\nz0(nsSymmetricKey(\s)*::(\s)*)(\S+)([\r\n]\s.*)*\nz\1********\nz
/etc/dirsrv/*)�do_path_regex_sub)r�
regexppass�	regexpkey�repls    r�postproczDirectoryServer.postprocOs8��H�
�G�	�������
�D�A�����	�4�@rN)�__name__�
__module__�__qualname__�
short_desc�plugin_name�profiles�files�packagesrr%r+�rrrrs-��#�J��K��H�-�E�0�H��*B�XArrN)�sos.report.pluginsrrrr4rr�<module>r6s��4�OA�f�l�OAr

Zerion Mini Shell 1.0