403Webshell
Server IP : 182.53.201.61  /  Your IP : 216.73.217.175
Web Server : Apache/2.2.15 (Fedora)
System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/13386/root/usr/libexec/webmin/ldap-client/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/13386/root/usr/libexec/webmin/ldap-client/save_base.cgi
#!/usr/bin/perl
# Save the LDAP search base

require './ldap-client-lib.pl';
&error_setup($text{'base_err'});
&ReadParse();

&lock_file($config{'auth_ldap'});
$conf = &get_config();

# Validate and save inputs, starting with global base
$in{'base'} =~ /\S/ || &error($text{'base_ebase'});
&save_directive($conf, "base", $in{'base'});

# Save scope
&save_directive($conf, "scope", $in{'scope'} || undef);

# Save time limit
if ($in{'timelimit_def'}) {
	&save_directive($conf, "timelimit", undef);
	}
else {
	$in{'timelimit'} =~ /^\d+$/ || &error($text{'base_etimelimit'});
	&save_directive($conf, "timelimit", $in{'timelimit'});
	}

# Save per-service bases
foreach $b (@base_types) {
	if ($in{"base_".$b."_def"}) {
		&save_directive($conf, "nss_base_".$b, undef);
		}
	else {
		local $base = $in{"base_".$b};
		$base =~ /\S/ || &error($text{'base_e'.$b});
		if ($in{'scope_'.$b}) {
			$base .= "?".$in{'scope_'.$b};
			}
		if ($in{'filter_'.$b}) {
			$base .= "?" if ($in{'scope_'.$b});
			$file .= "?".$in{'filter_'.$b};
			}
		&save_directive($conf, "nss_base_".$b, $base);
		}
	}

# Write out config
&flush_file_lines();
&unlock_file($config{'auth_ldap'});

&webmin_log("base");
&redirect("");


Youez - 2016 - github.com/yon3zu
LinuXploit