summaryrefslogtreecommitdiff
path: root/lib/kolab_api_service.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kolab_api_service.php')
-rw-r--r--lib/kolab_api_service.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/kolab_api_service.php b/lib/kolab_api_service.php
index 9c55763..0049b8f 100644
--- a/lib/kolab_api_service.php
+++ b/lib/kolab_api_service.php
@@ -535,9 +535,8 @@ abstract class kolab_api_service
// add organizational unit to the result
if (empty($attrs['ou']) && isset($attributes['ou'])) {
- $dn = ldap_explode_dn($dn, 0);
- // pop the count and rdn
- unset($dn['count']);
+ $dn = kolab_utils::explode_dn($dn);
+ // pop the rdn
unset($dn[0]);
$attrs['ou'] = implode(',', $dn);
}