[ Avaa Bypassed ]




Upload:

Command:

www-data@18.188.66.142: ~ $
#!/usr/bin/perl
# Update local LDAP server LDIF file configuration options

require './ldap-server-lib.pl';
&error_setup($text{'slapd_err'});
$access{'slapd'} || &error($text{'slapd_ecannot'});
&local_ldap_server() == 1 || &error($text{'slapd_elocal'});
&ReadParse();

&lock_slapd_files();
$conf = &get_ldif_config();

# Validate and store inputs

# Top-level DN
$defdb = &get_default_db();
$in{'suffix'} =~ /=/ || &error($text{'slapd_esuffix'});
&save_ldif_directive($conf, 'olcSuffix', $defdb, $in{'suffix'});

# Admin login
$in{'rootdn'} =~ /=/ || &error($text{'slapd_erootdn'});
&save_ldif_directive($conf, 'olcRootDN', $defdb, $in{'rootdn'});

# Admin password
if (!$in{'rootchange_def'}) {
	$in{'rootchange'} =~ /\S/ || &error($text{'slapd_erootpw'});
	$crypt = &unix_crypt($in{'rootchange'}, substr(time(), -2));
	&save_ldif_directive($conf, 'olcRootPW', $defdb, "{crypt}".$crypt);
	$config{'pass'} = $in{'rootchange'};
	$save_config = 1;
	}

# Cache sizes
if (!$in{'dbcachesize_def'}) {
	$in{'dbcachesize'} =~ /^\d+$/ || &error($text{'slapd_edbcachesize'});
	&save_ldif_directive($conf, 'olcDbCachesize', $defdb,
			     $in{'dbcachesize'});
	}
else {
	&save_ldif_directive($conf, 'olcDbCachesize', $defdb, undef);
	}

# Size limit
if ($in{'sizelimit_def'}) {
	&save_ldif_directive($conf, 'olcSizeLimit', $defdb, undef);
	}
else {
	$in{'sizelimit'} =~ /^[1-9]\d*$/ || &error($text{'slapd_esizelimit'});
	&save_ldif_directive($conf, 'olcSizeLimit', $defdb, $in{'sizelimit'});
	}

# LDAP protocols
if (&can_get_ldap_protocols()) {
	@newprotos = split(/\0/, $in{'protos'});
	@newprotos || &error($text{'slapd_eprotos'});
	}

# SSL file options
$confdb = &get_config_db();
foreach $s ([ 'olcTLSCertificateFile', 'cert' ],
	    [ 'olcTLSCertificateKeyFile', 'key' ],
	    [ 'olcTLSCACertificateFile', 'ca' ]) {
	if ($in{$s->[1].'_def'}) {
		&save_ldif_directive($conf, $s->[0], $confdb, undef);
		}
	else {
		&valid_pem_file($in{$s->[1]}, $s->[1]) ||
			&error($text{'slapd_e'.$s->[1]});
		&save_ldif_directive($conf, $s->[0], $confdb, $in{$s->[1]});
		}
	}

# Write out the files
&flush_file_lines();
&unlock_slapd_files();
if ($save_config) {
	&lock_file($module_config_file);
	&save_module_config();
	&unlock_file($module_config_file);
	}
if (&can_get_ldap_protocols()) {
	$protos = &get_ldap_protocols();
	foreach $p (keys %$protos) {
		$protos->{$p} = 0;
		}
	foreach $p (@newprotos) {
		$protos->{$p} = 1;
		}
	&save_ldap_protocols($protos);
	}
&webmin_log('slapd');

&redirect("");


Filemanager

Name Type Size Permission Actions
help Folder 0755
images Folder 0755
lang Folder 0755
CHANGELOG File 849 B 0644
acl_form.cgi File 3.76 KB 0755
acl_save.cgi File 2.9 KB 0755
acl_security.pl File 558 B 0755
add.cgi File 1.24 KB 0755
add_browser.cgi File 1.01 KB 0755
add_form.cgi File 1.98 KB 0755
apply.cgi File 256 B 0755
backup_config.pl File 787 B 0755
bootup.cgi File 640 B 0755
cgi_args.pl File 349 B 0755
config File 116 B 0644
config-ALL-linux File 230 B 0644
config-AlmaLinux-7.0-ALL File 255 B 0644
config-Amazon-Linux-2-ALL File 255 B 0644
config-CentOS-Linux-7.0-ALL File 255 B 0644
config-CentOS-Stream-Linux-8.0-ALL File 255 B 0644
config-CloudLinux-8.0-ALL File 255 B 0644
config-Oracle-Linux-8.0-ALL File 255 B 0644
config-Redhat-Enterprise-Linux-6.0-6.9 File 261 B 0644
config-Redhat-Enterprise-Linux-7.0-ALL File 255 B 0644
config-Rocky-Linux-7.0-ALL File 255 B 0644
config-Scientific-Linux-6.0-6.9 File 258 B 0644
config-Scientific-Linux-7.0-ALL File 255 B 0644
config-Ubuntu-Linux-8.10-ALL File 235 B 0644
config-debian-linux-6.0-ALL File 231 B 0644
config-debian-linux-ALL-5.9 File 234 B 0644
config-freebsd File 289 B 0644
config-freebsd-8-ALL File 318 B 0644
config-mandrake-linux File 250 B 0644
config-openSUSE-Linux-15.0-ALL File 247 B 0644
config-pardus-linux File 170 B 0644
config-redhat-linux File 261 B 0644
config-redhat-linux-24.0-ALL File 280 B 0644
config-solaris File 214 B 0644
config-suse-linux File 253 B 0644
config-syno-linux File 230 B 0644
config-turbo-linux File 250 B 0644
config.info File 989 B 0644
config.info.ca File 1.09 KB 0644
config.info.de File 1.14 KB 0644
config.info.fr File 0 B 0644
config.info.nl File 1.02 KB 0644
config.info.no File 1.03 KB 0644
config.info.pt_BR File 1.08 KB 0644
create.cgi File 2.68 KB 0755
defaultacl File 65 B 0644
delete_acls.cgi File 964 B 0755
delete_browser.cgi File 1.01 KB 0755
down_acl.cgi File 1.26 KB 0755
down_schema.cgi File 649 B 0755
edit_acl.cgi File 1.75 KB 0755
edit_browser.cgi File 7.61 KB 0755
edit_create.cgi File 1.05 KB 0755
edit_ldif.cgi File 3.25 KB 0755
edit_schema.cgi File 2.13 KB 0755
edit_sfile.cgi File 932 B 0755
edit_slapd.cgi File 3.77 KB 0755
gencert.cgi File 1.23 KB 0755
gencert_form.cgi File 1.25 KB 0755
gencert_ldif.cgi File 1.24 KB 0755
index.cgi File 3.51 KB 0755
install_check.pl File 469 B 0755
ldap-server-lib.pl File 24.04 KB 0755
log_parser.pl File 1.71 KB 0755
module.info File 160 B 0644
module.info.af File 0 B 0644
module.info.af.auto File 119 B 0644
module.info.ar File 0 B 0644
module.info.ar.auto File 158 B 0644
module.info.be File 0 B 0644
module.info.be.auto File 165 B 0644
module.info.bg File 0 B 0644
module.info.bg.auto File 173 B 0644
module.info.ca File 105 B 0644
module.info.ca.auto File 25 B 0644
module.info.cs File 0 B 0644
module.info.cs.auto File 108 B 0644
module.info.da File 0 B 0644
module.info.da.auto File 113 B 0644
module.info.de File 95 B 0644
module.info.de.auto File 23 B 0644
module.info.el File 0 B 0644
module.info.el.auto File 191 B 0644
module.info.es File 0 B 0644
module.info.es.auto File 126 B 0644
module.info.eu File 0 B 0644
module.info.eu.auto File 125 B 0644
module.info.fa File 0 B 0644
module.info.fa.auto File 152 B 0644
module.info.fi File 0 B 0644
module.info.fi.auto File 126 B 0644
module.info.fr File 0 B 0644
module.info.fr.auto File 123 B 0644
module.info.he File 0 B 0644
module.info.he.auto File 144 B 0644
module.info.hr File 0 B 0644
module.info.hr.auto File 138 B 0644
module.info.hu File 0 B 0644
module.info.hu.auto File 129 B 0644
module.info.it File 0 B 0644
module.info.it.auto File 114 B 0644
module.info.ja File 0 B 0644
module.info.ja.auto File 146 B 0644
module.info.ko File 0 B 0644
module.info.ko.auto File 114 B 0644
module.info.lt File 0 B 0644
module.info.lt.auto File 128 B 0644
module.info.lv File 0 B 0644
module.info.lv.auto File 116 B 0644
module.info.ms File 96 B 0644
module.info.ms.auto File 24 B 0644
module.info.mt File 0 B 0644
module.info.mt.auto File 121 B 0644
module.info.nl File 20 B 0644
module.info.nl.auto File 88 B 0644
module.info.no File 20 B 0644
module.info.no.auto File 90 B 0644
module.info.pl File 0 B 0644
module.info.pl.auto File 116 B 0644
module.info.pt File 0 B 0644
module.info.pt.auto File 121 B 0644
module.info.pt_BR File 25 B 0644
module.info.pt_BR.auto File 105 B 0644
module.info.ro File 0 B 0644
module.info.ro.auto File 127 B 0644
module.info.ru File 26 B 0644
module.info.ru.auto File 142 B 0644
module.info.sk File 0 B 0644
module.info.sk.auto File 111 B 0644
module.info.sl File 0 B 0644
module.info.sl.auto File 128 B 0644
module.info.sv File 0 B 0644
module.info.sv.auto File 105 B 0644
module.info.th File 0 B 0644
module.info.th.auto File 228 B 0644
module.info.tr File 0 B 0644
module.info.tr.auto File 118 B 0644
module.info.uk File 0 B 0644
module.info.uk.auto File 169 B 0644
module.info.ur File 0 B 0644
module.info.ur.auto File 171 B 0644
module.info.vi File 0 B 0644
module.info.vi.auto File 156 B 0644
module.info.zh File 0 B 0644
module.info.zh.auto File 110 B 0644
module.info.zh_TW File 0 B 0644
module.info.zh_TW.auto File 119 B 0644
perms.cgi File 432 B 0755
prefs.info File 33 B 0644
rename_browser.cgi File 1.04 KB 0755
save_browser.cgi File 1.04 KB 0755
save_ldif.cgi File 2.43 KB 0755
save_schema.cgi File 727 B 0755
save_sfile.cgi File 607 B 0755
save_slapd.cgi File 2.78 KB 0755
sdelete_browser.cgi File 936 B 0755
start.cgi File 251 B 0755
stop.cgi File 246 B 0755
up_acl.cgi File 1.26 KB 0755
up_schema.cgi File 649 B 0755
view_sfile.cgi File 374 B 0755