Code

wol default value in config file
authorrettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 2 Jul 2008 15:48:42 +0000 (15:48 +0000)
committerrettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 2 Jul 2008 15:48:42 +0000 (15:48 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11515 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/gosa-si-client
gosa-si/gosa-si-server
gosa-si/tests/client.php

index be282a52de1d65c005a366224c30e8f04f2c4374..145a82cf848a5381831ae720b8c0be313173ddb0 100755 (executable)
@@ -34,7 +34,6 @@ use GOSA::GosaSupportDaemon;
 use Digest::MD5  qw(md5_hex md5 md5_base64);
 use MIME::Base64;
 use XML::Simple;
-#use Net::DNS;    # no longer used because function moved to GosaSupportDaemon.pm : rettenbe : 16.05.2008
 use File::Basename;
 use File::Spec;
 
index 6d2c866d81e8a6128347383392f89760202761a3..4c4df6b605e2450557345e8be92173070f3c9225 100755 (executable)
@@ -86,6 +86,7 @@ our (%cfg_defaults, $log_file, $pid_file,
     $arp_activ, $gosa_unit_tag,
     $GosaPackages_key, $gosa_ip, $gosa_port, $gosa_timeout,
     $foreign_server_string, $server_domain, $ServerPackages_key, $foreign_servers_register_delay,
+    $wake_on_lan_passwd,
 );
 
 # additional variable which should be globaly accessable
@@ -230,6 +231,7 @@ my $max_children = 2;
     "ldap-admin-password"  => [\$ldap_admin_password, ""],
     "gosa-unit-tag"        => [\$gosa_unit_tag, ""],
     "max-clients"          => [\$max_clients, 10],
+    "wol-password"           => [\$wake_on_lan_passwd, ""],
     },
 "GOsaPackages" => {
     "ip" => [\$gosa_ip, "0.0.0.0"],
@@ -2986,7 +2988,7 @@ foreach my $foreign_server (@foreign_server_list) {
        # TODO for jan
        # do not add myself to known_server_db
        # work around!!!
-       if ($foreign_server eq '172.16.2.89:20081') { next; }
+       if ($foreign_server eq '10.89.1.31:20081') { next; }
        ######################################
 
     my $res = $known_server_db->add_dbentry( {table=>$known_server_tn, 
index 22826fd9e51988df168c37e18eb219f6998620f6..41051e16ec3fe9de25cd530b79fc5bece421f0e6 100755 (executable)
@@ -112,6 +112,8 @@ for($count = 1; $count <= $zahl; $count++)
     $data = "<xml> <header>gosa_get_dak_keyring</header> <target>GOSA</target> <source>GOSA</source> </xml>";
     #$data = "<xml> <header>job_ping</header> <source>GOSA</source> <target>00:0c:29:02:e5:4d</target> <macaddress>00:0c:29:02:e5:4d</macaddress><timestamp>29700101000000</timestamp> </xml>";
 
+    $data = "<xml> <header>gosa_network_completition</header> <source>GOSA</source> <target>GOSA</target> <hostname>localhost</hostname> </xml>";
+
     $sock->write($data);
     $answer = "nothing";
     $answer = $sock->read();