1 <?php
2 /*
3 * This code is part of GOsa (http://www.gosa-project.org)
4 * Copyright (C) 2003-2008 GONICUS GmbH
5 *
6 * ID: $$Id$$
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 */
23 /* Sort multidimensional arrays for key 'text' */
24 function sort_list($val1, $val2)
25 {
26 $v1= strtolower($val1['text']);
27 $v2= strtolower($val2['text']);
28 if ($v1 > $v2){
29 return 1;
30 }
31 if ($v1 < $v2){
32 return -1;
33 }
34 return 0;
35 }
38 class ogroup extends plugin
39 {
40 /* Variables */
41 var $cn= "";
42 var $description= "";
43 var $base= "";
44 var $gosaGroupObjects= "";
45 var $department= "";
46 var $objects= array();
47 var $objcache= array();
48 var $memberList= array();
49 var $member= array();
50 var $orig_dn= "";
51 var $group_dialog= FALSE;
52 var $view_logged = FALSE;
54 /* attribute list for save action */
55 var $attributes= array("cn", "description", "gosaGroupObjects","member");
56 var $objectclasses= array("top", "gosaGroupOfNames");
58 function ogroup (&$config, $dn= NULL)
59 {
60 plugin::plugin ($config, $dn);
61 $this->orig_dn= $dn;
63 $this->member = array();
65 /* Load member objects */
66 if (isset($this->attrs['member'])){
67 foreach ($this->attrs['member'] as $key => $value){
68 if ("$key" != "count"){
69 $value= @LDAP::convert($value);
70 $this->member["$value"]= "$value";
71 }
72 }
73 }
74 $this->is_account= TRUE;
76 /* Get global filter config */
77 if (!session::is_set("ogfilter")){
78 $ui= get_userinfo();
79 $base= get_base_from_people($ui->dn);
80 $ogfilter= array( "dselect" => $base,
81 "regex" => "*");
82 session::set("ogfilter", $ogfilter);
83 }
84 $ogfilter= session::get('ogfilter');
86 /* Adjust flags */
87 foreach( array( "U" => "accounts",
88 "G" => "groups",
89 "A" => "applications",
90 "D" => "departments",
91 "S" => "servers",
92 "W" => "workstations",
93 "O" => "winstations",
94 "T" => "terminals",
95 "F" => "phones",
96 "_" => "subtrees",
97 "P" => "printers") as $key => $val){
99 if (preg_match("/$key/", $this->gosaGroupObjects)){
100 $ogfilter[$val]= "checked";
101 } else {
102 $ogfilter[$val]= "";
103 }
104 }
105 session::set("ogfilter", $ogfilter);
107 if(session::is_set('CurrentMainBase')){
108 $this->base = session::get('CurrentMainBase');
109 }
111 /* Set base */
112 if ($this->dn == "new"){
113 $this->base = session::get('CurrentMainBase');
114 } else {
115 $this->base= preg_replace("/^[^,]+,".normalizePreg(get_ou("ogroupou"))."/","",$this->dn);
116 }
118 /* Load member data */
119 $this->reload();
120 }
122 function AddDelMembership($NewMember = false){
124 if($NewMember){
126 /* Add member and force reload */
127 $this->member[$NewMember]= $NewMember;
128 $this->reload();
130 $this->memberList[$NewMember]= $this->objcache[$NewMember];
131 unset ($this->objects[$NewMember]);
132 uasort ($this->memberList, 'sort_list');
133 reset ($this->memberList);
134 }else{
135 /* Delete objects from group */
136 if (isset($_POST['delete_membership']) && isset($_POST['members'])){
137 foreach ($_POST['members'] as $value){
138 $this->objects["$value"]= $this->memberList[$value];
139 unset ($this->memberList["$value"]);
140 unset ($this->member["$value"]);
141 uasort ($this->objects, 'sort_list');
142 reset ($this->objects);
143 }
144 $this->reload();
145 }
147 /* Add objects to group */
148 if (isset($_POST['add_object_finish']) && isset($_POST['objects'])){
150 $tmp = "";
151 foreach($this->memberList as $obj){
152 $tmp .= $obj['type'];
153 }
154 $skipped = FALSE;
155 foreach ($_POST['objects'] as $value){
156 if(preg_match("/T/",$tmp) && $this->objects[$value]['type'] == "W"){
157 $skipped =TRUE;
158 }elseif(preg_match("/W/",$tmp) && $this->objects[$value]['type'] == "T"){
159 $skipped =TRUE;
160 }else{
161 $this->memberList["$value"]= $this->objects[$value];
162 $this->member["$value"]= $value;
163 unset ($this->objects[$value]);
164 uasort ($this->memberList, 'sort_list');
165 reset ($this->memberList);
166 }
167 }
168 if($skipped){
169 msg_dialog::display(_("Information"), _("You cannot combine terminals and workstations in one object group!"), INFO_DIALOG);
170 }
171 $this->reload();
172 }
173 }
174 }
176 function execute()
177 {
178 /* Call parent execute */
179 plugin::execute();
181 if(!$this->view_logged){
182 $this->view_logged = TRUE;
183 new log("view","ogroups/".get_class($this),$this->dn);
184 }
187 /* Do we represent a valid group? */
188 if (!$this->is_account){
189 $display= "<img alt=\"\" src=\"images/stop.png\" align=\"middle\"> <b>".
190 _("This 'dn' is no object group.")."</b>";
191 return ($display);
192 }
195 /* Load templating engine */
196 $smarty= get_smarty();
198 $tmp = $this->plInfo();
199 foreach($tmp['plProvidedAcls'] as $name => $translation){
200 $smarty->assign($name."ACL",$this->getacl($name));
201 }
203 /* Base select dialog */
204 $once = true;
205 foreach($_POST as $name => $value){
206 if(preg_match("/^chooseBase/",$name) && $once && $this->acl_is_moveable()){
207 $once = false;
208 $this->dialog = new baseSelectDialog($this->config,$this,$this->get_allowed_bases());
209 $this->dialog->setCurrentBase($this->base);
210 }
211 }
213 /* Dialog handling */
214 if(is_object($this->dialog) && $this->acl_is_moveable()){
215 /* Must be called before save_object */
216 $this->dialog->save_object();
218 if($this->dialog->isClosed()){
219 $this->dialog = false;
220 }elseif($this->dialog->isSelected()){
222 /* A new base was selected, check if it is a valid one */
223 $tmp = $this->get_allowed_bases();
224 if(isset($tmp[$this->dialog->isSelected()])){
225 $this->base = $this->dialog->isSelected();
226 }
227 $this->dialog= false;
228 }else{
229 return($this->dialog->execute());
230 }
231 }
233 /* Add objects? */
234 if (isset($_POST["edit_membership"])){
235 $this->group_dialog= TRUE;
236 $this->dialog= TRUE;
237 }
239 /* Add objects finished? */
240 if (isset($_POST["add_object_finish"]) || isset($_POST["add_object_cancel"])){
241 $this->group_dialog= FALSE;
242 $this->dialog= FALSE;
243 }
245 /* Manage object add dialog */
246 if ($this->group_dialog){
248 /* Save data */
249 $ogfilter= session::get("ogfilter");
250 foreach( array("dselect", "regex") as $type){
251 if (isset($_POST[$type])){
252 $ogfilter[$type]= $_POST[$type];
253 }
254 }
255 if (isset($_POST['dselect'])){
256 foreach( array("accounts", "groups", "applications", "departments",
257 "servers", "workstations", "winstations", "terminals", "printers","subtrees",
258 "phones") as $type){
260 if (isset($_POST[$type])) {
261 $ogfilter[$type]= "checked";
262 } else {
263 $ogfilter[$type]= "";
264 }
265 }
266 }
267 if (isset($_GET['search'])){
268 $s= mb_substr($_GET['search'], 0, 1, "UTF8")."*";
269 if ($s == "**"){
270 $s= "*";
271 }
272 $ogfilter['regex']= $s;
273 }
274 session::set("ogfilter", $ogfilter);
275 $this->reload();
277 /* Calculate actual groups */
278 $smarty->assign("objects", $this->convert_list($this->objects));
280 /* Show dialog */
281 $smarty->assign("search_image", get_template_path('images/search.png'));
282 $smarty->assign("launchimage", get_template_path('images/small_filter.png'));
283 $smarty->assign("tree_image", get_template_path('images/tree.png'));
284 $smarty->assign("deplist", $this->config->idepartments);
285 $smarty->assign("alphabet", generate_alphabet());
286 foreach( array("dselect", "regex", "accounts", "groups", "applications",
287 "departments", "servers", "workstations", "winstations", "terminals","subtrees",
288 "printers", "phones") as $type){
289 $smarty->assign("$type", $ogfilter[$type]);
290 }
291 $smarty->assign("hint", print_sizelimit_warning());
292 $smarty->assign("apply", apply_filter());
294 $display= $smarty->fetch (get_template_path('ogroup_objects.tpl', TRUE, dirname(__FILE__)));
295 return ($display);
296 }
298 /* Bases / Departments */
299 if ((isset($_POST['base'])) && ($this->acl_is_moveable())){
300 $this->base= $_POST['base'];
301 }
303 /* Assemble combine string */
304 if ($this->gosaGroupObjects == "[]"){
305 $smarty->assign("combinedObjects", _("none"));
306 } elseif (strlen($this->gosaGroupObjects) > 4){
307 $smarty->assign("combinedObjects", "<font color=red>"._("too many different objects!")."</font>");
308 } else {
309 $conv= array( "U" => _("users"),
310 "G" => _("groups"),
311 "A" => _("applications"),
312 "D" => _("departments"),
313 "S" => _("servers"),
314 "W" => _("workstations"),
315 "O" => _("winstations"),
316 "T" => _("terminals"),
317 "F" => _("phones"),
318 "P" => _("printers"));
320 $type= preg_replace('/[\[\]]/', '', $this->gosaGroupObjects);
321 $p1= $conv[$type[0]];
322 error_reporting(0);
323 if (isset($type[1]) && preg_match('/[UGADSFOWTP]/', $type[1])){
324 $p2= $conv[$type[1]];
325 $smarty->assign("combinedObjects", sprintf("'%s' and '%s'", $p1, $p2);
326 } else {
327 $smarty->assign("combinedObjects", "$p1");
328 }
329 error_reporting(E_ALL | E_STRICT);
330 }
332 /* Assign variables */
333 $smarty->assign("bases", $this->get_allowed_bases());
334 $smarty->assign("base_select", $this->base);
335 $smarty->assign("department", $this->department);
336 $smarty->assign("members", $this->convert_list($this->memberList));
338 /* Objects have to be tuned... */
339 $smarty->assign("objects", $this->convert_list($this->objects));
341 /* Fields */
342 foreach ($this->attributes as $val){
343 $smarty->assign("$val", $this->$val);
344 }
346 return ($smarty->fetch (get_template_path('generic.tpl', TRUE)));
347 }
350 /* Save data to object */
351 function save_object()
352 {
353 /* Save additional values for possible next step */
354 if (isset($_POST['ogroupedit'])){
356 /* Create a base backup and reset the
357 base directly after calling plugin::save_object();
358 Base will be set seperatly a few lines below */
359 $base_tmp = $this->base;
360 plugin::save_object();
361 $this->base = $base_tmp;
363 /* Save base, since this is no LDAP attribute */
364 $tmp = $this->get_allowed_bases();
365 if(isset($_POST['base'])){
366 if(isset($tmp[$_POST['base']])){
367 $this->base= $_POST['base'];
368 }
369 }
370 }
371 }
374 /* (Re-)Load objects */
375 function reload()
376 {
377 /*###########
378 Variable initialisation
379 ###########*/
381 $this->objects = array();
382 $this->ui = get_userinfo();
383 $filter = "";
384 $objectClasses = array();
386 $ogfilter = session::get("ogfilter");
387 $regex = $ogfilter['regex'];
389 $ldap= $this->config->get_ldap_link();
390 $ldap->cd ($ogfilter['dselect']);
393 /*###########
394 Generate Filter
395 ###########*/
397 $p_f= array("accounts" => array("CLASS"=>"gosaAccount" ,"DN"=> get_people_ou() ,"ACL" => "users"),
398 "groups" => array("CLASS"=>"posixGroup" ,"DN"=> get_groups_ou('ogroupou') ,"ACL" => "groups"),
399 "applications" => array("CLASS"=>"gosaApplication","DN"=> get_ou('applicationou') ,"ACL" => "application"),
400 "departments" => array("CLASS"=>"gosaDepartment" ,"DN"=> "" ,"ACL" => "department"),
401 "servers" => array("CLASS"=>"goServer" ,"DN"=> get_ou('serverou') ,"ACL" => "server"),
402 "workstations" => array("CLASS"=>"gotoWorkstation","DN"=> get_ou('workstationou') ,"ACL" => "workstation"),
403 "winstations" => array("CLASS"=>"opsiClient", "DN"=> get_ou('WINSTATIONS') ,"ACL" => "winstation"),
404 "terminals" => array("CLASS"=>"gotoTerminal" ,"DN"=> get_ou('terminalou') ,"ACL" => "terminal"),
405 "printers" => array("CLASS"=>"gotoPrinter" ,"DN"=> get_ou('printerou') ,"ACL" => "printer"),
406 "phones" => array("CLASS"=>"goFonHardware" ,"DN"=> get_ou('phoneou') ,"ACL" => "phone"));
409 /*###########
410 Perform search for selected objectClasses & regex to fill list with objects
411 ###########*/
413 $Get_list_flags = 0;
414 if($ogfilter['subtrees'] == "checked"){
415 $Get_list_flags |= GL_SUBSEARCH;
416 }
418 foreach($p_f as $post_name => $data){
420 if($ogfilter[$post_name] == "checked"){
422 if($ogfilter['subtrees']){
423 $base = $ogfilter['dselect'];
424 }else{
425 $base = $data['DN'].$ogfilter['dselect'];
426 }
428 $filter = "(&(objectClass=".$data['CLASS'].")(|(uid=$regex)(cn=$regex)(ou=$regex)))";
429 $res = get_list($filter, $data['ACL'] , $base,
430 array("description", "objectClass", "sn", "givenName", "uid","ou","cn"),$Get_list_flags);
432 /* fetch results and append them to the list */
433 foreach($res as $attrs){
435 $type= $this->getObjectType($attrs);
436 $name= $this->getObjectName($attrs);
438 /* Fill array */
439 if (isset($attrs["description"][0])){
440 $this->objects[$attrs["dn"]]= array("text" => "$name [".$attrs["description"][0]."]", "type" => "$type");
441 } elseif (isset($attrs["uid"][0])) {
442 $this->objects[$attrs["dn"]]= array("text" => "$name [".$attrs["uid"][0]."]", "type" => "$type");
443 } else {
444 $this->objects[$attrs["dn"]]= array("text" => "$name", "type" => "$type");
445 }
446 }
447 }
448 }
449 uasort ($this->objects, 'sort_list');
450 reset ($this->objects);
453 /*###########
454 Build member list and try to detect obsolete entries
455 ###########*/
457 $this->memberList = array();
459 /* Walk through all single member entry */
460 foreach($this->member as $dn){
462 /* The dn for the current member can't be resolved
463 it seams that this entry was removed
464 */
465 /* Try to resolv the entry again, if it still fails, display error msg */
466 $ldap->cat($dn, array("cn", "sn", "givenName", "ou", "description", "objectClass"));
468 /* It has failed, add entry with type flag I (Invalid)*/
469 if (!$ldap->success()){
470 $this->memberList[$dn]= array('text' => _("Non existing dn:")." ".@LDAP::fix($dn),"type" => "I");
472 } else {
474 /* Append this entry to our all object list */
476 /* Fetch object */
477 $attrs= $ldap->fetch();
479 $type= $this->getObjectType($attrs);
480 $name= $this->getObjectName($attrs);
482 if (isset($attrs["description"][0])){
483 $this->objcache[$attrs["dn"]]= array("text" => "$name [".$attrs["description"][0]."]", "type" => "$type");
484 } elseif (isset($attrs["uid"][0])) {
485 $this->objcache[$attrs["dn"]]= array("text" => "$name [".$attrs["uid"][0]."]", "type" => "$type");
486 } else {
487 $this->objcache[$attrs["dn"]]= array("text" => "$name", "type" => "$type");
488 }
489 $this->objcache[$attrs["dn"]]['objectClass'] = $attrs['objectClass'];
490 if(isset($attrs['uid'])){
491 $this->objcache[$attrs["dn"]]['uid'] = $attrs['uid'];
492 }
494 /* Fill array */
495 if (isset($attrs["description"][0])){
496 $this->objects[$attrs["dn"]]= array("text" => "$name [".$attrs["description"][0]."]", "type" => "$type");
497 } else {
498 $this->objects[$attrs["dn"]]= array("text" => "$name", "type" => "$type");
499 }
501 $this->memberList[$dn]= $this->objects[$attrs["dn"]];
502 }
503 }
504 uasort ($this->memberList, 'sort_list');
505 reset ($this->memberList);
507 /* Assemble types of currently combined objects */
508 $objectTypes= "";
509 foreach ($this->memberList as $dn => $desc){
511 /* Invalid object? */
512 if ($desc['type'] == 'I'){
513 continue;
514 }
516 /* Fine. Add to list. */
517 if (!preg_match('/'.$desc['type'].'/', $objectTypes)){
518 $objectTypes.= $desc['type'];
519 }
520 }
521 $this->gosaGroupObjects= "[$objectTypes]";
522 }
525 function convert_list($input)
526 {
527 $temp= "";
528 $conv= array( "U" => "select_user.png",
529 "G" => "select_groups.png",
530 "A" => "select_application.png",
531 "D" => "select_department.png",
532 "S" => "select_server.png",
533 "W" => "select_workstation.png",
534 "O" => "select_winstation.png",
535 "T" => "select_terminal.png",
536 "F" => "select_phone.png",
537 "I" => "flag.png",
538 "P" => "select_printer.png");
540 foreach ($input as $key => $value){
541 /* Generate output */
542 $temp.= "<option title='".addslashes( $key)."' value=\"$key\" class=\"select\" style=\"background-image:url('".get_template_path("images/".$conv[$value['type']])."');\">".$value['text']."</option>\n";
543 }
545 return ($temp);
546 }
549 function getObjectType($attrs)
550 {
551 $type= "I";
553 foreach(array( "U" => "gosaAccount",
554 "G" => "posixGroup",
555 "A" => "gosaApplication",
556 "D" => "gosaDepartment",
557 "S" => "goServer",
558 "W" => "gotoWorkstation",
559 "O" => "opsiClient",
560 "T" => "gotoTerminal",
561 "F" => "goFonHardware",
562 "P" => "gotoPrinter") as $index => $class){
563 if (in_array($class, $attrs['objectClass'])){
564 $type= $index;
565 break;
566 }
567 }
569 return ($type);
570 }
573 function getObjectName($attrs)
574 {
575 /* Person? */
576 $name ="";
577 if (in_array('gosaAccount', $attrs['objectClass'])){
578 if(isset($attrs['sn']) && isset($attrs['givenName'])){
579 $name= $attrs['sn'][0].", ".$attrs['givenName'][0];
580 } else {
581 $name= $attrs['uid'][0];
582 }
583 } else {
584 if(isset($attrs["cn"][0])) {
585 $name= $attrs['cn'][0];
586 } else {
587 $name= $attrs['ou'][0];
588 }
589 }
591 return ($name);
592 }
595 function check()
596 {
597 /* Call common method to give check the hook */
598 $message= plugin::check();
600 /* Permissions for that base? */
601 if ($this->base != ""){
602 $new_dn= 'cn='.$this->cn.','.get_ou('ogroupou').$this->base;
603 } else {
604 $new_dn= $this->dn;
605 }
608 $ldap = $this->config->get_ldap_link();
609 if($this->dn != $new_dn){
610 $ldap->cat ($new_dn, array('dn'));
611 }
613 if($ldap->count() !=0){
614 $message[]= msgPool::duplicated(_("Name"));
615 }
617 /* Set new acl base */
618 if($this->dn == "new") {
619 $this->set_acl_base($this->base);
620 }
622 /* must: cn */
623 if ($this->cn == ""){
624 $message[]= msgPool::required(_("Name"));
625 }
627 /* To many different object types? */
628 if (strlen($this->gosaGroupObjects) > 4){
629 $message[]= _("You can combine two different object types at maximum, only!");
630 }
632 return ($message);
633 }
636 /* Save to LDAP */
637 function save()
638 {
639 plugin::save();
641 /* Move members to target array */
642 $this->attrs['member'] =array();
643 foreach ($this->member as $key => $desc){
644 $this->attrs['member'][]= @LDAP::fix($key);
645 }
647 $ldap= $this->config->get_ldap_link();
649 /* New accounts need proper 'dn', propagate it to remaining objects */
650 if ($this->dn == 'new'){
651 $this->dn= 'cn='.$this->cn.','.get_ou('ogroupou').$this->base;
652 }
654 /* Save data. Using 'modify' implies that the entry is already present, use 'add' for
655 new entries. So do a check first... */
656 $ldap->cat ($this->dn, array('dn'));
657 if ($ldap->fetch()){
658 /* Modify needs array() to remove values :-( */
659 if (!count ($this->member)){
660 $this->attrs['member']= array();
661 }
662 $mode= "modify";
664 } else {
665 $mode= "add";
666 $ldap->cd($this->config->current['BASE']);
667 $ldap->create_missing_trees(preg_replace('/^[^,]+,/', '', $this->dn));
668 }
670 /* Write back to ldap */
671 $ldap->cd($this->dn);
672 $this->cleanup();
673 $ldap->$mode($this->attrs);
675 if($mode == "add"){
676 new log("create","ogroups/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
677 }else{
678 new log("modify","ogroups/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
679 }
681 /* Trigger post signal */
682 $this->handle_post_events($mode);
684 $ret= 0;
685 if (!$ldap->success()){
686 msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $this->dn, 0, get_class()));
687 $ret= 1;
688 }
690 return ($ret);
691 }
693 function remove_from_parent()
694 {
695 plugin::remove_from_parent();
697 $ldap= $this->config->get_ldap_link();
698 $ldap->rmdir($this->dn);
699 if (!$ldap->success()){
700 msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $this->dn, 0, get_class()));
701 }
703 new log("remove","ogroups/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
705 /* Trigger remove signal */
706 $this->handle_post_events("remove");
707 }
710 function PrepareForCopyPaste($source)
711 {
712 /* Update available object types */
713 if(isset($source['gosaGroupObjects'][0])){
714 $this->gosaGroupObjects = $source['gosaGroupObjects'][0];
715 }
717 /* Reload tabs */
718 $this->parent->reload($this->gosaGroupObjects );
720 /* Reload plugins */
721 foreach($this->parent->by_object as $name => $class ){
722 if(get_class($this) != $name) {
723 $this->parent->by_object[$name]->PrepareForCopyPaste($source);
724 }
725 }
727 /* Load member objects */
728 if (isset($source['member'])){
729 foreach ($source['member'] as $key => $value){
730 if ("$key" != "count"){
731 $value= @LDAP::convert($value);
732 $this->member["$value"]= "$value";
733 }
734 }
735 }
737 }
740 function getCopyDialog()
741 {
742 $smarty = get_smarty();
743 $smarty->assign("cn", $this->cn);
744 $str = $smarty->fetch(get_template_path("paste_generic.tpl",TRUE,dirname(__FILE__)));
745 $ret = array();
746 $ret['string'] = $str;
747 $ret['status'] = "";
748 return($ret);
749 }
751 function saveCopyDialog()
752 {
753 if(isset($_POST['cn'])){
754 $this->cn = $_POST['cn'];
755 }
756 }
759 static function plInfo()
760 {
761 return (array(
762 "plShortName" => _("Generic"),
763 "plDescription" => _("Object group generic"),
764 "plSelfModify" => FALSE,
765 "plDepends" => array(),
766 "plPriority" => 1,
767 "plSection" => array("administration"),
768 "plCategory" => array("ogroups" => array("description" => _("Object groups"),
769 "objectClass" => "gosaGroupOfNames")),
770 "plProvidedAcls"=> array(
771 "cn" => _("Name"),
772 "base" => _("Base"),
773 "description" => _("Description"),
774 "member" => _("Member"))
775 ));
776 }
777 }
779 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
780 ?>