From 8523b4f8d7cd1a55675795178c2a8d34a3d2a6e0 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 21 May 2008 13:05:11 +0000 Subject: [PATCH] Fixed problem with missing goImapSieveServer attribute in ldap git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10983 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../services/imap/class_goImapServer.inc | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gosa-plugins/mail/admin/systems/services/imap/class_goImapServer.inc b/gosa-plugins/mail/admin/systems/services/imap/class_goImapServer.inc index ebc0f86e7..b2b5ea9aa 100644 --- a/gosa-plugins/mail/admin/systems/services/imap/class_goImapServer.inc +++ b/gosa-plugins/mail/admin/systems/services/imap/class_goImapServer.inc @@ -150,6 +150,36 @@ class goImapServer extends goService { } + /* Save service */ + function save() + { + /* Move cn to sieve server */ + $this->goImapSieveServer= $this->cn; + + plugin::save(); + /* Check if this is a new entry ... add/modify */ + $ldap = $this->config->get_ldap_link(); + $ldap->cat($this->dn,array("objectClass")); + if($ldap->count()){ + $ldap->cd($this->dn); + $ldap->modify($this->attrs); + }else{ + $ldap->cd($this->dn); + $ldap->add($this->attrs); + } + if($this->initially_was_account){ + new log("modify","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error()); + $this->handle_post_events("modify"); + }else{ + $this->handle_post_events("add"); + new log("create","server/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error()); + } + if (!$ldap->success()){ + msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $this->dn, 0, get_class())); + } + } + + /* Return plugin informations for acl handling */ static function plInfo() { -- 2.30.2