From: psc Date: Tue, 31 Mar 2009 12:51:59 +0000 (+0000) Subject: When sending set_activated_for_installation in job_trigger_activate_new X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b90774a9f0adf85836cb716354098ec2e2f9b8e6;p=gosa.git When sending set_activated_for_installation in job_trigger_activate_new prepend a fresh 'new_ldap_config' to the message; fixes problems with mass installations that don't get a new ldap configuration on activation and therefore fail to install (missing ldap.conf) (Trac #2026) git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13572 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/trunk/gosa-si/server/events/gosaTriggered.pm b/trunk/gosa-si/server/events/gosaTriggered.pm index 76eff45b8..42f2189fc 100644 --- a/trunk/gosa-si/server/events/gosaTriggered.pm +++ b/trunk/gosa-si/server/events/gosaTriggered.pm @@ -1033,6 +1033,11 @@ sub trigger_activate_new { # Set job to done $main::job_db->exec_statement("UPDATE jobs SET status = 'done' WHERE id = $jobdb_id"); + + # If a client gets a 'set_activated_for_installation' msg, always deliver a fresh 'new_ldap_config' + # just for backup and robustness purposes + 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);