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.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/kolab_api_service.php b/lib/kolab_api_service.php
index 0e01a9e..4733347 100644
--- a/lib/kolab_api_service.php
+++ b/lib/kolab_api_service.php
@@ -347,6 +347,12 @@ abstract class kolab_api_service
}
}
+ // OU's parent attribute
+ if ($object_name == 'ou' && !empty($attribs['base_dn'])) {
+ // @TODO: validate?
+ $result['base_dn'] = $attribs['base_dn'];
+ }
+
$result = array_merge($result, $special_attr_validate);
Log::trace("parse_input_attributes result (merge of \$result and \$special_attr_validate)", $result);
@@ -452,10 +458,11 @@ abstract class kolab_api_service
*
* @param string $object_name Name of the object (user, group, etc.)
* @param array $attrs Entry attributes
+ * @param string $dn Will be filled with object base DN
*
* @return array Entry attributes
*/
- protected function parse_result_attributes($object_name, $attrs = array())
+ protected function parse_result_attributes($object_name, $attrs = array(), &$dn = null)
{
//console("parse_result_attributes($object_name, \$attrs = ", $attrs);