summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ad395c3)
raw | patch | inline | side by side (parent: ad395c3)
author | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 11 Mar 2008 13:42:13 +0000 (13:42 +0000) | ||
committer | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 11 Mar 2008 13:42:13 +0000 (13:42 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9677 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-si/gosa-si-bus | patch | blob | history | |
gosa-si/server/events/clMessages.pm | patch | blob | history | |
gosa-si/server/events/gosaTriggered.pm | patch | blob | history |
diff --git a/gosa-si/gosa-si-bus b/gosa-si/gosa-si-bus
index bc3a1c9bb58c3678e8ee519eeb09e1890c28b2ad..3ab5e917a1853770a0c184e371614e855913b67d 100755 (executable)
--- a/gosa-si/gosa-si-bus
+++ b/gosa-si/gosa-si-bus
}
elsif( $target =~ /([0-9a-f]{2}:[0-9a-f]{2}:[0-9a-f]{2}:[0-9a-f]{2}:[0-9a-f]{2}:[0-9a-f]{2})/ ) {
# target is a mac address
- my $sql_statement = "SELECT * FROM bus_known_clients WHERE macaddress='$target'";
+ my $sql_statement = "SELECT * FROM bus_known_clients WHERE macaddress LIKE '$target'";
my $query_res = $bus_known_clients_db->select_dbentry( $sql_statement );
if( 1 > keys(%{$query_res})) {
daemon_log("ERROR: there are more than one hosts in bus_known_clients_db with mac address '$target'", 1);
index 22249897e7e108d53d326a18a42693e7b6f602e0..cf409c54f7e2a9afcaf3370975de26f9f5437fa4 100644 (file)
my $sql_statement = "UPDATE $main::job_queue_tn ".
"SET status='processing', result='$header"."$content' ".
- "WHERE status='processing' AND macaddress='$macaddress'";
+ "WHERE status='processing' AND macaddress LIKE '$macaddress'";
&main::daemon_log("DEBUG: $sql_statement", 7);
my $res = $main::job_db->update_dbentry($sql_statement);
&main::daemon_log("INFO: $header at '$macaddress'", 5);
my $sql_statement = "UPDATE $main::job_queue_tn ".
"SET progress='$content' ".
- "WHERE status='processing' AND macaddress='$macaddress'";
+ "WHERE status='processing' AND macaddress LIKE '$macaddress'";
&main::daemon_log("DEBUG: $sql_statement", 7);
my $res = $main::job_db->update_dbentry($sql_statement);
&main::daemon_log("INFO: $header at '$macaddress' - $content%", 5);
my $sql_statement = "UPDATE $main::job_queue_tn ".
"SET status='processing', result='$header "."$content' ".
- "WHERE status='processing' AND macaddress='$macaddress'";
+ "WHERE status='processing' AND macaddress LIKE '$macaddress'";
&main::daemon_log("DEBUG: $sql_statement", 7);
my $res = $main::job_db->update_dbentry($sql_statement);
&main::daemon_log("INFO: $header at '$macaddress' - '$content'", 5);
my $sql_statement = "UPDATE $main::job_queue_tn ".
"SET status='processing', result='$header "."$content' ".
- "WHERE status='processing' AND macaddress='$macaddress'";
+ "WHERE status='processing' AND macaddress LIKE '$macaddress'";
&main::daemon_log("DEBUG: $sql_statement", 7);
my $res = $main::job_db->update_dbentry($sql_statement);
&main::daemon_log("INFO: $header at '$macaddress' - '$content'", 5);
if (($content eq 'finish') || ($content eq 'faiend')){
my $sql_statement = "UPDATE $main::job_queue_tn ".
"SET status='done', result='$header "."$content' ".
- "WHERE status='processing' AND macaddress='$macaddress'";
+ "WHERE status='processing' AND macaddress LIKE '$macaddress'";
&main::daemon_log("DEBUG: $sql_statement", 7);
my $res = $main::job_db->update_dbentry($sql_statement);
&main::daemon_log("INFO: $header at '$macaddress' - '$content'", 5);
} else {
my $sql_statement = "UPDATE $main::job_queue_tn ".
"SET status='processing', result='$header "."$content' ".
- "WHERE status='processing' AND macaddress='$macaddress'";
+ "WHERE status='processing' AND macaddress LIKE '$macaddress'";
&main::daemon_log("DEBUG: $sql_statement", 7);
my $res = $main::job_db->update_dbentry($sql_statement);
&main::daemon_log("INFO: $header at '$macaddress' - '$content'", 5);
my $sql_statement = "UPDATE $main::job_queue_tn ".
"SET status='processing', result='$header "."$content' ".
- "WHERE status='processing' AND macaddress='$macaddress'";
+ "WHERE status='processing' AND macaddress LIKE '$macaddress'";
&main::daemon_log("DEBUG: $sql_statement", 7);
my $res = $main::job_db->update_dbentry($sql_statement);
&main::daemon_log("INFO: $header at '$macaddress' - '$content'", 5);
my $sql_statement = "UPDATE $main::job_queue_tn ".
"SET status='processing', result='$header "."$content' ".
- "WHERE status='processing' AND macaddress='$macaddress'";
+ "WHERE status='processing' AND macaddress LIKE '$macaddress'";
&main::daemon_log("DEBUG: $sql_statement", 7);
my $res = $main::job_db->update_dbentry($sql_statement);
&main::daemon_log("INFO: $header at '$macaddress' - '$content'", 5);
my $sql_statement = "UPDATE $main::job_queue_tn ".
"SET status='processing', result='$header "."$content' ".
- "WHERE status='processing' AND macaddress='$macaddress'";
+ "WHERE status='processing' AND macaddress LIKE '$macaddress'";
&main::daemon_log("DEBUG: $sql_statement", 7);
my $res = $main::job_db->update_dbentry($sql_statement);
&main::daemon_log("INFO: $header at '$macaddress' - '$content'", 5);
index 973d2b603a2cbbdc2fc11c19ac6912ba8db3cddb..31a804d1018a41e12e9afafe9290bc677076380e 100644 (file)
$header =~ s/^gosa_//;
- my $sql_statement = "SELECT * FROM known_clients WHERE hostname='$client' OR macaddress='$client'";
+ my $sql_statement = "SELECT * FROM known_clients WHERE hostname='$client' OR macaddress LIKE '$client'";
my $res = $main::known_clients_db->select_dbentry($sql_statement);
my $out_msg = "<xml><header>$header</header><source>$target</source><target>$source</target>";