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