Code

Updated dyn group
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 1 Jun 2010 07:07:00 +0000 (07:07 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 1 Jun 2010 07:07:00 +0000 (07:07 +0000)
-Added LDAP::fix to contructor, this allows special chars in dns
-Fixed ACLs to include groups/ogroups and department

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18803 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/dyngroup/addons/dyngroup/classDynamicLdapGroup.inc

index 4278453bce3a737aef96aa473389132783ae4916..730f6f9da93fb374b1ccda03d075ba5ff11674f3 100644 (file)
@@ -74,7 +74,7 @@ class DynamicLdapGroup extends group
   {
     parent::__construct($config, $dn);
     $attr_label = $this->attributes[0];
-    $this->$attr_label = str_replace('dc=example,dc=com', $this->dn, $this->$attr_label);
+    $this->$attr_label = str_replace('dc=example,dc=com', LDAP::fix($this->dn), $this->$attr_label);
   }
 
   /**
@@ -207,12 +207,7 @@ class DynamicLdapGroup extends group
         "plDepends"     => Array(),
         "plPriority"    => 1,
         "plSection"     => Array("addon"),
-        "plCategory"    => Array(
-            "groups"  => Array(
-                "description" => _("Dynamic Groups"),
-                "objectClass" => "labeledURIObject"
-              )
-          ),
+        "plCategory"    => Array("groups", "department", "ogroups"),
         "plProvidedAcls" => array(
             'labeledURI' =>  _('labeledURI'),
           )