Code

When sending set_activated_for_installation in job_trigger_activate_new
authorpsc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 31 Mar 2009 12:51:59 +0000 (12:51 +0000)
committerpsc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 31 Mar 2009 12:51:59 +0000 (12:51 +0000)
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

trunk/gosa-si/server/events/gosaTriggered.pm

index 76eff45b8e9a3225450a372c663a2e029db84af0..42f2189fcc24e71f71a13cd0cfcbe02c6e82c5da 100644 (file)
@@ -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);