Code

And (hopefully) the last fix for case sensitive compare of mac addresses.
authorjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 11 Mar 2008 13:43:01 +0000 (13:43 +0000)
committerjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 11 Mar 2008 13:43:01 +0000 (13:43 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9678 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/gosa-si-server

index 1aa51726cecf3abeed67bc4a9178263d388207ec..c771064d2ecdf59a8c26dd0d38800305d810a67f 100755 (executable)
@@ -1172,7 +1172,7 @@ sub watch_for_new_jobs {
         my $job_msg = $hit->{'xmlmessage'};
         daemon_log("DEBUG: its time to execute $job_msg", 7); 
         my $header = $hit->{'headertag'};
-        my $sql_statement = "SELECT * FROM known_clients WHERE macaddress='$macaddress'";
+        my $sql_statement = "SELECT * FROM known_clients WHERE macaddress LIKE '$macaddress'";
                my $res_hash = $known_clients_db->select_dbentry( $sql_statement );
                # expect macaddress is unique!!!!!!
                my $target = $res_hash->{1}->{hostname};