HEX
Server: Apache
System: Linux dinesh8189 5.15.98-grsec-sharedvalley-2.lc.el8.x86_64 #1 SMP Thu Mar 9 09:07:30 -03 2023 x86_64
User: cgmgerenciamento1 (814285)
PHP: 8.1.26
Disabled: apache_child_terminate,dl,escapeshellarg,escapeshellcmd,exec,link,mail,openlog,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,php_check_syntax,php_strip_whitespace,popen,proc_close,proc_open,shell_exec,symlink,system
Upload Files
File: //usr/lib/python3.6/site-packages/sos/report/plugins/__pycache__/ldap.cpython-36.pyc
3

3��d8�@sRddlmZmZmZmZGdd�de�ZGdd�dee�ZGdd�deee�ZdS)	�)�Plugin�RedHatPlugin�DebianPlugin�UbuntuPlugincs4eZdZdZdZdZdZ�fdd�Zd	d
�Z�Z	S)�LdapzLDAP configurationZldap�identity�sysmgmt�systemz/etc/openldap/ldap.confcstt|�j�|jd�dS)Nz/etc/ldap.conf)�superr�setup�
add_copy_spec)�self)�	__class__��/usr/lib/python3.6/ldap.pyrsz
Ldap.setupcCs|jddd�dS)Nz/etc/ldap.confz(\s*bindpw\s*)\S+z\1******)�do_file_sub)r
rrr�postprocsz
Ldap.postproc)rrr	)
�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofiles�	ldap_confrr�
__classcell__rr)rrrsrcs0eZdZd	Zd
Z�fdd�Z�fdd�Z�ZS)�
RedHatLdap�openldap�
nss-pam-ldapd�/etc/ldap.conf�/etc/pam_ldap.confcsFtt|�j�|jdddddg�|j|jdddd	g�|jd
�dS)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
rrZadd_forbidden_pathrr�add_cmd_output)r
)rrrr!szRedHatLdap.setupcs.tt|�j�xdD]}|j|dd�qWdS)N�/etc/nslcd.conf�/etc/pam_ldap.confz(\s*bindpw\s*)\S+z
\1********)rr)r
rrr)r
�f)rrrr4s
zRedHatLdap.postproc)rr)rr)rrr�packages�filesrrrrr)rrrsrcs0eZdZdZdZ�fdd�Z�fdd�Z�ZS)	�
DebianLdapz/etc/ldap/ldap.conf�slapd�
ldap-utilscsjtt|�j�d}|j|jdddg�|jd�|j|ddd�|j|d	d
d�|j|ddd�dS)
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#rrrr)r
Zldap_search)rrrrCs"
zDebianLdap.setupcs.tt|�j�|jddd�|jddd�dS)Nz/etc/nslcd.confz(\s*bindpw\s*)\S+z
\1********Z
ldapsearchz(olcRootPW\: \s*)\S+)r
r#rrZdo_cmd_output_sub)r
)rrrrZszDebianLdap.postproc)r$r%)rrrrr!rrrrr)rrr#>sr#N)Zsos.report.pluginsrrrrrrr#rrrr�<module>	s"