Code

Updated ldap error msgs to include the object dn
[gosa.git] / plugins / personal / samba / class_sambaAccount.inc
index 31721d67b8eca443dc299a41699ed7b93ed39823..f33d5e81623407308669cf48ef957d54ffcd4da3 100644 (file)
@@ -624,7 +624,7 @@ class sambaAccount extends plugin
     $this->cleanup();
     $ldap->modify ($this->attrs); 
 
-    show_ldap_error($ldap->get_error(), _("Removing Samba account failed"));
+    show_ldap_error($ldap->get_error(), sprintf(_("Removing of user/samba account with dn '%s' failed."),$this->dn));
 
     /* Optionally execute a command after we're done */
     $this->handle_post_events("remove");
@@ -971,7 +971,7 @@ class sambaAccount extends plugin
     $this->cleanup();
     $ldap->modify ($this->attrs); 
 
-    show_ldap_error($ldap->get_error(), _("Saving Samba account failed"));
+    show_ldap_error($ldap->get_error(), sprintf(_("Saving of user/samba account with dn '%s' failed."),$this->dn));
 
     /* Optionally execute a command after we're done */
     if ($this->initially_was_account == $this->is_account){