%PDF- %PDF-
Direktori : /lib/python3/dist-packages/sos/report/plugins/__pycache__/ |
Current File : //lib/python3/dist-packages/sos/report/plugins/__pycache__/ds.cpython-312.pyc |
� i��d: � �, � d dl mZmZ G d� dee� Zy)� )�Plugin�RedHatPluginc �2 � e Zd ZdZdZdZdZdZd� Zd� Z d� Z y ) �DirectoryServerzDirectory Server�ds)�identity)�/etc/dirsrv�/opt/redhat-ds)�redhat-ds-base�redhat-ds-7c � � | j d� s| j d� ry| j d� s| j d� ryy)Nr r �ds8r r �ds7F)�is_installed�path_exists)�selfs �7/usr/lib/python3/dist-packages/sos/report/plugins/ds.py� check_versionzDirectoryServer.check_version sE � ����-�.�� � ��/�� � � �}� -�� � �!1�2��� c �B � | j g d�� | j d� D ]E }|dd dk( s�| j d|� }| j d|z � | j d|z � �G | j � s| j d � n^d | j � v r'| j g d�� | j dd i� n%d| j � v r| j ddg� | j d� y # t $ r | j d� Y ��w xY w)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_accessr z/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}| j d||� | j d||� 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.postprocO s8 � � H� �G� ������� �D�A����� �4�@r N)�__name__� __module__�__qualname__� short_desc�plugin_name�profiles�files�packagesr r% r+ � r r r r s- � �#�J��K��H�-�E�0�H��*B�XAr r N)�sos.report.pluginsr r r r4 r r �<module>r6 s �� 4�OA�f�l� OAr