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: edit_ldif.cgi
#!/usr/bin/perl # Show local LDAP server configuration options, from LDIF format config require './ldap-server-lib.pl'; &local_ldap_server() == 1 || &error($text{'slapd_elocal'}); $access{'slapd'} || &error($text{'slapd_ecannot'}); &ui_print_header(undef, $text{'slapd_title'}, "", "slapd"); $conf = &get_ldif_config(); @tds = ( "width=30%" ); print &ui_form_start("save_ldif.cgi", "post"); print &ui_hidden_table_start($text{'slapd_header'}, "width=100%", 2, "basic", 1,\@tds); # Top-level DN $defdb = &get_default_db(); $suffix = &find_ldif_value("olcSuffix", $conf, $defdb); print &ui_table_row($text{'slapd_suffix'}, &ui_textbox('suffix', $suffix, 60)); # Admin login $rootdn = &find_ldif_value("olcRootDN", $conf, $defdb); print &ui_table_row($text{'slapd_rootdn'}, &ui_textbox('rootdn', $rootdn, 60)); # Admin password $rootpw = &find_ldif_value("olcRootPW", $conf, $defdb); if ($rootpw =~ /^{crypt}(.*)/i) { $rootmode = 1; $rootcrypt = $1; } elsif ($rootpw =~ /^{sha1}(.*)/i) { $rootmode = 2; $rootsha1 = $1; } elsif ($rootpw =~ /^{[a-z0-9]+}(.*)/i) { $rootmode = 3; $rootenc = $rootpw; } else { $rootmode = 0; $rootplain = $rootpw; } # Current password print &ui_table_row($text{'slapd_rootpw'}, $rootmode == 1 ? &text('slapd_root1', $rootcrypt) : $rootmode == 2 ? &text('slapd_root2', $rootsha1) : $rootmode == 3 ? &text('slapd_root3', $rootenc) : $rootplain eq '' ? $text{'slapd_noroot'} : $rootplain); # Set to new print &ui_table_row($text{'slapd_rootchange'}, &ui_opt_textbox('rootchange', undef, 30, $text{'slapd_leave'}, $text{'slapd_set'})); # Cache size $dbcachesize = &find_ldif_value("olcDbCachesize", $conf, $defdb); print &ui_table_row($text{'slapd_dbcachesize'}, &ui_opt_textbox("dbcachesize", $dbcachesize, 10, $text{'default'})); # Size limit $sizelimit = &find_ldif_value("olcSizeLimit", $conf, $defdb); print &ui_table_row($text{'slapd_sizelimit'}, &ui_opt_textbox('sizelimit', $sizelimit, 10, $text{'default'}." (500)")); print &ui_hidden_table_end("basic"); # SSL section print &ui_hidden_table_start($text{'slapd_header2'}, "width=100%", 2, "ssl", 0, \@tds); # Protocols to serve if (&can_get_ldap_protocols()) { $protos = &get_ldap_protocols(); @protos = sort { $a cmp $b } keys %$protos; print &ui_table_row($text{'slapd_protos'}, &ui_select("protos", [ grep { $protos->{$_} } @protos ], [ map { [ $_, $text{'slapd_'.$_} ] } @protos ], scalar(@protos), 1)); } # SSL file options $anycert = 0; $confdb = &get_config_db(); foreach $s ([ 'olcTLSCertificateFile', 'cert' ], [ 'olcTLSCertificateKeyFile', 'key' ], [ 'olcTLSCACertificateFile', 'ca' ]) { $cert = &find_ldif_value($s->[0], $conf, $confdb); print &ui_table_row($text{'slapd_'.$s->[1]}, &ui_opt_textbox($s->[1], $cert, 50, $text{'slapd_none'}). &file_chooser_button($s->[1])); $anycert = 1 if ($cert); } print &ui_hidden_table_end("ssl"); print &ui_form_end([ [ undef, $text{'save'} ] ]); # SSL setup button print &ui_hr(); print &ui_buttons_start(); print &ui_buttons_row("gencert_form.cgi", $text{'slapd_gencert'}, $text{'slapd_gencertdesc'}. ($anycert ? "<b>$text{'slapd_gencertwarn'}</b>" : "")); print &ui_buttons_end(); &ui_print_footer("", $text{'index_return'});
Upload File
Create Folder