|
Server : Apache/2.2.2 (Fedora) System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686 User : apache ( 48) PHP Version : 5.2.9 Disable Function : NONE Directory : /usr/libexec/webmin/idmapd/ |
Upload File : |
# idmapd-lib.pl
# Common functions for the idmapd config
do '../web-lib.pl';
&init_config();
do '../ui-lib.pl';
# get_config()
# Returns the idmapd config
sub get_config {
local %conf;
open(FILE, $config{'idmapd_conf'});
while(<FILE>) {
chomp;
s/#.*//;
s/^\s+//;
s/\s+$//;
s/^\[.*$//;
next unless length;
my ($var, $value) = split(/\s*=\s*/, $_, 2);
$conf{$var} = $value;
}
close(FILE);
return %conf;
}
1;