diff --git a/gosa-plugins/goto/admin/systems/services/ntp/class_goNtpServer.inc b/gosa-plugins/goto/admin/systems/services/ntp/class_goNtpServer.inc
index b179ae95b6830c1dfb991fcece65b060a547ecf4..a13f932b8d73b6d92505b637c77d26b68046bcd8 100644 (file)
$ldap->cd($this->dn);
$ldap->add($this->attrs);
}
- show_ldap_error($ldap->get_error(), sprintf(_("Saving server services/goNtpServer with dn '%s' failed."),$this->dn));
+ if (!$ldap->success()){
+ msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $this->dn, 0, get_class()));
+ }
if($this->initially_was_account){
$this->handle_post_events("modify");
new log("modify","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());