summaryrefslogtreecommitdiffstats
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.php16
1 files changed, 12 insertions, 4 deletions
diff --git a/lib/kolab_api_service.php b/lib/kolab_api_service.php
index b552342..c098de1 100644
--- a/lib/kolab_api_service.php
+++ b/lib/kolab_api_service.php
@@ -266,12 +266,20 @@ abstract class kolab_api_service
// get list of object types
if ($object_name == 'domain') {
- $object_types = array(
- '1' => array(
+ $object_types = array();
+
+ if ($this->conf->get('kolab_wap', 'hosted_root_dn')) {
+ $object_types['1'] = array(
+ 'key' => 'hosted',
+ 'attributes' => kolab_api_service_domain_types::$HOSTED_TYPE_ATTRS,
+ );
+ } else {
+ $object_types['1'] = array(
'key' => 'default',
'attributes' => kolab_api_service_domain_types::$DEFAULT_TYPE_ATTRS,
- ),
- );
+ );
+ }
+
$object_types['1']['attributes']['form_fields']['aci'] = array(
'type' => 'list',
'optional' => true,