X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-plugins%2Fsamba%2Fadmin%2Fsystems%2Fsamba%2Fclass_winGeneric.inc;h=295698d343f3abb5c2523cc2f12a9f808c4426e7;hb=362e2b9a81d3bde32512811ede7525ab017eead5;hp=a999a1dba4f47cff425cef20ff6105b1ed6c24e2;hpb=95c92d67f0ab7660a995607fd264a6ea1f2aa798;p=gosa.git diff --git a/gosa-plugins/samba/admin/systems/samba/class_winGeneric.inc b/gosa-plugins/samba/admin/systems/samba/class_winGeneric.inc index a999a1dba..295698d34 100644 --- a/gosa-plugins/samba/admin/systems/samba/class_winGeneric.inc +++ b/gosa-plugins/samba/admin/systems/samba/class_winGeneric.inc @@ -149,7 +149,9 @@ class wingeneric extends plugin $ldap= $this->config->get_ldap_link(); $ldap->rmdir($this->dn); new log("remove","winworkstation/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error()); - show_ldap_error($ldap->get_error(), sprintf(_("Removing of system wingeneric/generic with dn '%s' failed."),$this->dn)); + if (!$ldap->success()){ + msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $this->dn, LDAP_DEL, get_class())); + } $this->handle_post_events("remove"); /* Delete references to object groups */ @@ -267,7 +269,9 @@ class wingeneric extends plugin $this->netConfigDNS->cn = preg_replace("/\\\$\$/","",$this->cn); $this->netConfigDNS->save(); - show_ldap_error($ldap->get_error(), sprintf(_("Saving of system wingeneric/generic with dn '%s' failed."),$this->dn)); + if (!$ldap->success()){ + msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $this->dn, 0, get_class())); + } /* Optionally execute a command after we're done */ $this->postcreate();