summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5f37e60)
raw | patch | inline | side by side (parent: 5f37e60)
author | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 23 May 2008 13:03:50 +0000 (13:03 +0000) | ||
committer | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 23 May 2008 13:03:50 +0000 (13:03 +0000) |
* under construction
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10991 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10991 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-si/modules/ClientPackages.pm | patch | blob | history |
index 41cecf8c42d702a0f0070026fba6dacba73f078c..0656f8ba55928b51fe9d7f5f21f38ba9394046a9 100644 (file)
my $bus_address = "$bus_ip:$bus_port";
$main::bus_address = $bus_address;
-# create general settings for this module
-my $xml = new XML::Simple();
-# register at bus
-if ($main::no_bus > 0) {
- $bus_activ = "off"
-}
-if($bus_activ eq "on") {
- ®ister_at_bus();
+my $hostkey = &create_passwd;
+my $res = $main::known_server_db->add_dbentry( {table=>$main::known_server_tn,
+ primkey=>['hostname'],
+ hostname=>$main::server_address,
+ status=>'myself',
+ hostkey=>$hostkey,
+ timestamp=>&get_time(),
+ } );
+if (not $res == 0) {
+ &main::daemon_log("0 ERROR: cannot add server to known_server_db: $res", 1);
+} else {
+ &main::daemon_log("0 INFO: '$main::server_address' successfully added to known_server_db", 5);
}
+
+## create general settings for this module
+#my $xml = new XML::Simple();
+#
+## register at bus
+#if ($main::no_bus > 0) {
+# $bus_activ = "off"
+#}
+#if($bus_activ eq "on") {
+# ®ister_at_bus();
+#}
+
+
### functions #################################################################