Code

Updated reference tab
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 23 Apr 2010 09:30:45 +0000 (09:30 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 23 Apr 2010 09:30:45 +0000 (09:30 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17808 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/generic/references/class_reference.inc

index afa75fa05043dc6a722dd67efb738500e913f6de..433852439d495c58bed02ce59c8c1fe7727d5123 100644 (file)
@@ -62,6 +62,18 @@ class reference extends plugin
             'filter' => "(&(objectClass=gosaGroupOfNames)(member=".normalizeLdap($this->dn)."))",
             'attrs'  => array('cn' => _("Name"),'description' => _("Description")),
             'msg'    => _("Object group"));
+
+        // Check for department manager 
+        $this->referenceFilters[] = array(
+            'filter' => "(&(objectClass=gosaDepartment)(manager=".normalizeLdap($this->dn)."))",
+            'attrs'  => array('ou' => _("Name"),'description' => _("Description")),
+            'msg'    => _("Department manager"));
+
+        // Check for user manager 
+        $this->referenceFilters[] = array(
+            'filter' => "(&(objectClass=gosaAccount)(manager=".normalizeLdap($this->dn)."))",
+            'attrs'  => array('givenName' => _("Given name"),'sn' => _("Surname"),'uid'=>_("Uid")),
+            'msg'    => _("User manager"));
     }
 
     function execute()