Am Donnerstag, 3. M�rz 2005 14:50 schrieb Carsten Wolff:
> This patch fixes the problem.
Um. No. It will break normal user handling. The fix has to be placed in the
usermanagement plugin. Try the attached one.
Cajus
--- class_userManagement.inc Thu Nov 11 14:29:29 2004
+++ class_userManagement.inc.patched Thu Mar 3 15:46:17 2005
@@ -471,10 +471,13 @@
$this->usertab->uid= $this->uid;
$this->usertab->sn= $this->sn;
$this->usertab->givenName= $this->givenName;
- $this->usertab->adapt_from_template($_POST['template']);
+ $this->template_dn= $_POST['template'];
+ $this->usertab->adapt_from_template($template_dn);
+ $template_base= preg_replace("/^[^,]+,".get_people_ou().",/", '', $template_dn);
+ $this->usertab->by_object['user']->base= $template_base;
- /* Set up the users ACL's for this 'dn' */
- $acl= get_permissions ($this->config->departments[$this->usertab->by_object['user']->base], $this->ui->subtreeACL);
+ /* Set up the users ACL's for this 'dn' */
+ $acl= get_permissions ($template_base, $this->ui->subtreeACL);
$this->usertab->set_acl($acl);
}