index 25b10247ce7f05e04420c8d4533451a25156b952..3b7751fc7fe420296b99b1d888344967c9a9a654 100644 (file)
$this->base = $_SESSION['ogroupfilter']['depselect'];
}
+ /* set permissions */
+ $ui= get_userinfo();
+ $acl= get_permissions ($ui->dn, $ui->subtreeACL);
+ $this->acl= get_module_permission($acl, "ogroup", $ui->dn);
+
+
/* Load member data */
$this->reload();
}
{
/* Call parent execute */
plugin::execute();
-
+
$this->reload();
/* Do we represent a valid group? */
$new_dn= $this->dn;
}
+
+ $ldap = $this->config->get_ldap_link();
+ if($this->dn != $new_dn){
+ $ldap->cat ($new_dn);
+ }
+
+ if($ldap->count() !=0){
+ $message[]= _("There is already an object with this cn.");
+ }
+
$ui= get_userinfo();
$acl= get_permissions ($new_dn, $ui->subtreeACL);
$acl= get_module_permission($acl, "group", $new_dn);