summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b250562)
raw | patch | inline | side by side (parent: b250562)
author | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 10 Sep 2008 14:32:56 +0000 (14:32 +0000) | ||
committer | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 10 Sep 2008 14:32:56 +0000 (14:32 +0000) |
Added objectClass for new system.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12402 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12402 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-si/server/events/gosaTriggered.pm | patch | blob | history |
index faf3915e4e1b223371a2ee35bbf76d7e49084370..abe30db024c9f57becb83cd48418e3b82b4c9a93 100644 (file)
my $moddn_result = $ldap_entry->update($ldap_handle);
if ($moddn_result->code() != 0) {
&main::daemon_log("ERROR: Moving the system with mac address '$mac' to new base '$base' failed (code '".$moddn_result->code()."') with '".$moddn_result->{'errorMessage'}."'!", 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("INFO: System with mac address '$mac' was moved to base '".$main::ldap_base."'! Re-queuing job.", 4);
$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");
$ldap_entry= $ldap_mesg->pop_entry();
# Check for needed objectClasses
my $oclasses = $ldap_entry->get_value('objectClass', asref => 1);
- foreach my $oclass ("FAIobject", "GOhard") {
+ foreach my $oclass ("FAIobject", "GOhard", "gotoWorkstation") {
if(!(scalar grep $_ eq $oclass, map {$_ => 1} @$oclasses)) {
&main::daemon_log("Adding objectClass $oclass", 1);
$ldap_entry->add(