From: janw Date: Wed, 10 Sep 2008 14:21:08 +0000 (+0000) Subject: Added checks. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b250562ab30b56333c6dd6d3cdf6a086b692e06b;p=gosa.git Added checks. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12401 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/server/events/gosaTriggered.pm b/gosa-si/server/events/gosaTriggered.pm index d3d7ce930..faf3915e4 100644 --- a/gosa-si/server/events/gosaTriggered.pm +++ b/gosa-si/server/events/gosaTriggered.pm @@ -815,8 +815,14 @@ sub trigger_activate_new { $ogroup_entry= $ldap_mesg->pop_entry(); } elsif ($ldap_mesg->count == 0) { &main::daemon_log("ERROR: A GosaGroupOfNames with cn '$ogroup' was not found in base '".$main::ldap_base."'!", 1); + $main::job_db->exec_statement("UPDATE ".$main::job_queue_tn." SET status = 'waiting' WHERE id = $jobdb_id"); + $main::job_db->exec_statement("UPDATE ".$main::job_queue_tn." SET timestamp = '".&get_time(10)."' WHERE id = $jobdb_id"); + return undef; } else { &main::daemon_log("ERROR: More than one ObjectGroups with cn '$ogroup' was found in base '".$main::ldap_base."'!", 1); + $main::job_db->exec_statement("UPDATE ".$main::job_queue_tn." SET status = 'waiting' WHERE id = $jobdb_id"); + $main::job_db->exec_statement("UPDATE ".$main::job_queue_tn." SET timestamp = '".&get_time(10)."' WHERE id = $jobdb_id"); + return undef; } # build the base, use optional base parameter or take it from ogroup