관리-도구
편집 파일: ds.pyo
� u��ec @ s? d d l m Z m Z d d l Z d e e f d � � YZ d S( i����( t Plugint RedHatPluginNt DirectoryServerc B s8 e Z d Z d Z d Z d Z d Z d � Z d � Z RS( s Directory Server t dst identitys /etc/dirsrvs /opt/redhat-dss redhat-ds-bases redhat-ds-7c C sN | j d � s! t j j d � r% d S| j d � sF t j j d � rJ d St S( Ns redhat-ds-bases /etc/dirsrvt ds8s redhat-ds-7s /opt/redhat-dst ds7( t is_installedt ost patht existst False( t self( ( s2 /usr/lib/python2.7/site-packages/sos/plugins/ds.pyt check_version s c C s | j d d d d d d d g � yZ xS t j d � D]B } | d d !d k r5 t j j d | � } | j d | � q5 q5 WWn t k r� | j d � n X| j � s� | j d � nb d | j � k r� | j d d d d d d d d g � n( d | j � k r| j d d g � n d S( Ns /etc/dirsrv/slapd*/pin.txts /etc/dirsrv/slapd*/key3.dbs /etc/dirsrv/slapd*/pwfile.txts /etc/dirsrv/slapd*/*passw*s"