chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 13:12:17 +08:00
commit cf8edb9f21
44281 changed files with 1655134 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
# idmapd-lib.pl
# Common functions for the idmapd config
BEGIN { push(@INC, ".."); };
use WebminCore;
&init_config();
# 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;