summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d232831)
raw | patch | inline | side by side (parent: d232831)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 29 Jan 2007 08:02:43 +0000 (08:02 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 29 Jan 2007 08:02:43 +0000 (08:02 +0000) |
- imap acls were not written as expected, the group members were missing.
- Somethimes there was an entry added like this "" lrs, caused by an emtpy user acl field.
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5638 594d385d-05f5-0310-b6e9-bd551577e9d8
- Somethimes there was an entry added like this "" lrs, caused by an emtpy user acl field.
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5638 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/groups/class_groupMail.inc | patch | blob | history |
index cb0559b8f8bd57008e80e70ab7188d11a686cd23..1b2a3e531ede4c77c3d6e302ceff8e2ea82a08b0 100644 (file)
}
- if ((!$this->is_template)&&(!empty($this->gosaMailServer))){
- $method= new $this->method($this->config);
- $method->fixAttributesOnStore($this);
- if (($method->connect($this->gosaMailServer))){
- $method->updateMailbox($this->uid);
- $method->setQuota($this->uid, $this->gosaMailQuota);
- $method->setSharedFolderPermissions($this->uid, $this->imapacl);
- $method->disconnect();
- }
- }
-
/* Exchange '%member%' pseudo entry */
$memberacl= $this->imapacl['%members%'];
}
}
$this->attrs['acl'] = array();
+
+
foreach($this->imapacl as $user => $acl){
- if(preg_match("/%members%/",$user) || empty($user)) continue;
-
+
+ /* Remove empty user entry, to avoid entry like this im imap
+ * "" lrs
+ */
+ if(empty($user)){
+ unset($this->imapacl[$user]);
+ }
+
+ /* Skip invalid values */
+ if(preg_match("/%members%/",$user) || empty($user)){
+ continue;
+ }
+
+ /* Append ldap acl entries */
$this->attrs['acl'][] = $user." ".$acl;
}
+ if ((!$this->is_template)&&(!empty($this->gosaMailServer))){
+ $method= new $this->method($this->config);
+ $method->fixAttributesOnStore($this);
+ if (($method->connect($this->gosaMailServer))){
+ $method->updateMailbox($this->uid);
+ $method->setQuota($this->uid, $this->gosaMailQuota);
+ $method->setSharedFolderPermissions($this->uid, $this->imapacl);
+ $method->disconnect();
+ }
+ }
+
/* Save data to LDAP */
$ldap->cd($this->dn);
$this->cleanup();