From c19eee0b903a9b864ad16e201fd9c37214ec4f4f Mon Sep 17 00:00:00 2001 From: rettenbe Date: Thu, 11 Sep 2008 10:11:11 +0000 Subject: [PATCH] update: trigger_action_new additionally sends a new_ldap_config message git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12420 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/server/events/gosaTriggered.pm | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/gosa-si/server/events/gosaTriggered.pm b/gosa-si/server/events/gosaTriggered.pm index e85ae5120..f1378b700 100644 --- a/gosa-si/server/events/gosaTriggered.pm +++ b/gosa-si/server/events/gosaTriggered.pm @@ -978,15 +978,21 @@ sub trigger_activate_new { } if($activate_client == 1) { + + # Create delivery list + my @out_msg_l; + # Set job to done $main::job_db->exec_statement("UPDATE jobs SET status = 'done' WHERE id = $jobdb_id"); - # create new_ldap_config and set_activated_for_installation messages for delivery - my $out_hash_ldap_config = &create_xml_hash("new_ldap_config", $source, $target); - my $out_msg_ldap_config = &create_xml_string($out_hash_ldap_config); - my $out_hash_activate = &create_xml_hash("set_activated_for_installation", $source, $target); - my $out_msg_activate = &create_xml_string($out_hash_activate); - my @out_msg_l = ($out_msg_ldap_config, $out_msg_activate); + # Add new_ldap_config message to delivery list + my $ldap_out_msg = &ClientPackages::new_ldap_config($mac, $session_id); + push(@out_msg_l, $ldap_out_msg); + + # create set_activated_for_installation message for delivery + my $out_hash = &create_xml_hash("set_activated_for_installation", $source, $target); + my $out_msg = &create_xml_string($out_hash); + push(@out_msg_l, $out_msg); return @out_msg_l; } else { -- 2.30.2