summaryrefslogtreecommitdiffstats
path: root/lib/api/kolab_api_service_ou.php
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2014-03-21 16:05:35 +0100
committerAleksander Machniak <machniak@kolabsys.com>2014-03-21 16:06:58 +0100
commit5a62c7e3594c60b7f37c417d5a004010ffb8c767 (patch)
tree020dc86e360f66ba977983a938387b5dbbd82efb /lib/api/kolab_api_service_ou.php
parent26afc433416d6fcec4ca35f48d516f7c9330e949 (diff)
downloadwebadmin-5a62c7e3594c60b7f37c417d5a004010ffb8c767.tar.gz
Add ACI form widget (Request #1782)
Diffstat (limited to 'lib/api/kolab_api_service_ou.php')
-rw-r--r--lib/api/kolab_api_service_ou.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/kolab_api_service_ou.php b/lib/api/kolab_api_service_ou.php
index 7e9eddc..b7c902e 100644
--- a/lib/api/kolab_api_service_ou.php
+++ b/lib/api/kolab_api_service_ou.php
@@ -167,11 +167,11 @@ class kolab_api_service_ou extends kolab_api_service
$result = $auth->organizationalunit_info($getdata['id']);
// normalize result
- $result = $this->parse_result_attributes('ou', $result, $dn);
+ $result = $this->parse_result_attributes('ou', $result);
if ($result) {
// get base_dn "attribute" for the API client
- $dn = substr($dn, strlen($result['ou']) + 4);
+ $dn = substr($result['entrydn'], strlen($result['ou']) + 4);
if (strpos($dn, 'ou=') === 0) {
$result['base_dn'] = $dn;
}