← Back
Editing: ldap.cpython-38.pyc
U O6uf� � @ sR d dl mZmZmZmZ G dd� de�ZG dd� dee�ZG dd� deee�ZdS ) � )�Plugin�RedHatPlugin�DebianPlugin�UbuntuPluginc s4 e Zd ZdZdZdZdZ� fdd�Zdd� Z� Z S ) �LdapzLDAP configurationZldap)ZidentityZsysmgmt�systemz/etc/openldap/ldap.confc s t � �� | �d� d S )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.setupc C s | � ddd� d S )Nr �(\s*bindpw\s*)\S+z\1******)�do_file_subr r r r �postproc s z Ldap.postproc) �__name__� __module__�__qualname__Z short_descZplugin_nameZprofiles� ldap_confr r � __classcell__r r r r r s r c s0 e Zd ZdZdZ� fdd�Z� fdd�Z� ZS )� RedHatLdap)Zopenldapz nss-pam-ldapd)r �/etc/pam_ldap.confc sB t � �� | �dddddg� | �| jdddd g� | �d � d S )Nz/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 Zadd_forbidden_pathr r �add_cmd_outputr r r r r ! s ��zRedHatLdap.setupc s&