From b250562ab30b56333c6dd6d3cdf6a086b692e06b Mon Sep 17 00:00:00 2001 From: janw Date: Wed, 10 Sep 2008 14:21:08 +0000 Subject: [PATCH] Added checks. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12401 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/server/events/gosaTriggered.pm | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.30.2