From: hickert Date: Fri, 23 Apr 2010 09:30:45 +0000 (+0000) Subject: Updated reference tab X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9d721065e1402837aa9287ad2850ccf19f54eff8;p=gosa.git Updated reference tab git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17808 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/generic/references/class_reference.inc b/gosa-core/plugins/generic/references/class_reference.inc index afa75fa05..433852439 100644 --- a/gosa-core/plugins/generic/references/class_reference.inc +++ b/gosa-core/plugins/generic/references/class_reference.inc @@ -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()