index 8020ea24f4915d79916945246327f226791b26a2..5ce1d53908dc7830f93de6b7cb4eaa9efbc02de1 100644 (file)
var $current_acl= "";
var $selfflag= FALSE;
var $current_acl= "";
var $selfflag= FALSE;
+ var $gosaSubtreeACL;
/* attribute list for save action */
/* attribute list for save action */
- var $attributes= array();
+ var $attributes= array("gosaSubtreeACL");
var $objectclasses= array("gosaObject");
function acl ($config, $dn= NULL)
var $objectclasses= array("gosaObject");
function acl ($config, $dn= NULL)
/* WorkAround */
include "acl_definition.inc";
$this->objects= $ACLD;
/* WorkAround */
include "acl_definition.inc";
$this->objects= $ACLD;
- $this->object= reset(array_keys($this->objects));
+ $tmp= array_keys($this->objects);
+ $this->object= reset($tmp);
$this->selfflag= FALSE;
if (isset($this->attrs['gosaSubtreeACL'][0])){
$this->selfflag= FALSE;
if (isset($this->attrs['gosaSubtreeACL'][0])){
function execute()
{
function execute()
{
+ /* Call parent execute */
+ plugin::execute();
+
/* Do we represent a valid group? */
if (!$this->is_account && $this->parent == NULL){
/* Do we represent a valid group? */
if (!$this->is_account && $this->parent == NULL){
- $display= "<img src=\"images/stop.png\" align=\"middle\"> <b>".
+ $display= "<img alt=\"\" src=\"images/stop.png\" align=\"middle\"> <b>".
_("This 'dn' is no acl container.")."</b>";
return ($display);
}
_("This 'dn' is no acl container.")."</b>";
return ($display);
}
$ldap= $this->config->get_ldap_link();
$ldap->cd($this->dn);
$ldap= $this->config->get_ldap_link();
$ldap->cd($this->dn);
- $ldap->modify($this->attrs);
+ $this->cleanup();
+$ldap->modify ($this->attrs);
+
show_ldap_error($ldap->get_error());
}
show_ldap_error($ldap->get_error());
}
if ($this->object == "all"){
$this->current_acl= preg_replace ( "/[,]?all[,]?/", "", $this->current_acl);
}
if ($this->object == "all"){
$this->current_acl= preg_replace ( "/[,]?all[,]?/", "", $this->current_acl);
}
- $this->current_acl= preg_replace ( "/[,]?$this->object#[^,]*[,]?/", "", $this->current_acl);
+ $this->current_acl= preg_replace ( "/[^a-z0-9A-Z]$this->object#[^,]*[,]?/", "", $this->current_acl);
/* assemble new attributes */
$attrs= "";
/* assemble new attributes */
$attrs= "";
/* Modify class */
$ldap->cd($this->dn);
/* Modify class */
$ldap->cd($this->dn);
- $ldap->modify($this->attrs);
+ $this->cleanup();
+$ldap->modify ($this->attrs);
+
show_ldap_error($ldap->get_error());
}
show_ldap_error($ldap->get_error());
}
asort ($name);
# Generate checklist
asort ($name);
# Generate checklist
- $display.= "<table style=\"width:100%;\">\n";
+ $display.= "<table summary=\"\" style=\"width:100%;\">\n";
$switch= 0;
foreach ($name as $key => $val){
if ($switch == 0){
$switch= 0;
foreach ($name as $key => $val){
if ($switch == 0){