[ Avaa Bypassed ]




Upload:

Command:

www-data@18.221.248.199: ~ $
#!/usr/bin/perl
# Create, update or delete one access control rule

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

# Get the current rule
&lock_slapd_files();
if (&get_config_type() == 1) {
	$conf = &get_config();
	@access = &find("access", $conf);
	$hasorder = 0;
	}
else {
	$defdb = &get_default_db();
	$conf = &get_ldif_config();
	@access = &find_ldif("olcAccess", $conf, $defdb);
	$hasorder = 1;
	}

# Get the ACL object
if (!$in{'new'}) {
	$acl = $access[$in{'idx'}];
	$p = &parse_ldap_access($acl);
	}
else {
	$p = { };
	}

if ($in{'delete'}) {
	# Just take out of access list
	@access = grep { $_ ne $acl } @access;
	}
else {
	# Validate and store inputs, starting with object
	if ($in{'what'} == 1) {
		$p->{'what'} = '*';
		}
	elsif ($in{'what'} == 2) {
		$p->{'what'} =
			'dn'.($in{'what_style'} ? '.'.$in{'what_style'} : '').
			'=""';
		}
	else {
		$in{'what_dn'} =~ /^\S+=\S.*$/ || &error($text{'eacl_edn'});
		$p->{'what'} =
			'dn'.($in{'what_style'} ? '.'.$in{'what_style'} : '').
			'='.$in{'what_dn'};
		}

	# Object filter and attribute list
	delete($p->{'filter'});
	if ($in{'filter_on'}) {
		$in{'filter'} =~ /^\S+$/ || &error($text{'eacl_efilter'});
		$p->{'filter'} = $in{'filter'};
		}
	delete($p->{'attrs'});
	if ($in{'attrs_on'}) {
		$in{'attrs'} =~ /^\S+$/ || &error($text{'eacl_eattrs'});
		$p->{'attrs'} = $in{'attrs'};
		}

	# Each granted user
	@by = ( );
	for($i=0; defined($in{"wmode_$i"}); $i++) {
		next if ($in{"wmode_$i"} eq "");
		local $by = { };

		# Who are we granting
		if ($in{"wmode_$i"} eq "other") {
			# Other DN
			$in{"who_$i"} =~ /^\S+=\S.*$/ ||
				&error(&text('eacl_ewho', $i+1));
			$by->{'who'} = $in{"who_$i"};
			}
		else {
			# Just selected
			$by->{'who'} = $in{"wmode_$i"};
			}

		# Access level
		$in{"access_$i"} =~ /^\S+$/ ||
			&error(&text('eacl_eaccess', $i+1));
		$by->{'access'} = $in{"access_$i"};

		# Additional attributes
		$by->{'control'} = [ &split_quoted_string($in{"control_$i"}) ];
		push(@by, $by);
		}
	$p->{'by'} = \@by;

	# Set order to end of list, if we are using orders
	if ($hasorder && $in{'new'}) {
		$maxorder = -1;
		foreach $oa (@access) {
			$op = &parse_ldap_access($oa);
			if ($op->{'order'} > $maxorder) {
				$maxorder = $op->{'order'};
				}
			}
		$p->{'order'} = $maxorder + 1;
		}

	# Add to access directive list
	if ($in{'new'}) {
		$acl = { 'name' => 'access',
			 'values' => [ ] };
		push(@access, $acl);
		}
	&store_ldap_access($acl, $p);
	}

# Write out access directives
if (&get_config_type() == 1) {
	&save_directive($conf, "access", @access);
	}
else {
	&save_ldif_directive($conf, "olcAccess", $defdb, @access);
	}
&flush_file_lines();
&unlock_slapd_files();

# Log and return
&webmin_log($in{'delete'} ? "delete" : $in{'new'} ? "create" : "modify",
	    "access", $p->{'what'});
&redirect("edit_acl.cgi");


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