From: rettenbe Date: Thu, 11 Sep 2008 10:11:11 +0000 (+0000) Subject: update: trigger_action_new additionally sends a new_ldap_config message X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c19eee0b903a9b864ad16e201fd9c37214ec4f4f;p=gosa.git 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 --- 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 {