summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c953a0d)
raw | patch | inline | side by side (parent: c953a0d)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 30 Jun 2006 05:40:28 +0000 (05:40 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 30 Jun 2006 05:40:28 +0000 (05:40 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4004 594d385d-05f5-0310-b6e9-bd551577e9d8
include/class_plugin.inc | patch | blob | history |
index c56cfae687e9f38d8e8b144314cc3a8ec8e38842..8a2b898e87044ceefdf323e34eb6c974cbbf7e0d 100644 (file)
--- a/include/class_plugin.inc
+++ b/include/class_plugin.inc
$nattrs['objectClass'][]= "gosaAdministrativeUnitTag";
$ldap->cd($dn);
$ldap->modify($nattrs);
- show_ldap_error($ldap->get_error(), _("Handle object tagging failed"));
+ show_ldap_error($ldap->get_error(), sprintf(_("Handle object tagging with dn '%s' failed."),$dn));
} else {
@DEBUG (DEBUG_TRACE, __LINE__, __FUNCTION__, __FILE__, "Not tagging ($tag) $dn - seems to have moved away", "Tagging");
}
}
$ldap->cd($dn);
$ldap->modify($nattrs);
- show_ldap_error($ldap->get_error(), _("Handle object tagging failed"));
+ show_ldap_error($ldap->get_error(), sprintf(_("Handle object tagging with dn '%s' failed."),$dn));
} else {
@DEBUG (DEBUG_TRACE, __LINE__, __FUNCTION__, __FILE__, "Not removing tag ($tag) $dn - seems to have moved away", "Tagging");
}
$ldap_to = new LDAP($user,$password, $server);
$ldap_to -> cd($snapldapbase);
- show_ldap_error($ldap_to->get_error(), _("Snapshot failed."));
+ show_ldap_error($ldap->get_error(), sprintf(_("Saving object snapshot with dn '%s' failed."),$snapldapbase));
}
/* check if the dn exists */
$ldap_to->cd($new_dn);
$ldap_to->add($target);
- show_ldap_error($ldap_to->get_error(), _("Create snapshot failed."));
- show_ldap_error($ldap->get_error(), _("Create snapshot failed."));
+ show_ldap_error($ldap->get_error(), sprintf(_("Saving object snapshot with dn '%s' failed."),$new_base));
+ show_ldap_error($ldap_to->get_error(), sprintf(_("Saving object snapshot with dn '%s' failed."),$new_base));
}
}
$snapldapbase = $tmp['SNAPSHOT_LDAP_BASE'];
$ldap_to = new LDAP($user,$password, $server);
$ldap_to -> cd ($snapldapbase);
- show_ldap_error($ldap_to->get_error(), _("Snapshot failed."));
+ show_ldap_error($ldap->get_error(), sprintf(_("Method get available snapshots with dn '%s' failed."),$this->dn));
}else{
$ldap_to = $ldap;
}
$snapldapbase = $tmp['SNAPSHOT_LDAP_BASE'];
$ldap_to = new LDAP($user,$password, $server);
$ldap_to->cd ($snapldapbase);
- show_ldap_error($ldap_to->get_error(), _("Snapshot failed."));
+ show_ldap_error($ldap->get_error(), sprintf(_("Method get deleted snapshots with dn '%s' failed."),$this->dn));
}else{
$ldap_to = $ldap;
}
$snapldapbase = $tmp['SNAPSHOT_LDAP_BASE'];
$ldap_to = new LDAP($user,$password, $server);
$ldap_to->cd ($snapldapbase);
- show_ldap_error($ldap_to->get_error(), _("Snapshot failed."));
+ show_ldap_error($ldap->get_error(), sprintf(_("Restore snapshot with dn '%s' failed."),$snapldapbase));
}else{
$ldap_to = $ldap;
}
/* Import the given data */
$ldap->import_complete_ldif($data,$err,false,false);
- show_ldap_error($ldap_to->get_error().$err, _("Restore snapshot failed."));
+ show_ldap_error($ldap->get_error(), sprintf(_("Restore snapshot with dn '%s' failed."),$dn));
}