summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7e8dc56)
raw | patch | inline | side by side (parent: 7e8dc56)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 26 Feb 2008 15:43:07 +0000 (15:43 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 26 Feb 2008 15:43:07 +0000 (15:43 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9131 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-si/server/events/clMessages.pm | patch | blob | history |
index 62a3a50aeecb6525f826480af4f0db0e4e8645f0..a7487a3e1fb3e6d7550015a68daf810456a90ae8 100644 (file)
### Start ######################################################################
-#&read_configfile($main::cfg_file, %cfg_defaults);
+my $ldap_uri;
+my $ldap_base;
+my $ldap_admin_dn;
+my $ldap_admin_password;
+
+my %cfg_defaults = (
+"server" => {
+ "ldap-uri" => [\$ldap_uri, ""],
+ "ldap-base" => [\$ldap_base, ""],
+ "ldap-admin-dn" => [\$ldap_admin_dn, ""],
+ "ldap-admin-password" => [\$ldap_admin_password, ""],
+ },
+);
+&read_configfile($main::cfg_file, %cfg_defaults);
sub get_events {
return \@events;
}
+
sub read_configfile {
my ($cfg_file, %cfg_defaults) = @_;
my $cfg;
}
}
+
sub LOGIN {
my ($msg, $msg_hash, $session_id) = @_;
my $header = @{$msg_hash->{'header'}}[0];
}
-
-# echo "GOTOACTIVATION" > /var/run/gosa-si-client.socket
sub GOTOACTIVATION {
my ($msg, $msg_hash, $session_id) = @_;
my $out_msg = &build_result_update_msg($msg_hash);
}
-# echo "PROGRESS 15" > /var/run/gosa-si-client.socket
sub PROGRESS {
my ($msg, $msg_hash, $session_id) = @_;
my $out_msg = &build_progress_update_msg($msg_hash);
return @out_msg_l;
}
-# echo "FAIREBOOT" > /tmp/gosa-si-client-fifo
+
sub FAIREBOOT {
my ($msg, $msg_hash, $session_id) = @_;
my $out_msg = &build_status_result_update_msg($msg_hash);
return @out_msg_l;
}
-# echo "TASKSKIP hallo welt" > /tmp/gosa-si-client-fifo
+
sub TASKSKIP {
my ($msg, $msg_hash, $session_id) = @_;
my $out_msg = &build_status_result_update_msg($msg_hash);
}
-# echo "TASKBEGIN hallo welt" > /tmp/gosa-si-client-fifo
+
sub TASKBEGIN {
my ($msg, $msg_hash, $session_id) = @_;
my $out_msg = &build_status_result_update_msg($msg_hash);
my @out_msg_l = ($out_msg);
+
+# -----------------------> Update hier
+# <CLMSG_TASKBEGIN>finish</CLMSG_TASKBEGIN>
+# <header>CLMSG_TASKBEGIN</header>
+# macaddress auslesen, Client im LDAP lokalisieren
+# FAIstate auf "localboot" setzen, wenn FAIstate "install" oder "softupdate" war
+
return @out_msg_l;
}
-# echo "TASKEND hallo welt" > /tmp/gosa-si-client-fifo
+
sub TASKEND {
my ($msg, $msg_hash, $session_id) = @_;
my $out_msg = &build_status_result_update_msg($msg_hash);
my @out_msg_l = ($out_msg);
+
+# -----------------------> Update hier
+# <CLMSG_TASKBEGIN>finish</CLMSG_TASKBEGIN>
+# <header>CLMSG_TASKBEGIN</header>
+# macaddress auslesen, Client im LDAP lokalisieren
+# FAIstate auf "error" setzen
+
return @out_msg_l;
}
-# echo "TASKERROR hallo welt" > /tmp/gosa-si-client-fifo
sub TASKERROR {
my ($msg, $msg_hash, $session_id) = @_;
my $out_msg = &build_status_result_update_msg($msg_hash);
my @out_msg_l = ($out_msg);
+
+# -----------------------> Update hier
+# <CLMSG_TASKBEGIN>finish</CLMSG_TASKBEGIN>
+# <header>CLMSG_TASKBEGIN</header>
+# macaddress auslesen, Client im LDAP lokalisieren
+# FAIstate auf "error" setzen
+
return @out_msg_l;
}
-# echo "HOOK hallo welt" > /tmp/gosa-si-client-fifo
sub HOOK {
my ($msg, $msg_hash, $session_id) = @_;
my $out_msg = &build_status_result_update_msg($msg_hash);