summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a0372d9)
raw | patch | inline | side by side (parent: a0372d9)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 11 Dec 2008 09:11:33 +0000 (09:11 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 11 Dec 2008 09:11:33 +0000 (09:11 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13257 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/mail/admin/groups/mail/class_groupMail.inc | patch | blob | history |
diff --git a/gosa-plugins/mail/admin/groups/mail/class_groupMail.inc b/gosa-plugins/mail/admin/groups/mail/class_groupMail.inc
index 8590f619c895b112d00f740efcf2b8acad950494..78cf45519b046ad64a9b367e00d8d5f1f79fcc1c 100644 (file)
var $uid = "";
var $cn ="";
+ var $orig_cn = "";
function __construct (&$config, $dn= NULL, $ui= NULL)
{
$this->$attr = $this->attrs[$attr][0];
}
}
+ $this->orig_cn = $this->cn;
/* Intialize the used mailMethod
*/
}
}
+
+ /****************
+ Preset mail attribute
+ ****************/
+ if(empty($this->mail) && $this->mailMethod->mailEqualsCN() && !$this->initially_was_account){
+ if($this->mailMethod->domainSelectionEnabled()){
+ $this->mail = &$this->parent->by_object['group']->cn;
+ }
+ }
+
/****************
Forward addresses
if(!$this->is_account) return array();
$ldap= $this->config->get_ldap_link();
+
/* Call common method to give check the hook */
$message= plugin::check();
+ /* Ensure that this group isn't renamed if the mailMethod enforces cn mailAttributes
+ */
+ if($this->mailMethod->mailEqualsCN() && $this->initially_was_account){
+ if($this->cn != $this->orig_cn){
+ $message[] = sprintf(_("The groups 'cn' has changed! The cn attribute can't be changed due to the fact that this mail method '%s' relies on it.")
+ ,get_class($this->mailMethod));
+ }
+ }
+
if(empty($this->gosaMailServer)){
$message[]= msgPool::noserver(_("Mail"));
}