summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2019-11-08 07:50:18 +0000
committerAleksander Machniak <machniak@kolabsys.com>2019-11-08 07:50:18 +0000
commitea2522021505627c7955b7cafe939799ef429086 (patch)
treed7770dac9088e696a72aa01bb6b91686244258cd /lib
parentd8b844e587b38b77b31548e35aa037ab0d86014c (diff)
downloadwebadmin-ea2522021505627c7955b7cafe939799ef429086.tar.gz
T5647: Fix kolab-admin role created in wrong base_dn for hosted domains
Diffstat (limited to 'lib')
-rw-r--r--lib/kolab_api_service.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/kolab_api_service.php b/lib/kolab_api_service.php
index c098de1..6390b3c 100644
--- a/lib/kolab_api_service.php
+++ b/lib/kolab_api_service.php
@@ -415,8 +415,8 @@ abstract class kolab_api_service
}
}
- // OU's parent attribute
- if ($object_name == 'ou' && !empty($attribs['base_dn'])) {
+ // Support base_dn attribute
+ if ($object_name != 'domain' && !empty($attribs['base_dn'])) {
// @TODO: validate?
$result['base_dn'] = $attribs['base_dn'];
}