diff --git a/gosa-si/gosa-si-server b/gosa-si/gosa-si-server
index 831ca6f550d44c6b7f220b3f832785c9ffeeea97..2f224016e2d92408e090ab500892eb190d773533 100755 (executable)
--- a/gosa-si/gosa-si-server
+++ b/gosa-si/gosa-si-server
# RETURNS: nothing
# DESCRIPTION: read cfg_file and set variables
#===============================================================================
-sub read_configfile {
- my $cfg;
- if( defined( $cfg_file) && ( (-s $cfg_file) > 0 )) {
- if( -r $cfg_file ) {
- $cfg = Config::IniFiles->new( -file => $cfg_file );
- } else {
- print STDERR "Couldn't read config file!\n";
- }
- } else {
- $cfg = Config::IniFiles->new() ;
- }
- foreach my $section (keys %cfg_defaults) {
- foreach my $param (keys %{$cfg_defaults{ $section }}) {
- my $pinfo = $cfg_defaults{ $section }{ $param };
- ${@$pinfo[ 0 ]} = $cfg->val( $section, $param, @$pinfo[ 1 ] );
- }
- }
-}
+#sub read_configfile {
+# my $cfg;
+# if( defined( $cfg_file) && ( (-s $cfg_file) > 0 )) {
+# if( -r $cfg_file ) {
+# $cfg = Config::IniFiles->new( -file => $cfg_file );
+# } else {
+# print STDERR "Couldn't read config file!\n";
+# }
+# } else {
+# $cfg = Config::IniFiles->new() ;
+# }
+# foreach my $section (keys %cfg_defaults) {
+# foreach my $param (keys %{$cfg_defaults{ $section }}) {
+# my $pinfo = $cfg_defaults{ $section }{ $param };
+# ${@$pinfo[ 0 ]} = $cfg->val( $section, $param, @$pinfo[ 1 ] );
+# }
+# }
+#}
#=== FUNCTION ================================================================
if(exists $heap->{'client'}) {
$msg = &encrypt_msg($msg, $GosaPackages_key);
$heap->{'client'}->put($msg);
+ &daemon_log("$session_id INFO: incoming '$header' message forwarded to GOsa", 5);
}
$done = 1;
#print STDERR "target is own address with forward_to_gosa-tag pointing at myself -> forward to gosa\n";
# read and set config parameters
&check_cmdline_param ;
-&read_configfile;
+&read_configfile($cfg_file, %cfg_defaults);
&check_pid;
$SIG{CHLD} = 'IGNORE';