![]() Server : Apache/2.4.52 (Ubuntu) System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64 User : www-data ( 33) PHP Version : 8.1.2-1ubuntu2.21 Disable Function : NONE Directory : /lib/python3/dist-packages/sos/report/plugins/__pycache__/ |
o i��d8 � @ 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 configuration�ldap)�identity�sysmgmt�systemz/etc/openldap/ldap.confc s t t| ��� | �d� d S )N�/etc/ldap.conf)�superr �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__� short_desc�plugin_name�profiles� ldap_confr r � __classcell__r r r r r s r c �0 e Zd ZdZdZ� fdd�Z� fdd�Z� ZS )� RedHatLdap)�openldapz nss-pam-ldapd)r �/etc/pam_ldap.confc s@ t t| ��� | �g d�� | �| jddddg� | �d� d S )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)r r! r �add_forbidden_pathr r �add_cmd_outputr r r r r ! s �zRedHatLdap.setupc s* t t| ��� dD ] }| �|dd� q d S )N)r$ r# r � \1********)r r! r r )r �fr r r r 4 s ��zRedHatLdap.postproc)r r r �packages�filesr r r r r r r r! s r! c r )� DebianLdapz/etc/ldap/ldap.conf)�slapdz ldap-utilsc sj t t| ��� d}| �| jdddg� | �d� | j|d dd� | j|d d d� | j|d dd� d S ) 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)r r+ r r r r&