From 9d721065e1402837aa9287ad2850ccf19f54eff8 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 23 Apr 2010 09:30:45 +0000 Subject: [PATCH] Updated reference tab git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17808 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../plugins/generic/references/class_reference.inc | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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() -- 2.30.2