Server IP : 184.107.3.203 / Your IP : 216.73.216.51 Web Server : Apache System : Linux dedicated2.avenfashion.com.ph 4.18.0-553.40.1.el8_10.x86_64 #1 SMP Mon Feb 10 12:11:18 EST 2025 x86_64 User : adminteladeoro ( 1015) PHP Version : 8.2.28 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /usr/lib/python3.6/site-packages/sos/report/plugins/__pycache__/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
3 ~ �g� � @ sR d dl mZmZmZmZ G dd� de�ZG dd� dee�ZG dd� deee�ZdS ) � )�Plugin�RedHatPlugin�DebianPlugin�UbuntuPluginc s4 e Zd ZdZdZdZdZ� fdd�Zd d � Z� Z S )�LdapzLDAP configurationZldap�identity�sysmgmt�systemz/etc/openldap/ldap.confc s t � j� | jd� d S )Nz/etc/ldap.conf)�super�setup� add_copy_spec)�self)� __class__� �/usr/lib/python3.6/ldap.pyr s z Ldap.setupc C s | j ddd� d S )Nz/etc/ldap.confz(\s*bindpw\s*)\S+z\1******)�do_file_sub)r r r r �postproc s z Ldap.postproc)r r r ) �__name__� __module__�__qualname__Z short_descZplugin_nameZprofiles� ldap_confr r � __classcell__r r )r r r s r c s0 e Zd Zd Zd Z� fdd�Z� fdd�Z� ZS )� RedHatLdap�openldap� nss-pam-ldapd�/etc/ldap.conf�/etc/pam_ldap.confc sB t � j� | jdddddg� | j| jdddd g� | jd � 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.dbz/etc/nslcd.confz/etc/pam_ldap.confzcertutil -L -d /etc/openldap)r r Zadd_forbidden_pathr r �add_cmd_output)r )r r r r ! s zRedHatLdap.setupc s* t � j� xdD ]}| j|dd� qW d S )N�/etc/nslcd.conf�/etc/pam_ldap.confz(\s*bindpw\s*)\S+z \1********)r r )r r r )r �file)r r r r 4 s zRedHatLdap.postproc)r r )r r )r r r �packages�filesr r r r r )r r r s r c s0 e Zd ZdZdZ� fdd�Z� fdd�Z� ZS ) � DebianLdapz/etc/ldap/ldap.conf�slapd� ldap-utilsc sf t � j� d}| j| jdddg� | jd� | 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.dz/etc/nslcd.confz+ldapsearch -x -b '' -s base 'objectclass=*'z/-b cn=config '(!(objectClass=olcSchemaConfig))'Zconfiguration_minus_schemas)Zsuggest_filenamez-b cn=schema,cn=config dnZloaded_schemasz0-b cn=config '(olcAccess=*)' olcAccess olcSuffixZaccess_control_lists)r r r r r )r Zldap_search)r r r r C s"