summaryrefslogtreecommitdiffstats
path: root/lib/api/kolab_api_service_ou.php
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2014-11-03 07:06:04 -0500
committerAleksander Machniak <machniak@kolabsys.com>2014-11-03 07:06:04 -0500
commit3e93d76e5163daf454c06d335960b7350b035aba (patch)
tree6eab40165562454d3b36366c9a1490130db84fd4 /lib/api/kolab_api_service_ou.php
parent7bc79c68dd1635821fb4d379c15590b521d98979 (diff)
downloadwebadmin-3e93d76e5163daf454c06d335960b7350b035aba.tar.gz
Skip redundant ldap read for additional attributes (#3859)
Diffstat (limited to 'lib/api/kolab_api_service_ou.php')
-rw-r--r--lib/api/kolab_api_service_ou.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/api/kolab_api_service_ou.php b/lib/api/kolab_api_service_ou.php
index 871e932..7d0c7d7 100644
--- a/lib/api/kolab_api_service_ou.php
+++ b/lib/api/kolab_api_service_ou.php
@@ -163,7 +163,8 @@ class kolab_api_service_ou extends kolab_api_service
}
$auth = Auth::get_instance();
- $result = $auth->organizationalunit_info($getdata['id']);
+ $attrs = $this->object_attributes('ou');
+ $result = $auth->organizationalunit_info($getdata['id'], $attrs);
// normalize result
$result = $this->parse_result_attributes('ou', $result);
@@ -206,7 +207,8 @@ class kolab_api_service_ou extends kolab_api_service
}
// get OU data
- $result = $auth->organizationalunit_info(key($units['list']));
+ $attrs = $this->object_attributes('ou');
+ $result = $auth->organizationalunit_info(key($units['list']), $attrs);
// normalize result
$result = $this->parse_result_attributes('ou', $result);